BlenderNeko / ComfyUI_Noise

6 nodes for ComfyUI that allows for more control and flexibility over noise to do e.g. variations or "un-sampling"
GNU General Public License v3.0
249 stars 19 forks source link

Suggestion: Create a "batch unsampler" -- Gist link included #14

Open ttulttul opened 9 months ago

ttulttul commented 9 months ago

I'm working on support for DemoFusion (an upscaling technique), which requires getting the full sequence of progressively noised latents. I added batching to the unsampler in ComfyUI_Noise to create the "Batch Unsampler" node. It's exactly the same as the Unsampler, but outputs all the intermediate steps. The intermediate steps are taken in the callback function during sampling.

https://gist.github.com/ttulttul/2b09f0f14bb35639ada7ed37b1f0428d

I'd love your feedback, @BlenderNeko. One thing I observe is that the initial latents in the batch seem a little de-contrasted. I wonder if that's because they need to be normalized in order to look "right". But of course in the present case, we don't want to normalize anything.

ttulttul commented 9 months ago

I will contribute a PR :)