Fix noise with ancestral samplers when inferencing on cpu.

This commit is contained in:
comfyanonymous
2025-12-26 21:54:08 -05:00
committed by GitHub
parent 16fb6849d2
commit 2e005aef1d
+3
View File
@@ -74,6 +74,9 @@ def get_ancestral_step(sigma_from, sigma_to, eta=1.):
def default_noise_sampler(x, seed=None):
if seed is not None:
if x.device == torch.device("cpu"):
seed += 1
generator = torch.Generator(device=x.device)
generator.manual_seed(seed)
else: