mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Flip bits in seed for sde/ancestral schedulers to have different noise from initial
This commit is contained in:
parent
6e0beb1ed4
commit
59ba9fc0f6
@ -205,7 +205,8 @@ class DenoiseLatentsInvocation(BaseInvocation):
|
|||||||
# for ddim scheduler
|
# for ddim scheduler
|
||||||
eta=0.0, # ddim_eta
|
eta=0.0, # ddim_eta
|
||||||
# for ancestral and sde schedulers
|
# for ancestral and sde schedulers
|
||||||
generator=torch.Generator(device=unet.device).manual_seed(seed),
|
# flip all bits to have noise different from initial
|
||||||
|
generator=torch.Generator(device=unet.device).manual_seed(seed ^ 0xFFFFFFFF),
|
||||||
)
|
)
|
||||||
return conditioning_data
|
return conditioning_data
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user