Created
September 9, 2022 17:04
-
-
Save senthilnayagam/6a247081b4d541057d2b7c7354609a46 to your computer and use it in GitHub Desktop.
stable diffusion openvino usage via shell 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
| echo "count: $1"; | |
| echo "prompt: $2"; | |
| echo "output_file_basename: $3"; | |
| echo "prompt: $2" > prompt_$3.txt; | |
| for i in $(seq 1 1 $1) | |
| do | |
| echo "python3.9 demo.py --prompt \"$2\" --output output_$3_$i.png"; | |
| python3.9 demo.py --prompt "$2" --output output_$3_$i.png | |
| done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sample usage
sh automate.sh 5 "beautiful young scarlett johansson as a computer scientist, dark blonde hair, colorful, artstation, cgsociety" scarlettjohansson_1
runs script 5 times each time saves image with a naming pattern, prompt is saved as well