mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-23 16:23:57 +00:00
fix ddpm
This commit is contained in:
@@ -12,7 +12,7 @@ def randn(seed, shape, generator=None):
|
||||
# If generator is not none, we must use another seed to
|
||||
# avoid global torch.rand to get same noise again.
|
||||
# Note: removing this will make DDPM sampler broken.
|
||||
manual_seed((seed + 262144) % 65536)
|
||||
manual_seed((seed + 100000) % 65536)
|
||||
else:
|
||||
manual_seed(seed)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user