Modify Makefile. Remove an unnecessary validation about n_prompt.

This commit is contained in:
hodanov 2024-11-04 09:02:38 +09:00
parent 8a2a831c80
commit fcc8ec0f91
2 changed files with 4 additions and 6 deletions

View File

@ -4,7 +4,8 @@ app:
cd ./app && modal deploy __main__.py
img_by_sd15_txt2img:
cd ./cmd && modal run sd15_txt2img.py \
cd ./cmd && modal run txt2img_handler.py::main \
--version "sd15" \
--prompt "a photograph of an astronaut riding a horse" \
--n-prompt "" \
--height 512 \
@ -27,7 +28,8 @@ img_by_sd15_img2img:
--base-image-url "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png"
img_by_sdxl_txt2img:
cd ./cmd && modal run sdxl_txt2img.py \
cd ./cmd && modal run txt2img_handler.py::main \
--version "sdxl" \
--prompt "A dog is running on the grass" \
--n-prompt "" \
--height 1024 \

View File

@ -39,10 +39,6 @@ class Prompts:
msg = "prompt should not be empty."
raise ValueError(msg)
if n_prompt == "":
msg = "n_prompt should not be empty."
raise ValueError(msg)
if height <= 0:
msg = "height should be positive."
raise ValueError(msg)