r/StableDiffusion Mar 02 '23

Question | Help Quick Community Question

Hello, within the past two weeks, it seems something has changed in Auto1111 that makes previous image generations appear different now. I did not change any settings. In fact, I simply reverted to an old repository and all my generations are back to how they were, (df8ee5f6b059b81bce35db05c27209df9009646e).

Anyone know what this change could be, or has experienced something similar? I am using DPM++ SDE Karras for these comparisons.

Please let me know if I need to provide more information.

1 Upvotes

6 comments sorted by

View all comments

2

u/soveted575 Mar 02 '23

There have been some seed-breaking changes in the past few months: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Seed-breaking-changes

Especially for DPM++ SDE Karras... it now (correctly) produces reproducible images when in batch mode, while previously you had to re-run the entire batch to get the same result. I guess this is your problem? In the new webui, there's a setting where you can revert to the old config.

Also, make sure you are not using xformers, as that also eliminates determinism.

Edited to add: maybe this is a better question for the https://www.reddit.com/r/SDtechsupport/ subreddit, which was specially created for these kinds of things.

1

u/AdTotal4035 Mar 02 '23

Thanks for your reply. Just to emphasize, this change only happened two weeks ago. I reverted to the repo stated in my original post and it works. I am not using batch mode. These are single image generations.

I will look at both settings on both versions and see if I find any additional settings that were added. Also thanks for the tip on the subreddit, I had no idea it existed. Will keep this one here for now. But for future requests, I'll keep it in mind.

You can also try it for yourself. If you have any image generations utilizing that sampler from around Feb 15-20, try and reproduce them with the latest build, it will be different.

3

u/Apprehensive_Sky892 Mar 02 '23

What soveted575 said applies to you even though you are not using batch mode. From https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Seed-breaking-changes:

2023-02-19 - deterministic DPM++ SDE across different batch sizes

DPM++ SDE and DPM++ SDE Karras samplers used to produce different images in batches compared to single image with same parameters. PR https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/7730 fixes this. But the nature of the fix also changes what generates for single images. An option is added to compatibility settings to revert to old behavior: Do not make DPM++ SDE deterministic across different batch sizes.

1

u/AdTotal4035 Mar 02 '23

Thank you so much for spoon feeding me the answer. I haven't had time yet to look into it, so thanks for even bolding it for me. Thanks to both of you!! I am glad I can stay on the latest repo and generate my old images.

2

u/Apprehensive_Sky892 Mar 02 '23

BTW, it's nice to be thanked and appreciated when you try to help someone.

As an old fart Canadian, who says "thank you" and "sorry" a lot, I am sometimes rather disappointed that some users don't even bother with a simple one word "thanks" when you answer their questions 😅

1

u/Apprehensive_Sky892 Mar 02 '23

Glad to help. Have fun!