Inpainting in Stable diffusion for beginners.

Sebastian Kamph · Beginner ·🎨 Image & Video AI ·3y ago

Key Takeaways

This video tutorial demonstrates how to use inpainting in Stable Diffusion, a type of generative AI model, to add AI-generated art to an image. The tutorial covers the basics of inpainting, including how to create a mask, adjust settings, and generate an image.

Full Transcript

hey everyone so today we're going to talk about in painting in stable fusion and I've prepared an image for that with a viking standing on Shore here what we're going to do is we're going to add something um to this image and I'm thinking maybe something in in this vicinity let's try for um more try for a ship so I've launched table diffusion and this is uh automatics web UI I want I have a a tutorial of how to install that and you can find that probably well I'll put the link somewhere you know here somewhere you'll find it anyway so let's go to image to image [Music] um we want to in paint the part of the image on the load our image the liking and let's see here Viking ship concept art digital painting that you work um let's set up the steps 50-ish go for LMS and this The Mask blur well let's let's draw the mask first and take from there so where do we want to ship let's draw a mask here let's give it some space fill that in all right so the mask blur if you set this to zero these edges will be super hard so you don't want that you want it to fade into the image uh so you know four should be fine if you set it too high you know it will blur all the way in so you won't get get an image at all so let's go back there um and then you can set what kind of content you want to and this is a little technical but if you put fill you're gonna you know take some part of the background and fill us more into that which is well let's let's just say we want more than what's available in the image and for that we need noise noise is what stable Fusion Builds on so we want to add noise so uh stable diffusion can actually work some work with that noise and create stuff and we have in paint masks we want one image let's start the scale a little a little bit and the image is yeah that should be about right so the denoising strength here that's how much this will change so let's set this for zero for example see what happens you can see here that the you know doesn't work well at all just uh it's like a painting by um abstract artists so let's try and up that to 0.65 again and see where that takes us you can see here that the image is churning and stable Fusion is working we actually have a Viking ship and you know our first result is is pretty good and we can iterate on this and turn it a bit a little bit better and this is all dependent on on the seed you get we have a randomized seed which is uh this setting minus one is it will randomize every time if you want to continue it right on this seed you could take this just you know put it down here and change the settings change the prompt whatever I'm not going to do that let's see if we can find anything anything else no that's very creative doesn't look like a ship at all well now it's a little bit but let's see if we can find something else there we go now that's a nice decent Viking ship I like that and in fact it's actually Blended pretty good I mean um you have the shadow here from from the ship and it's almost in tune with the shadow here it's a little too blue but you can adjust that easily in Photoshop as well as these lines here you know for a first result it's pretty good so I'm gonna show you how to work with more uh what how to do more advanced masks but before that if you like this content just like And subscribe and that'll help me out very much so let's talk about masks this mask is you know it's kind of crude you can't do a lot with it what we can do is we can upload a mask so I have prepared this image in in Photoshop and what we'll do here is we take this and just draw the shape now it will be basically be the same as the crude mask with we had you know previously but uh this gives us more options so let's uh put white here inverse make the best black save this let's call it viking mask let's go back into stable diffusion and we're going to drop our image here liking and then we're going to drop our mask here and uh we have uh your settings are the same we have the blur the the Latin noise in paint mask if you have this reversed say you made this black and this white you can check in pink not not masked and I can show you um show that in a bit let's run this and as before we're getting the the same kind of mask but uh you know we have more options of creating an advanced mask if we want to you know this turned out pretty good we even got a little ship uh back there so if um if you've made it to the reverse way it would um you press that button and since we didn't make it through reverse way we'll get this saved and you know this is uh in painted which is all wrong for us so we went bought the impact masks and that's um basically how you work within painting in stabilitation so you know try it out good luck have fun

Original Description

Updated Advanced Inpainting tutorial here: https://youtu.be/No1_sq-i_5U In this tutorial I'll show you how to add AI art to your image while using #inpainting in automatic1111's webui of #stablediffusion on your computer. Super easy, start making your own #ai images similar to #midjourney Chat with me in our community discord: https://discord.com/invite/dFB7zuXyFY Support me on Patreon to get access to unique perks! https://www.patreon.com/sebastiankamph Ultimate Stable diffusion guide https://youtu.be/DHaL56P6f5M The Rise of AI Art: A Creative Revolution https://youtu.be/Ujpr62w7qcU Ultimate Animation guide in Stable diffusion https://youtu.be/lztn6qLc9UE Dreambooth tutorial for Stable diffusion https://youtu.be/Z-hyKADmHmE 5 tricks you're not using https://youtu.be/-5TaeHvnVxE Avoid these 7 mistakes https://youtu.be/b8xWjrzTAPY How to fix live render preview: https://youtu.be/_4rY0oPbUYA
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Sebastian Kamph · Sebastian Kamph · 2 of 60

