ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Generate batch of images inside same latent space(fixed latent noise / seed?)

Open brandostrong opened this issue 1 year ago • 2 comments

In Auto1111, in the txt2image section you have the ability to generate images within the same latent space. For example, with the seed and prompt static, changing the controlnet driving image will lead to a small difference in the output image. This is the same for a small change in prompt.

In Comfyui however, making a batch of latents but only changing the controlnet per latent will produce wildly different images, even with the same seed.

Is there any existing node that can copy Auto1111's behavior in this? It greatly improves consistency on batch animations, because the sampler isn't sampling from a new latent space each latent.

brandostrong avatar Apr 03 '24 20:04 brandostrong

What you are talking about means applying noise generated with the same seed to all frames within a batch. From what I remember, there is a feature that allows you to set it to work in such a way when sampling using https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved.

ltdrdata avatar Apr 04 '24 01:04 ltdrdata

The LatentBatchSeedBehavior node set to fixed will produce very similar images across a batch, the default is random I think. It should be a built-in node.

NeedsMoar avatar Apr 07 '24 23:04 NeedsMoar

What you are talking about means applying noise generated with the same seed to all frames within a batch. From what I remember, there is a feature that allows you to set it to work in such a way when sampling using https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved.

Hi, this is pretty much the answer I'm looking for. It's not exactly like auto1111's, there's more flicker and randomness, but it's pretty close. Thank you.

brandostrong avatar Apr 08 '24 23:04 brandostrong