Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

EricBCoding
Copy link
Contributor

@EricBCoding EricBCoding commented Nov 22, 2024

Hi,

The Differential Diffusion node from #2876 is awesome for inpainting tasks, but the effect is too strong at times. It is challenging to use when generating a subject that has little in common with the original.

Even at a denoising strength of 100%, Differential Diffusion often overwhelms the prompt. But if we blend the adjusted binary mask with the original, we can find a sweet spot. The example below was performed with Euler/Beta, 4 steps, 100% denoising strength. Model is flux1-dev.sft with distillation LoRAs for speed.

differential_diffusion_strength

50-75% Differential Diffusion strength feels a lot more usable in practice than 100%. Here's one more comparison if you'll indulge me:

The prompt was "Donald Trump." That guy in the middle looks like he'd be fun at parties, but he's definitely not Trump.

@ltdrdata
Copy link
Collaborator

Wouldn't it be better to skip the blending logic when the strength is set to 1.0?

@EricBCoding
Copy link
Contributor Author

@ltdrdata The blend operation is nearly instantaneous either way (at least at 1024x1024), but you're right, a conditional check is probably smarter. 🙂 Updated the code.

@ltdrdata ltdrdata added the Good PR This PR looks good to go, it needs comfy's final review. label Nov 22, 2024
@RandomGuyWithIssues
Copy link

Any reason why this is not merged?

comfyanonymous pushed a commit that referenced this pull request Sep 21, 2025
* Update nodes_differential_diffusion.py

* Update nodes_differential_diffusion.py

* Make strength optional to avoid validation errors when loading old workflows, adjust step

---------

Co-authored-by: ThereforeGames <[email protected]>
@Kosinkadink
Copy link
Collaborator

The commits are now in via #9957! Closing this PR 🫡 thanks!

Thor-ATX pushed a commit to asteriafilmco/ComfyUI that referenced this pull request Sep 26, 2025
…e-update

* commit '2b7f9a8196304badb5fe58e5c734e4b182ad0fdf': (91 commits)
  Fix the failing unit test. (comfyanonymous#10037)
  Make LatentCompositeMasked work with basic video latents. (comfyanonymous#10023)
  Fix memory leak by properly detaching model finalizer (comfyanonymous#9979)
  Fix issue with .view() in HuMo. (comfyanonymous#10014)
  Add new audio nodes (comfyanonymous#9908)
  Rodin3D - add [Rodin3D Gen-2 generate] api-node (comfyanonymous#9994)
  ComfyUI version 0.3.60
  feat(api-nodes): add wan t2i, t2v, i2v nodes (comfyanonymous#9996)
  update template to 0.1.86 (comfyanonymous#9998)
  Fix bug with WanAnimateToVideo. (comfyanonymous#9990)
  Fix bug with WanAnimateToVideo node. (comfyanonymous#9988)
  add offset param (comfyanonymous#9977)
  Support for qwen edit plus model. Use the new TextEncodeQwenImageEditPlus. (comfyanonymous#9986)
  Set some wan nodes as no longer experimental. (comfyanonymous#9976)
  Lower wan memory estimation value a bit. (comfyanonymous#9964)
  Fix LoRA Trainer bugs with FP8 models. (comfyanonymous#9854)
  [Reviving comfyanonymous#5709] Add strength input to Differential Diffusion (comfyanonymous#9957)
  Add inputs for character replacement to the WanAnimateToVideo node. (comfyanonymous#9960)
  Update WanAnimateToVideo to more easily extend videos. (comfyanonymous#9959)
  fix(seedream4): add flag to ignore error on partial success (comfyanonymous#9952)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Good PR This PR looks good to go, it needs comfy's final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants