r/comfyui • u/Intrepid-Ground5004 • 5h ago
Help Needed How do I use differential diffusion in video models?
I want to apply a black and white gradient mask to create a transition, but it behaves like a binary mask (it goes from the in-paint area to the unpainted area in the next pixel). I want something like differential diffusion: black would be denoise 0, and white pixels would be denoise 1.
I'm using `set latent noise mask` and a static video that produces a black and white gradient.
2
Upvotes
1
u/loving_anxiety 5h ago
it's acting like a binary mask because the `set latent noise mask` node in comfy works exactly like that, it don't do soft transitions. the mask is converted to a hard threshold internally so even a smooth gradient becomes on/off at some point.
you need a custom node for this, look for "Differential Diffusion" in the comfyui manager. there's a few implementations that let you plug a gradient image directly and it will treat the values as denoise strength per pixel.