stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

Pad partial file prompt batches

Open ikarth opened this issue 3 years ago • 2 comments

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.

ikarth avatar Aug 14 '22 04:08 ikarth

(temporarily closed the pull request when I discovered another edge case my code didn't handle.)

ikarth avatar Aug 14 '22 04:08 ikarth

(Fixed my math error.)

ikarth avatar Aug 14 '22 05:08 ikarth

Thank you for fixing this my friend :)

GoMapur avatar Aug 23 '22 10:08 GoMapur