Skip to content

Instantly share code, notes, and snippets.

@breadthe
Created September 2, 2022 17:56
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breadthe/691314c6156c6ccd462049a54ea52a2a to your computer and use it in GitHub Desktop.
Save breadthe/691314c6156c6ccd462049a54ea52a2a to your computer and use it in GitHub Desktop.
Stable Diffusion prompt script
#!/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