mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-06-10 16:15:20 +00:00
Fix k_diffusion math being off by a tiny bit during txt2img.
This commit is contained in:
parent
8883cb0f67
commit
036a22077c
@ -650,6 +650,9 @@ class KSampler:
|
||||
self.model_k.latent_image = latent_image
|
||||
self.model_k.noise = noise
|
||||
|
||||
if max_denoise:
|
||||
noise = noise * torch.sqrt(1.0 + sigmas[0] ** 2.0)
|
||||
else:
|
||||
noise = noise * sigmas[0]
|
||||
|
||||
k_callback = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user