Differential Diffusion - Inpainting on Steroids!

Olivio Sarikas · Beginner ·🛠️ AI Tools & Apps ·2y ago

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 Remove breathing sound from your audio recording // Audacity
Remove breathing sound from your audio recording // Audacity
Olivio Sarikas
2 Noise Removal for Audio Recordings - fast & easy // Audacity
Noise Removal for Audio Recordings - fast & easy // Audacity
Olivio Sarikas
3 In the Bazar - NI Maschine Audio Sketch
In the Bazar - NI Maschine Audio Sketch
Olivio Sarikas
4 Submarine Concerto - NI Maschine Audio Sketch
Submarine Concerto - NI Maschine Audio Sketch
Olivio Sarikas
5 Affinity Photo - Creating a Photo Font
Affinity Photo - Creating a Photo Font
Olivio Sarikas
6 Affinity Photo - Rusty Metal Font Tutorial
Affinity Photo - Rusty Metal Font Tutorial
Olivio Sarikas
7 Affinity Photo - How to remove things from a photo
Affinity Photo - How to remove things from a photo
Olivio Sarikas
8 Affinity Photo - How to replace a Sky
Affinity Photo - How to replace a Sky
Olivio Sarikas
9 Affinity Photo - How to put Patterns on Clothing
Affinity Photo - How to put Patterns on Clothing
Olivio Sarikas
10 Affinity Photo - Vintage Look Tutorial
Affinity Photo - Vintage Look Tutorial
Olivio Sarikas
11 Affinity Photo - Photo Letter Font Tutorial
Affinity Photo - Photo Letter Font Tutorial
Olivio Sarikas
12 Affinity Photo - Print Ready Tutorial
Affinity Photo - Print Ready Tutorial
Olivio Sarikas
13 Affinity Photo - Grunge Maps Tutorial
Affinity Photo - Grunge Maps Tutorial
Olivio Sarikas
14 Affinity Photo - White Teeth Tutorial
Affinity Photo - White Teeth Tutorial
Olivio Sarikas
15 Affinity Photo - Frequency Separation Tutorial
Affinity Photo - Frequency Separation Tutorial
Olivio Sarikas
16 Affinity Photo - Double Exposure Tutorial
Affinity Photo - Double Exposure Tutorial
Olivio Sarikas
17 Affinity Photo - 5 Tricks for better Pics
Affinity Photo - 5 Tricks for better Pics
Olivio Sarikas
18 Affinity Photo - Realistic Fog
Affinity Photo - Realistic Fog
Olivio Sarikas
19 Affinity Photo - How to Match Color
Affinity Photo - How to Match Color
Olivio Sarikas
20 Bokeh Balls Trick - Affinity Photo Tutorial
Bokeh Balls Trick - Affinity Photo Tutorial
Olivio Sarikas
21 Affinity Photo - Remove Fog, Smog, Haze and Dust
Affinity Photo - Remove Fog, Smog, Haze and Dust
Olivio Sarikas
22 Affinity Photo - Orange & Teal Look
Affinity Photo - Orange & Teal Look
Olivio Sarikas
23 Affinity Photo - 5 MORE Tricks for better Pics
Affinity Photo - 5 MORE Tricks for better Pics
Olivio Sarikas
24 Affinity Photo - World in a Light Bulb
Affinity Photo - World in a Light Bulb
Olivio Sarikas
25 Affinity Photo - Watercolor Effect
Affinity Photo - Watercolor Effect
Olivio Sarikas
26 Affinity Photo - 5 Tricks for better Composition
Affinity Photo - 5 Tricks for better Composition
Olivio Sarikas
27 Affinity Photo - Fur Text Tutorial
Affinity Photo - Fur Text Tutorial
Olivio Sarikas
28 Affinity Photo - Skin Color & Tan
Affinity Photo - Skin Color & Tan
Olivio Sarikas
29 Affinity Photo - Oil Paint Look Tutorial
Affinity Photo - Oil Paint Look Tutorial
Olivio Sarikas
30 Histogram explained EASY & FUN - Affinity Photo Beginner Tutorial
Histogram explained EASY & FUN - Affinity Photo Beginner Tutorial
Olivio Sarikas
31 Affinity Photo - Text in Perspective
Affinity Photo - Text in Perspective
Olivio Sarikas
32 Affinity Photo - Dramatic Sky Colors
Affinity Photo - Dramatic Sky Colors
Olivio Sarikas
33 Why Black & White Photography is amazing!
Why Black & White Photography is amazing!
Olivio Sarikas
34 Affinity Photo - Stunning Black & White Photos
Affinity Photo - Stunning Black & White Photos
Olivio Sarikas
35 Affinity Photo - 5 Filters for Landscape Photography
Affinity Photo - 5 Filters for Landscape Photography
Olivio Sarikas
36 Affinity Photo - Remove Shadows EASY
Affinity Photo - Remove Shadows EASY
Olivio Sarikas
37 Let's Talk - Where we go from here :)
Let's Talk - Where we go from here :)
Olivio Sarikas
38 Affinity Photo - Realistic Image on a Screen
Affinity Photo - Realistic Image on a Screen
Olivio Sarikas
39 Affinity Photo - 4 Perspective Tools explained
Affinity Photo - 4 Perspective Tools explained
Olivio Sarikas
40 Affinity Photo - 3D Text Effect
Affinity Photo - 3D Text Effect
Olivio Sarikas
41 Affinity Photo - Tilt Shift done right
Affinity Photo - Tilt Shift done right
Olivio Sarikas
42 Affinity Photo - Blur Filters Explained - Part 01
Affinity Photo - Blur Filters Explained - Part 01
Olivio Sarikas
43 Affinity Photo - Design Project: Enigma Lounge
Affinity Photo - Design Project: Enigma Lounge
Olivio Sarikas
44 Affinity Photo - Fake Colorized Look
Affinity Photo - Fake Colorized Look
Olivio Sarikas
45 Affinity Photo - Tiny Planet Tutorial
Affinity Photo - Tiny Planet Tutorial
Olivio Sarikas
46 Affinity Photo - Change Day to Night - Tutorial
Affinity Photo - Change Day to Night - Tutorial
Olivio Sarikas
47 Affinity Photo - Neon Text Tutorial
Affinity Photo - Neon Text Tutorial
Olivio Sarikas
48 Affinity Photo - Wood-burn Effect
Affinity Photo - Wood-burn Effect
Olivio Sarikas
49 Affinity Photo - NEON Portrait Look
Affinity Photo - NEON Portrait Look
Olivio Sarikas
50 Affinity Photo - Angel Wings Tutorial
Affinity Photo - Angel Wings Tutorial
Olivio Sarikas
51 Affinity Photo - Remove any Logo
Affinity Photo - Remove any Logo
Olivio Sarikas
52 Affinity Photo - Portrait Design - SUPER EASY!
Affinity Photo - Portrait Design - SUPER EASY!
Olivio Sarikas
53 Affinity Photo - Make a Planet
Affinity Photo - Make a Planet
Olivio Sarikas
54 Affinity Photo - Brushes Explained
Affinity Photo - Brushes Explained
Olivio Sarikas
55 Affinity Photo - Design your own Brushes
Affinity Photo - Design your own Brushes
Olivio Sarikas
56 Affinity Photo - Flame Soccer Tutorial
Affinity Photo - Flame Soccer Tutorial
Olivio Sarikas
57 Affinity Photo - How to save a bad Shooting
Affinity Photo - How to save a bad Shooting
Olivio Sarikas
58 Behind the Scenes - Special Episode
Behind the Scenes - Special Episode
Olivio Sarikas
59 Affinity Photo - Cyber Demon Tutorial
Affinity Photo - Cyber Demon Tutorial
Olivio Sarikas
60 Affinity Photo - Red Riding Hood Project EP 03
Affinity Photo - Red Riding Hood Project EP 03
Olivio Sarikas