1 How to install stable diffusion tutorial (automatic1111)
How to install stable diffusion tutorial (automatic1111)
Sebastian Kamph
Inpainting in Stable diffusion for beginners.
Inpainting in Stable diffusion for beginners.
Sebastian Kamph
3 OpenAI NEW Whisper is AMAZING!
OpenAI NEW Whisper is AMAZING!
Sebastian Kamph
4 Tutorial - Free AI Game assets in Stable diffusion. Episode 1: Sword
Tutorial - Free AI Game assets in Stable diffusion. Episode 1: Sword
Sebastian Kamph
5 Game assets in Stable diffusion. Ep 2: Jewelry
Game assets in Stable diffusion. Ep 2: Jewelry
Sebastian Kamph
6 Stable diffusion Animation tutorial with AUTOMATIC AUDIO SYNC. Make your own AI music video!
Stable diffusion Animation tutorial with AUTOMATIC AUDIO SYNC. Make your own AI music video!
Sebastian Kamph
7 Stable diffusion img2img tutorial.
Stable diffusion img2img tutorial.
Sebastian Kamph
8 Stable diffusion tutorial - AI Game assets. Episode 3: Treasure chest
Stable diffusion tutorial - AI Game assets. Episode 3: Treasure chest
Sebastian Kamph
9 Stable diffusion animation tutorial. Deforum ALL settings explained. Make your own AI video!
Stable diffusion animation tutorial. Deforum ALL settings explained. Make your own AI video!
Sebastian Kamph
10 Dreambooth tutorial for stable diffusion. Quick, free and easy!
Dreambooth tutorial for stable diffusion. Quick, free and easy!
Sebastian Kamph
11 Dreambooth to CKPT. NEW VERSION! Dreambooth locally on potato pc.
Dreambooth to CKPT. NEW VERSION! Dreambooth locally on potato pc.
Sebastian Kamph
12 Stable diffusion tutorial. ULTIMATE guide - everything you need to know!
Stable diffusion tutorial. ULTIMATE guide - everything you need to know!
Sebastian Kamph
13 AI music video. Neffex - Winning
AI music video. Neffex - Winning
Sebastian Kamph
14 Stable diffusion video input tutorial. How I made this music video singing animation.
Stable diffusion video input tutorial. How I made this music video singing animation.
Sebastian Kamph
15 Stable diffusion color grading tutorial. Quick trick!
Stable diffusion color grading tutorial. Quick trick!
Sebastian Kamph
16 Prompt Editing and Alternating Words in Stable Diffusion.
Prompt Editing and Alternating Words in Stable Diffusion.
Sebastian Kamph
17 Stable diffusion gui most important setting. Live render preview.
Stable diffusion gui most important setting. Live render preview.
Sebastian Kamph
18 NEW Voice2img prototype! This AI assistant is using Stable diffusion!
NEW Voice2img prototype! This AI assistant is using Stable diffusion!
Sebastian Kamph
19 Prompts and FREE ONLINE stable diffusion. OpenArt AI tutorial
Prompts and FREE ONLINE stable diffusion. OpenArt AI tutorial
Sebastian Kamph
20 Stable diffusion Halloween concept art tutorial.
Stable diffusion Halloween concept art tutorial.
Sebastian Kamph
21 Stable diffusion GTA 6 style image tutorial. Quick and EASY!
Stable diffusion GTA 6 style image tutorial. Quick and EASY!
Sebastian Kamph
22 Stable diffusion prompt tutorial. NEW PROMPT BOOK released!
Stable diffusion prompt tutorial. NEW PROMPT BOOK released!
Sebastian Kamph
23 Stable diffusion GTA 6 style image tutorial. Quick and EASY!
Stable diffusion GTA 6 style image tutorial. Quick and EASY!
Sebastian Kamph
24 How to install Deforum locally. Stable diffusion animation.
How to install Deforum locally. Stable diffusion animation.
Sebastian Kamph
25 Dreambooth in Automatic1111. Cpu only & gpu option.
Dreambooth in Automatic1111. Cpu only & gpu option.
Sebastian Kamph
26 Nvidia's NEW text to image AI eDiff-I. Will it dethrone Stable diffusion?
Nvidia's NEW text to image AI eDiff-I. Will it dethrone Stable diffusion?
Sebastian Kamph
27 NEW VR in Stable diffusion? The future is now!
NEW VR in Stable diffusion? The future is now!
Sebastian Kamph
28 Motion capture workflow implementation with Stable diffusion
Motion capture workflow implementation with Stable diffusion
Sebastian Kamph
29 Don't make these 7 mistakes in Stable diffusion.
Don't make these 7 mistakes in Stable diffusion.
Sebastian Kamph
30 Stable diffusion up to 50% faster? I'll show you.
Stable diffusion up to 50% faster? I'll show you.
Sebastian Kamph
31 Stable diffusion 2.0 Released
Stable diffusion 2.0 Released
Sebastian Kamph
32 Top 5 Stable diffusion tips for newcomers.
Top 5 Stable diffusion tips for newcomers.
Sebastian Kamph
33 3 AMAZING Stable diffusion models that will change your life!
3 AMAZING Stable diffusion models that will change your life!
Sebastian Kamph
34 Best NEW AI tool? InvokeAI tutorial for Stable diffusion.
Best NEW AI tool? InvokeAI tutorial for Stable diffusion.
Sebastian Kamph
35 Monetize your AI art on Creative Fabrica with CF Spark.
Monetize your AI art on Creative Fabrica with CF Spark.
Sebastian Kamph
36 NEW Stable diffusion 2.1 RELEASED!
NEW Stable diffusion 2.1 RELEASED!
Sebastian Kamph
37 Stable diffusion 2.1 is GREAT. At this one thing. 2.1 install tutorial.
Stable diffusion 2.1 is GREAT. At this one thing. 2.1 install tutorial.
Sebastian Kamph
38 Your face in AI images? The EASY way.
Your face in AI images? The EASY way.
Sebastian Kamph
39 3 FANTASTIC Stable diffusion models you don't know about!
3 FANTASTIC Stable diffusion models you don't know about!
Sebastian Kamph
40 Unstable diffusion JUST GOT BANNED! 😲
Unstable diffusion JUST GOT BANNED! 😲
Sebastian Kamph
41 The end of AI Art? Lawsuit against Stable diffusion
The end of AI Art? Lawsuit against Stable diffusion
Sebastian Kamph
42 Stable diffusion TIER LIST. Best GUI ranked.
Stable diffusion TIER LIST. Best GUI ranked.
Sebastian Kamph
43 Google's ChatGPT rival Bard. Is it better?
Google's ChatGPT rival Bard. Is it better?
Sebastian Kamph
44 7 Secrets in ChatGPT (Don't tell your boss!)
7 Secrets in ChatGPT (Don't tell your boss!)
Sebastian Kamph
45 How to ChatGPT? Chat GPT explained!
How to ChatGPT? Chat GPT explained!
Sebastian Kamph
46 How to ChatGPT in 20 seconds!
How to ChatGPT in 20 seconds!
Sebastian Kamph
47 Midjourney 4C Features
Midjourney 4C Features
Sebastian Kamph
48 NEW ControlNet for Stable diffusion RELEASED! THIS IS MIND BLOWING!
NEW ControlNet for Stable diffusion RELEASED! THIS IS MIND BLOWING!
Sebastian Kamph
49 Revealing my Workflow to Perfect AI Images.
Revealing my Workflow to Perfect AI Images.
Sebastian Kamph
50 LIVE Pose in Stable Diffusion's ControlNet.
LIVE Pose in Stable Diffusion's ControlNet.
Sebastian Kamph
51 Control Light in AI Images
Control Light in AI Images
Sebastian Kamph
52 Multi-ControlNet tutorial.
Multi-ControlNet tutorial.
Sebastian Kamph
53 Control Text in AI Images
Control Text in AI Images
Sebastian Kamph
54 Full AI Art Workflow. ControlNet & Stable diffusion.
Full AI Art Workflow. ControlNet & Stable diffusion.
Sebastian Kamph
55 ControlNet Guidance tutorial. Fixing hands?
ControlNet Guidance tutorial. Fixing hands?
Sebastian Kamph
56 Illuminati Model with Noise Offset & Weekly AI Art Challenge
Illuminati Model with Noise Offset & Weekly AI Art Challenge
Sebastian Kamph
57 Paint&Text2Image - MultiDiffusion Region Control.
Paint&Text2Image - MultiDiffusion Region Control.
Sebastian Kamph
58 Style2Image in ControlNet (T2I)
Style2Image in ControlNet (T2I)
Sebastian Kamph
59 Gen-1 AI Animation is WILD
Gen-1 AI Animation is WILD
Sebastian Kamph
60 Famous Scenes Remade by ControlNet AI
Famous Scenes Remade by ControlNet AI
Sebastian Kamph

This tutorial teaches the basics of inpainting in Stable Diffusion, including how to create a mask, adjust settings, and generate an image. By following along, viewers can learn how to add AI-generated art to an image.

Key Takeaways
  1. Launch Stable Diffusion and load an image
  2. Create a mask using the brush tool
  3. Adjust the mask blur and denoising strength settings
  4. Add noise to the image
  5. Generate the image using the inpainting tool
  6. Refine the image by adjusting settings and re-generating
💡 Inpainting in Stable Diffusion allows users to add AI-generated art to an image by creating a mask and adjusting settings to control the generation process.

Related Reads

📰
The Independent Image Frontier: Midjourney, Recraft, Ideogram and FLUX
Explore the independent image frontier with Midjourney, Recraft, Ideogram, and FLUX, optimizing different aspects of image generation
Medium · Machine Learning
📰
Top 5 Uncensored AI Image & Video Generators — Here’s the Honest Pros and Cons of Each
Discover the top 5 uncensored AI image and video generators, their pros and cons, and how to use them effectively
Medium · AI
📰
I Shut Down 4 Websites — Because I Built My Own Image Tool Instead
Learn how one developer shut down 4 websites by building their own image tool using Python, and discover the potential of DIY solutions in software development
Medium · Python
📰
7 AI image tools that actually look like a brand in 2026
Discover 7 AI image tools that can help create unique brand visuals in 2026
Medium · AI
Up next
This Free Chinese AI Designs Better Than Claude
SCALER
Watch →