Implement SDXLTxt2Img.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
deploy:
|
||||
app:
|
||||
cd ./setup_files && modal deploy __main__.py
|
||||
|
||||
# `--upscaler` is a name of upscaler you want to use.
|
||||
@@ -7,8 +7,8 @@ deploy:
|
||||
# - `RealESRNet_x4plus`
|
||||
# - `RealESRGAN_x4plus_anime_6B`
|
||||
# - `RealESRGAN_x2plus`
|
||||
run:
|
||||
cd ./sdcli && modal run txt2img.py \
|
||||
img_by_sd15_txt2img:
|
||||
cd ./sdcli && modal run sd15_txt2img.py \
|
||||
--prompt "a photograph of an astronaut riding a horse" \
|
||||
--n-prompt "" \
|
||||
--height 512 \
|
||||
@@ -17,4 +17,15 @@ run:
|
||||
--steps 30 \
|
||||
--upscaler "RealESRGAN_x2plus" \
|
||||
--use-face-enhancer "False" \
|
||||
--fix-by-controlnet-tile "True"
|
||||
--fix-by-controlnet-tile "True" \
|
||||
--output-format "avif"
|
||||
|
||||
|
||||
img_by_sdxl_txt2img:
|
||||
cd ./sdcli && modal run sdxl_txt2img.py \
|
||||
--prompt "A dog is running on the grass" \
|
||||
--height 1024 \
|
||||
--width 1024 \
|
||||
--samples 1 \
|
||||
--upscaler "RealESRGAN_x2plus" \
|
||||
--output-format "avif"
|
||||
Reference in New Issue
Block a user