Skip to playerSkip to main content
Ever wanted to see what's beyond the frame of your favorite AI generation? In this tutorial, I show you how to perform "Outpainting" using Stable Diffusion and ControlNet Inpaint within the Automatic1111 web UI.

I demonstrate the "Resize and Fill" method to expand your images vertically or horizontally, effectively drawing new content outside the original boundaries. You'll learn how to use BLIP captioning to generate accurate prompts for the new areas and how to refine the final results using Image-to-Image for a seamless blend.

Original YouTube Tutorial: https://youtu.be/IjNIXbJL8ts

Connected Videos in this Series:
* ControlNet OpenPose Tutorial: https://youtu.be/pR0t_f3OGgY
* Automatic1111 Extras (Upscaling) Guide: https://youtu.be/rTIxH4pJv4g

Source/Model Resources:
* ControlNet Extension (Mikubill): https://github.com/Mikubill/sd-webui-controlnet
* Stable Diffusion ControlNet Inpaint Models: https://huggingface.co/lllyasviel/ControlNet-v1-1

Video Details:
* Original Publish Date: April 12, 2024
* Focus: Outpainting / ControlNet Inpaint / AI Image Expansion
* Test hardware: RTX 4060 Ti (16GB VRAM)

Follow lordcaocao2025 on Dailymotion for more technical AI research and generative workflow guides!

---
Connect with me:
📺 YouTube: https://www.youtube.com/@CaoCao2025
📱 TikTok: https://www.tiktok.com/@caocao20250
💎 Patreon: https://www.patreon.com/cw/Caocao2025

#StableDiffusion #Outpainting #ControlNet #AIArt #AITutorial #Automatic1111 #lordcaocao2025
Transcript
00:00Hello guys, welcome back with me. CiaoCiao2025. Today we're going to learn about alt-painting using automatic 1111 stable division
00:09and control it in painting.
00:12So we're going to draw an image outside its current origin. Here are some examples.
00:44Okay, how to do this? First we're going to use control net for this thing. That is the inventing control
00:53net.
00:54You need to install control net. So if you don't have control net yet, you better install it now. You
01:00could use the link on the description.
01:02Control net is more important. And also this is important, resize and fill.
01:07So when we resize an image, it's going to force the stable division to fill the empty.
01:14Okay, now you put your original image here. Or the first image I use this. It's 687868. But I want
01:23to draw quite below.
01:25So by reducing the width to 1512 and keeping the heat to 768, it's going to make like an empty
01:36space here.
01:37But I forgot to enable the control net. Now you could just simply hit generate if you want.
01:45You could leave it down there and simply generate this. And it's going to generate an image here.
01:52Generate below here, right? And you could actually widen here after you have this.
02:02You could go to 768 again. And it's going to widen the area to make it square again.
02:10Yeah, I don't like this. So let's generate again.
02:14It's generated this, but it like make a box here. If you feel like, you know, it's giving you like
02:20this kind of thing.
02:22You could add the background light. Don't use frame and stuff in the negative form. And it's going to try
02:30to do its best.
02:32Yeah, okay. This is it.
02:34Next, you could go to image to image. If you want, if you think it's not good enough, but I
02:40guess this is good enough.
02:41So we don't need to edit it in the image to image.
02:45Next image is this black widow. Obviously it's really slow in here. So if you want to, in painting to
02:55the app, we could just add this. Repeat the same thing.
02:59It's actually a big picture. So we actually going to reduce its size because I don't want to load a
03:05lot.
03:06After you process it, you could always do increase its size using high res fix or use the extra.
03:13But for now, you could simply just generate this. You know, you could not add anything here and it's still
03:22going to be fine.
03:23But if you feel like you need to add anything, you could just welcome to do that. It's better actually
03:29to add things.
03:33Like you could add masterpiece and high quality at a plus. See, simply by adding that.
03:45It's a shadow. But it's really bad. So yeah. Okay. I get this. This is, I think, better.
03:59So if you want to increase the width, you could do that or simply finish that in this form. It's
04:07also okay.
04:12Okay.
04:13Okay. Next, for example, if you want to know a better prompt to put in here, you could go to
04:20image image first.
04:22For example, we add this image here and we want to know what is this.
04:26You could click integrate clip here. If this is your first time, it's going to download the models.
04:32That is, bleep captioning. So we could put it here. We put the image here. Upper body.
04:42And since it is already quite, quite a force free ratio. We're going to increase its width instead first.
04:51Let's generate that. See, it's good. And then let's generate what below.
05:02That is 1024. You could actually generate more down if you want. See, it's a upper body.
05:13So if you confuse what should you put on the perm, you could use this.
05:20Okay. Now let's try other image. Okay. Let's use this instead. Yeah. There's one like it.
05:30And then we add it to 124. So add full body. I don't think it's going to be full body
05:38per se,
05:39but at least half of the body will be showing up. This is quite good.
05:43Okay. Let's add the dream and unrealistic dream. Okay. Let's do it with that.
05:52Okay. If you want to increase it again, you should just cut this and upload it again.
05:58Because, you know, for now, we can't do anything about the size here.
06:06Okay. I'm going to do this also.
06:09I'm going to at least show, at least make him show a leg.
06:15And if you somehow had a frame like this, you could actually, you know, it's in painting.
06:22So you could actually edit this.
06:25And maybe you could actually change the background too if you want.
06:28Since this is actually controlled in painting.
06:31But for now, we're going to force it to have, like, clear background instead of a frame.
06:38See?
06:39Generate better things.
06:42Now let's put it here.
06:44Okay. I'm going to double down to, yeah, maybe this thing.
06:49Of course, it's generate this, I think.
06:52But you could always edit it out.
06:57And, you know, if you feel like it's not great enough, you could always send it to image to image
07:03or in painting.
07:05For example, we're going to send this to in-paint.
07:11And maybe repair the color here.
07:16So it's the same color.
07:19You know, it's just a random thing I do.
07:26And make sure you resize one.
07:31So there's no actually resize thing.
07:34And ideally, you should use the in-paint models.
07:39But in this case, I'm going to do what I do.
07:43So what we change is actually only the navy clothes, I guess.
07:50Or blue-sky clothes.
07:53Or shirt.
07:54I don't know.
08:02Okay.
08:03That's the result.
08:05That's that.
08:06But I'm going to keep this for now.
08:09Okay.
08:09We're going to try this last one.
08:13And see how the result.
08:15I don't like it.
08:16So you can generate more.
08:19The hands looks really bad.
08:25Still bad.
08:27Yeah, I guess this is better.
08:36Yeah, I take this.
08:38Anyway, guys, I think that's it.
08:40You know, for out-painting and stable division and automatic 1111.
08:45Love that help.
08:47It's really good, you know.
08:49And make sure you use in-painting, not regular image to image or regular in-painting.
08:54Without controlling it, you know, the result is really bad.
08:57If you use simply using image to image and resize it.
09:02Anyway, thank you for watching.
09:03Don't forget to like, share, and comment.
09:05And see you again on the next episode.
09:06Have a nice day.
09:07Bye.
09:09You
Comments

Recommended