- Clone the repo or download the files
- Copy
txt2img2.pyandimg2img2.pyto yourstable-diffusion/scriptsfolder - Run
cat ./zshrc_scripts >> ~/.zshrc - Open
~/.zshrcin a text editor and fill out theUser Entered Variablessection- The paths for Stable Diffusion and the font to use for grid labels need to be changed for your system
- You will need to create the prompt txt files if they do not exist
- Restart your shell or run
source ~/.zshrc
Now you can create a list of prompts in your img or txt prompt file (1 prompt per line like with the standard script).
When you’re ready to generate, run btxt2img or bimg2img /path/to/img.
The samples (and original file for bimg2img) will be saved to its own timestamped directory in the output folder. The new grid will be saved to the same directory as fullgrid.png
For help changing parameters, check the ~/.zshrc file or run either command with the --help argument.
See more examples here: https://reticulated.net/dailyai/stable-diffusion-better-grids-and-bulk-scripts/
