Created
September 2, 2022 17:56
-
-
Save breadthe/691314c6156c6ccd462049a54ea52a2a to your computer and use it in GitHub Desktop.
Stable Diffusion prompt script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -n "Enter a prompt: " | |
read prompt | |
echo -n "Steps (default 10): " | |
read steps | |
if [[ -z "$steps" ]]; then | |
steps=10 | |
fi | |
python scripts/txt2img.py \ | |
--prompt "$prompt" \ | |
--n_samples 1 --n_iter 1 --plms --ddim_steps "$steps" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment