stable-diffusion
stable-diffusion copied to clipboard
Pad partial file prompt batches
If the number of prompts is not a multiple of the size of the batch, it causes errors.
To avoid this, we can run the final prompt some additional times to pad out the last batch.
This is just one possible solution to the issue, of course.
(temporarily closed the pull request when I discovered another edge case my code didn't handle.)
(Fixed my math error.)
Thank you for fixing this my friend :)