Differential Diffusion is a powerful method for inpainting that can be used in ComfyUI and Vlad Diffusion, allowing for more natural and detailed image editing.

Key Takeaways
  1. Load the model and select the positive and negative prompt
  2. Use the mask editor to paint the mask
  3. Apply Gaussian blur to the mask
  4. Configure the D noise value
  5. Compare results with and without Differential Diffusion
💡 Differential Diffusion can understand the context of the image and replace areas in a more natural way, resulting in more satisfying results.

Related Reads

📰
AI tools for Spanish teachers: a practical 2026 guide
Discover AI tools to enhance Spanish teaching, from automated grading to personalized learning paths, and transform your classroom experience
Dev.to AI
📰
Best AI Writer for Long-Form Content in 2026: A Deep-Dive Comparison
Learn how to choose the best AI writer for long-form content in 2026 and improve your content creation workflow
Dev.to · Alex Zhang AI
📰
ZeroScript Is Free and Open-Source. Someone Built a Fake Paid Copy Here’s What Happened.
Learn how a developer handled a fake paid copy of their free and open-source project ZeroScript and why it matters for open-source developers
Medium · AI
📰
Why Most “AI Websites” Break the Moment a Real User Touches Them
Learn why most AI websites fail when real users interact with them and how to avoid common pitfalls
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 🧪
Up next
ChatGPT Skills Explained Under 4 Minutes
MaxonShire
Watch →