Replies: 5 comments 2 replies
-
In case if you don't know, there is a breaking change list on wiki: |
Beta Was this translation helpful? Give feedback.
-
frog, seed 1, euler a, 20 steps. . can you make this? 3715ece |
Beta Was this translation helpful? Give feedback.
-
On the pytorch page:
yeah, i wonder why... |
Beta Was this translation helpful? Give feedback.
-
We were just discussing this here |
Beta Was this translation helpful? Give feedback.
-
I am generating images by CPU in a VM. The host and guest got some huge updates these days, so I tried to reproduce with the same seed and noticed some difference. Now I can produce the same images after some reversion, but I have no time to further investigate into this. |
Beta Was this translation helpful? Give feedback.
-
"Reproduce" in this context refers to generating visually very close images with the same parameters.
Non-deterministic
WebUI
stable-diffusion-webui/modules/processing.py
Lines 380 to 384 in 3715ece
Notice the funny comments.
WebUI does not implement all determinism-enhancing mechanics suggested by pytorch. See https://pytorch.org/docs/stable/notes/randomness.html
Obviously WebUI is an actively developing project. All the codes are subject to change.
Hardware
On GPUs that have different architectures, like 1070 and 2070 (Pascal vs Turing), the results will be not exactly the same, even deviates a lot, both on noise generations and subsequent computings.
Not to mention results on the same architecture are not guaranteed to be the same, even you use the same GPU, you can still get a different picture, because the overall setup difference.
xformers
(If you use xformers) xformers is not deterministic, even when generating images in the same session, especially if CUTLASS backend is selected, which happens almost all the time. Ref facebookresearch/xformers#618
All of these does not mean you can't achieve determinism, but some condictions should be the same:
And xformers should not be enabled for perfect determinism.
Personal Opinion
Some nerds cares about reproducibility. So do I. After those discovery I just bother less about determinism because it can be lost anytime. I enable xformers because perfect determinism is not needed for me.
Beta Was this translation helpful? Give feedback.
All reactions