Skip to content

Instantly share code, notes, and snippets.

@senthilnayagam
Created September 9, 2022 17:04
Show Gist options
  • Select an option

  • Save senthilnayagam/6a247081b4d541057d2b7c7354609a46 to your computer and use it in GitHub Desktop.

Select an option

Save senthilnayagam/6a247081b4d541057d2b7c7354609a46 to your computer and use it in GitHub Desktop.
stable diffusion openvino usage via shell script
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
@senthilnayagam
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment