Differential Diffusion - Inpainting on Steroids!
Skills:
Image Generation Basics70%
Key Takeaways
The video discusses Differential Diffusion, a powerful method for inpainting, and demonstrates its use in ComfyUI and Vlad Diffusion, highlighting its ability to understand image context and replace areas in a more natural way.
Full Transcript
differential diffusion is in painting on steroids it's time to work this method has two huge benefits the first is that it understands better what is going on in the image so it replaces what you want to inpaint in a more natural way and the other one you can see here is that you can use different gray values to Define where in the image you want to Place how much so you can do in painting basically on a pixel by pixel level so the darker the value goes in your mask the more the image is going to be replaced and you can see here some beautiful examples of that now this is not yet working inside of automatic 1111 however you can use it inside of blood diffusion I couldn't get it to run myself but you can try to make it happen now I have a reinstall of flut diffusion so this is completely fresh install and when you go down here where you find your scripts you can see here differential diffusion is one of the choices with their new update now down here you can enable it you can mask invert you can set the mask strength and you can also set a model here when you select these models these are going to download on the first rendering process so this is going to be slower and then and also down here you can load a mask now apparently if you don't select a mask image down here this is outo generating one for you but I got a null error so instead I'm going to show you this inside of comi where again I think this is a lot more powerful and also as always my Patron supporters get this workflow so you can try that for yourself I built here at the beginning a very simple classic process where you load the model you have your positive and negative prompt the K sampler and then the vae decode to generate the image so far everything is super basic of course we also have here our empty latent image now next we are painting the map here we have something that is called a preview bridge this is from the impact pack and is very useful because this will show you the image you can paint the mask and then you can process this further in your workfl to paint the mask in here you want to right click and then down here select open and mask editor when you open that you can then paint onto the image so here you can see the original image that I have and then you paint your mask in on the area you want to replace or you want to change and then you click here on save to note I have here an extra note that is converting the mass to an image just so you can see what is going on and I have C an extra note with a gausian blur for the mask this makes the mask soft on the outside and that blends it a lot better with the rest of the image now in that process to give a fair comparison I created a c generator that is sending the same seat to both of these Cas Samplers in the green area we have it with differential diffusion and in the red area we have it without which is the classic in painting just with a mask and as you can see here with the differential diffusion it understands the structure of the face a lot better and creates nice sunglasses on the face even the rim is nicely going into the hair of the woman this is by the way happening with the D noise of one which basically means it's completely generating that area new but as you can see everything is fitting to the face in a correct and nice way now when we look at the same image that is generated with classic in painting and you can also see that we are using D noise one in that case the result is not as good so the glasses are fading out here they're not going into the hair the eyebrows are not looking good at this point you might wonder where is the actual differential diffusion happening in here well um it is this little node up here that simply sits in between your model and the cas sampler it is small but it works well that's what the ladies tell me anyways and of course as always to install everything you want to go to this window here you want to click on the manager you want to click on update all to have the newest version and if you have any red notes inside of the workflow when you load it you want to click here on install missing custom notes and then here in that list that pops up on the right side you have the install buttons install everything that is suggested and then restart com for youi now you might think this is probably happening because the mask is too small and this is fading out because of it so I made the mask a lot bigger and rendered everything again and even though in the new result you can see that the glasses are there a lot more they are still not perfectly because here on the edge it's kind of strange how it's rendering it the eyebrows look a little bit strange the hair here is kind of missing and the glasses a bending over here where they are supposed to go into the hair now you might say this is probably because there is a blur around the mask and the value of the D noise is too high so I turned the value of the D noise lower and I turned of the Mask blurring but still on the right side we can see here the classic in painting we still have a problem here with the hair we have here a cut for the lip which is not good and overall the image doesn't look satis fying while on the left side with the blurry mask with the D noise on one we get a very satisfying result of the in painting on the first try let me know in the comments what you think about this new method I'm really happy with the results that I'm getting thanks for watching this video and see you soon bye oh you're still here so uh This is the End screen there's other stuff you can watch like this or that's really cool and yeah I hope I see you soon uh leave a like if you haven't yet and well um yeah
Original Description
Differential Diffusion is very powerful and makes inpainting so much easier. Vlad Diffusion already has Differential Diffusion. And here is also how to use it in ComfyUI
#### Links from the Video ####
Get my Workflow here: https://www.patreon.com/posts/101662667
https://github.com/exx8/differential-diffusion
https://github.com/vladmandic/automatic
#### Join and Support me ####
Buy me a Coffee: https://www.buymeacoffee.com/oliviotutorials
Join my Facebook Group: https://www.facebook.com/groups/theairevolution
Joint my Discord Group: https://discord.gg/XKAk7GUzAW
AI Newsletter: https://oliviotutorials.podia.com/newsletter
Support me on Patreon: https://www.patreon.com/sarikas
Thank you @I-Dophler for the Index
🎯 Key Takeaways for quick navigation:
00:00 🤖 Differential diffusion for better inpainting
- Explains differential diffusion and its benefits for image inpainting,
- Allows pixel-level control over inpainting with grayscale masks,
- Shows examples of impressive inpainting results.
01:00 💻 Setting up differential diffusion in Flud diffusion
- Differential diffusion is available as a script option in latest Flud update,
- Options to enable, set mask strength, invert mask and load models,
- Mentions having issues running it personally.
01:40 🛠️ Demonstrating differential diffusion workflow in Comfy UI
- Prefers demonstrating in Comfy UI for more powerful capabilities,
- Shares basic image generation pipeline as starting point,
- Introduces painting mask and preview bridge from Impact pack.
02:59 *🎨 Comparing differential diffusion to classic inpainting *
- Compares differential diffusion (green) to classic inpainting (red),
- Differential handles face structure better for natural inpainting,
- Classic struggles with proper integration like glasses, hair, eyebrows.
04:24 ⚙️ Installing differential diffusion node in Comfy UI
- Differential diffusion is a small node between model and sampler,
- Provides installation instructions via Comfy UI manager.
05:06 🧪
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Olivio Sarikas · Olivio Sarikas · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Remove breathing sound from your audio recording // Audacity
Olivio Sarikas
Noise Removal for Audio Recordings - fast & easy // Audacity
Olivio Sarikas
In the Bazar - NI Maschine Audio Sketch
Olivio Sarikas
Submarine Concerto - NI Maschine Audio Sketch
Olivio Sarikas
Affinity Photo - Creating a Photo Font
Olivio Sarikas
Affinity Photo - Rusty Metal Font Tutorial
Olivio Sarikas
Affinity Photo - How to remove things from a photo
Olivio Sarikas
Affinity Photo - How to replace a Sky
Olivio Sarikas
Affinity Photo - How to put Patterns on Clothing
Olivio Sarikas
Affinity Photo - Vintage Look Tutorial
Olivio Sarikas
Affinity Photo - Photo Letter Font Tutorial
Olivio Sarikas
Affinity Photo - Print Ready Tutorial
Olivio Sarikas
Affinity Photo - Grunge Maps Tutorial
Olivio Sarikas
Affinity Photo - White Teeth Tutorial
Olivio Sarikas
Affinity Photo - Frequency Separation Tutorial
Olivio Sarikas
Affinity Photo - Double Exposure Tutorial
Olivio Sarikas
Affinity Photo - 5 Tricks for better Pics
Olivio Sarikas
Affinity Photo - Realistic Fog
Olivio Sarikas
Affinity Photo - How to Match Color
Olivio Sarikas
Bokeh Balls Trick - Affinity Photo Tutorial
Olivio Sarikas
Affinity Photo - Remove Fog, Smog, Haze and Dust
Olivio Sarikas
Affinity Photo - Orange & Teal Look
Olivio Sarikas
Affinity Photo - 5 MORE Tricks for better Pics
Olivio Sarikas
Affinity Photo - World in a Light Bulb
Olivio Sarikas
Affinity Photo - Watercolor Effect
Olivio Sarikas
Affinity Photo - 5 Tricks for better Composition
Olivio Sarikas
Affinity Photo - Fur Text Tutorial
Olivio Sarikas
Affinity Photo - Skin Color & Tan
Olivio Sarikas
Affinity Photo - Oil Paint Look Tutorial
Olivio Sarikas
Histogram explained EASY & FUN - Affinity Photo Beginner Tutorial
Olivio Sarikas
Affinity Photo - Text in Perspective
Olivio Sarikas
Affinity Photo - Dramatic Sky Colors
Olivio Sarikas
Why Black & White Photography is amazing!
Olivio Sarikas
Affinity Photo - Stunning Black & White Photos
Olivio Sarikas
Affinity Photo - 5 Filters for Landscape Photography
Olivio Sarikas
Affinity Photo - Remove Shadows EASY
Olivio Sarikas
Let's Talk - Where we go from here :)
Olivio Sarikas
Affinity Photo - Realistic Image on a Screen
Olivio Sarikas
Affinity Photo - 4 Perspective Tools explained
Olivio Sarikas
Affinity Photo - 3D Text Effect
Olivio Sarikas
Affinity Photo - Tilt Shift done right
Olivio Sarikas
Affinity Photo - Blur Filters Explained - Part 01
Olivio Sarikas
Affinity Photo - Design Project: Enigma Lounge
Olivio Sarikas
Affinity Photo - Fake Colorized Look
Olivio Sarikas
Affinity Photo - Tiny Planet Tutorial
Olivio Sarikas
Affinity Photo - Change Day to Night - Tutorial
Olivio Sarikas
Affinity Photo - Neon Text Tutorial
Olivio Sarikas
Affinity Photo - Wood-burn Effect
Olivio Sarikas
Affinity Photo - NEON Portrait Look
Olivio Sarikas
Affinity Photo - Angel Wings Tutorial
Olivio Sarikas
Affinity Photo - Remove any Logo
Olivio Sarikas
Affinity Photo - Portrait Design - SUPER EASY!
Olivio Sarikas
Affinity Photo - Make a Planet
Olivio Sarikas
Affinity Photo - Brushes Explained
Olivio Sarikas
Affinity Photo - Design your own Brushes
Olivio Sarikas
Affinity Photo - Flame Soccer Tutorial
Olivio Sarikas
Affinity Photo - How to save a bad Shooting
Olivio Sarikas
Behind the Scenes - Special Episode
Olivio Sarikas
Affinity Photo - Cyber Demon Tutorial
Olivio Sarikas
Affinity Photo - Red Riding Hood Project EP 03
Olivio Sarikas
More on: Image Generation Basics
View skill →Related Reads
📰
📰
📰
📰
AI tools for Spanish teachers: a practical 2026 guide
Dev.to AI
Best AI Writer for Long-Form Content in 2026: A Deep-Dive Comparison
Dev.to · Alex Zhang AI
ZeroScript Is Free and Open-Source. Someone Built a Fake Paid Copy Here’s What Happened.
Medium · AI
Why Most “AI Websites” Break the Moment a Real User Touches Them
Medium · Startup
Chapters (6)
🤖 Differential diffusion for better inpainting
1:00
💻 Setting up differential diffusion in Flud diffusion
1:40
🛠️ Demonstrating differential diffusion workflow in Comfy UI
2:59
*🎨 Comparing differential diffusion to classic inpainting *
4:24
⚙️ Installing differential diffusion node in Comfy UI
5:06
🧪
🎓
Tutor Explanation
DeepCamp AI