ComfyUI/comfy/k_diffusion
Devin J. Pohly 80378f5b86 KSampler: use the same noise samples across a batch
Using an ancestral sampler on a batch currently yields results that can
only be reproduced at the same index in a batch of the same size.  For
example, if you want to reproduce a single result from a batch
generation, you have to re-run the entire batch.

This change ensures that the same noise samples are used for every
latent in the batch, leading to consistent and reproducible results
regardless of batch size/order.  In addition, the noise is now a view
of a C×H×W tensor, which uses less memory than a full B×C×H×W.
2025-04-18 14:53:45 -05:00
..
2024-12-12 17:59:16 -05:00
2023-06-13 02:40:58 -04:00