Replace realesrgan to the Stable Diffusion latent upscaler. Remove unnecessary libraries.

This commit is contained in:
hodanov
2024-04-21 21:34:57 +09:00
parent b1de1d4cb5
commit d531c25bd0
11 changed files with 71 additions and 244 deletions
+2 -11
View File
@@ -3,12 +3,6 @@
app:
cd ./app && modal deploy __main__.py
# `--upscaler` is a name of upscaler you want to use.
# You can use upscalers the below:
# - `RealESRGAN_x4plus`
# - `RealESRNet_x4plus`
# - `RealESRGAN_x4plus_anime_6B`
# - `RealESRGAN_x2plus`
img_by_sd15_txt2img:
cd ./cmd && modal run sd15_txt2img.py \
--prompt "a photograph of an astronaut riding a horse" \
@@ -17,8 +11,7 @@ img_by_sd15_txt2img:
--width 768 \
--samples 1 \
--steps 30 \
--upscaler "RealESRGAN_x2plus" \
--use-face-enhancer "False" \
--use-upscaler "True" \
--fix-by-controlnet-tile "True" \
--output-format "avif"
@@ -28,8 +21,7 @@ img_by_sd15_img2img:
--n-prompt "" \
--samples 1 \
--steps 30 \
--upscaler "RealESRGAN_x2plus" \
--use-face-enhancer "False" \
--use-upscaler "True" \
--fix-by-controlnet-tile "True" \
--output-format "avif" \
--base-image-url "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png"
@@ -40,5 +32,4 @@ img_by_sdxl_txt2img:
--height 1024 \
--width 1024 \
--samples 1 \
--upscaler "RealESRGAN_x2plus" \
--output-format "avif"