comfyui-inpaint-nodes icon indicating copy to clipboard operation
comfyui-inpaint-nodes copied to clipboard

Batch size issue

Open Latentnaut opened this issue 1 year ago • 7 comments

I noticed I cannot create a batch with the node Repeat Latent Batch.

Is is possible to achive this in another way?

Latentnaut avatar Mar 19 '24 20:03 Latentnaut

You can Repeat Latent Batch before passing it to the sampler as usual. What exactly is the issue?

Acly avatar Mar 19 '24 22:03 Acly

Here an example. For some reason Repeat Latent Batch is not giving me 4 images, only 1.

image

Latentnaut avatar Mar 20 '24 08:03 Latentnaut

Strange, it looks the same as what I tried, worked for me. Maybe something else influences it?

Acly avatar Mar 21 '24 18:03 Acly

I've took a second view and the Repeat Latent Batch is working well when I hook the Save node after de VAE Decode, as expected.

My failure was I hooked the Save node AFTER the ImageCompositeMasked node, obviously it was taking only the 1st generated image, so I thought the batch was not working well.

That's being said, I wonder why ImageCompositeMasked node is there, as I don't notice any difference. What is it useful for?

Latentnaut avatar Mar 21 '24 21:03 Latentnaut

I would've expected ImageCompositeMasked to work on batches too.

It makes sure you get the original input image in places where the mask is 0. The output has gone through VAE encode + decode, which degrades quality.

Acly avatar Mar 21 '24 21:03 Acly

I've took a second view and the Repeat Latent Batch is working well when I hook the Save node after de VAE Decode, as expected.

My failure was I hooked the Save node AFTER the ImageCompositeMasked node, obviously it was taking only the 1st generated image, so I thought the batch was not working well.

That's being said, I wonder why ImageCompositeMasked node is there, as I don't notice any difference. What is it useful for?

image You can do this. @Latentnaut

lldacing avatar Apr 08 '24 03:04 lldacing

SUPER, just what it was missing ;)

Latentnaut avatar Apr 18 '24 08:04 Latentnaut