Recently a brand new free outpainting tool for your local stable diffusion just came out and it basically changes the way we do outpainting with stable diffusion: painthua!
No more complex installation, no more bugs to fix (let’s hope), just a simple and easy way to create amazingly huge images with your local Stable Diffusion installation in your browser for FREE!
So in this video, I will show you how to make that website work with your local Stable Diffusion installation and I will also give you tips and tricks on how you can get the best results possible!
Hello humans my name is Kenya AI Overload and boy do I have an insane Tool for you today now I don’t know if You remember correctly but a few days Ago I created a video when I explained To you how you can install stable Diffusion Infinity on your own computer But unfortunately this installation was A little too complex for some people Which I completely understand and a lot Of you really wanted to have this kind Of implementation in stable diffusion But unfortunately it was impossible Until now so let me introduce you to Paintur.com now what is paint you are Well first of all it is not paid you are It’s paint Hua who I supposed to mean Paint in Chinese which means that Technically this website is called Paintpaint.com but anyway so Penthouse.com is basically an old Painting tool that connects to your Local stable diffusion installation via Its API so it basically allows you to Use an in-painting tool directly from Your browser without having to install Anything so as you can see right now my Local stable diffusion installation is Running currently I come on this website I click here to show The Prompt so in my Case of course I will be using a Portrait of Christina Hendricks and then To use this all I have to do is just Click drag to select the size that I
Want and then click again to generate The image and this is the final result Pretty nice if you ask me and very soon You’ll be able to generate images like This or even like this absolutely Beautiful now what is this sorcery and What is this magic website and how does This work so basically this website Listens to your local URL that your Local installation of stable diffusion Uses and then it uses the resources of Your computer to generate the images now To be able to make this work is actually Really really simple first what you need To do is make sure that you’re running The latest version of stable diffusion And for this you have basically two Solution either you click here on your Folder URL type CMD press enter this Will bring up the command prompt window And here you’re gonna type get pull and Press enter and this will update your Stable diffusion installation and the Second way is right click here on your Web UI user bad file exit with notepad And here right above called Web ui.bat Line you’re gonna put git pool and then You’re Gonna Save the file this way each Time that you launch table diffusion it Will automatically update the folder and Then to be able to make the website work You’re gonna come here and type dash Dash API right after command line Arjs and this is basically the only
Thing that you need to do in order for The website to work which is actually Really really cool and very simple to do Now here’s a little update for you Unfortunately the latest update of Stable diffusion actually broke the Ability for the website to connect then All you have to do is simply click here On webviewi.py right click exit with Notepad and here on the line 148 it Should say App.user underscore middleware and what You want to do is that you want to put This sign right here just in front of The line you want to comment this and Then you’re going to save the file if You don’t do this currently this will Not work so make sure you do this Correctly and then all you have to do is Simply launch stable diffusion then You’re going to select your local URL Ctrl C to copy it paste it in your Browser and then you will be in your Stable diffusion web UI then you’re Going to click on settings scroll down Make sure that the apply color Correction to image to image results to Match original colors is unchecked Otherwise you’re gonna have very visible Difference in colors then make sure that Here in your quick settings list you Have input the impainting underscore Mask weight which if you don’t know what This is you should probably watch this
Video that I will put in description Down below don’t forget to apply the Settings then make sure that the Impacting conditioning mask strength is Set at one otherwise it will not work And then make sure that you have Selected this special in painting model I will leave a link to this model in the Description down below if you don’t have Of it already then you’re gonna go on a Website penthouse.com and then you Should automatically detect your stable Diffusion installation and you should be Able to generate an image immediately so Again just click drag to select the size And then click again to start generating The image and as you can see it is now Using my stable diffusion installation To generate this image and this is the Final result now before I start Explaining all the tips and trim that You need to know in order to have the Best results let me actually go through All the settings that you see right here Now first before we actually begin Playing around with the settings if you Want to increase or decrease the size of Your canvas now you need to know that Compared to the infinite canvas this is Technically not really infinite your Canvas is actually represented by your Browser screen so the size of your Screen right here is basically the size Of your canvas and so if you want to
Have a bigger canvas all you have to do Is basically the zoom on the web page by Pressing Ctrl and minus so if I press Ctrl and minus it will basically de-zoom But at the same time increase the size Of canvas so if I do it again a few Times you see right now that now my Canvas should be way bigger and to be Able to use this space you need to Refresh the page so all you have to do Is just press F5 and as you can see Right now now all of this space right Here is my entire canvas which I think Should be more than enough for everybody And again if you want to decrease the Size of your canvas all you have to do Is basically do the opposite and press Ctrl and plus and this will basically Zoom in on the page but at the same time Decrease the canvas so now I’m gonna Press Ctrl plus and as you can see I’m Zooming in on the page and again a few Times and again if I press F5 this is Now the new size of my canvas so it’s Kind of up to you to kind of play around With the size to see what you actually Need for your creation but make sure That you actually choose the size of Your canvas before you actually start Generating images because if you do Press F5 everything will be deleted so Now let’s actually go through all the Options that are currently available now First of all I want you to be aware that
This is really new stuff alright this Came out like less than a week ago so This is still like a work in progress so Maybe by the time that this video comes Out new things might have been added or Might have changed which is why I will Put the link for the GitHub and the Discord server down in the description Down below so that you can always stay Up to date with the latest changes so One of the most important window right Here is called help if you click on this Button right here you will basically see An entire overview of all the options And what you need to do in order to make This website work and as you can see it Has even been updated today because it Says right here in the latest stable Diffusion update actually breaks the Website and it also gives you a few tips And tricks that you might want to know Before you start using the website okay So the first option right here is your Prompt if you click on this button right Here here is where you basically input Your prompt so for it to work correctly Make sure that your prompt is between Those quotation marks do not delete them Otherwise it will not work obviously and What’s actually great is that it will Actually keep in memory the last problem That you used probably by using cookies But this is actually really really cool Because if you are often like me using
The same prompt you don’t actually have To retype it again and again and again So here you have an option for the Negative prompt so if you want to use Negative problems again you want to put Them between these quotation marks here Is where you’re gonna put the seed the CFG scale the sampler in my case I use The Euler ancestral the amount of steps The adenosis strength and The Mask blur Which I actually recommend you to put at Eight I will explain later why and Before I show you all the other options Let’s actually generate a new image so As I showed you to generate an image all You have to do is just left click then You can select the size of your image You can just you know drag and select The size that you want and then you can Simply click to generate an image but if For example you have misclicked and you Want to cancel the selection you can Simply right click and it will cancel Your action as right here but what I Want is actually to generate an image so I’m going to left click then drag to Select the size that I want and then Left click again and this is the final Result now here as you can see we have a Bunch of options now to be able to Continue out painting you need to click Here on this button right here to accept The current generation or you can Actually either cancel to delete
Everything right here or click on this Button right here to generate a brand New image so for example if I click on This button it will actually start Generating a brand new image and now Using the buttons right here you can Actually choose which which one you Actually want so the previous generation Is not lost it is still here if you want To select it all you have to do is just You know click previews or next to Choose the image that you want and then Let’s say that I want this one and then Click on this button right here to Accept the current image and as you can See now we are free to do another Generation also if for example you want To erase the image you can right click You’re gonna have this option right here That says erase and you need to Basically drag to select the size that You want and if you want to erase part Of this image you can simply left click And it will basically erase the part of This image as you can see right here and Don’t worry if you actually misclicked Or you did a bad manipulation all you Have to do is just press Ctrl Z to undo The changes that you just made which is Actually really really cool now right Here you’re gonna see a bunch of options So you’re gonna see mask show mask brush And Palette now the mask and the brush Actually do very similar things in the
It says that if you click on the mask Right here you can actually draw what You want to erase when you out paint Part of this image and the brush is Actually very similar to The Mask Because the brush allows you to paint a Mask using a certain color so for Example let’s say a select blue and I Paint part of this image this is Basically the exact same thing as using This button right here now I’m not quite Sure why you would use the brush tool Instead of the Mask tool but this option Is still available if you want to use it Now one thing that the brush can do then The mask cannot is actually when you Have the brush selected if you right Click you can actually erase part of the Image so if you don’t want to put a mask And simply paint over it you can simply Delete part of the image and if you Click on this button right here to show The Mask you see that by erasing it we Also create automatically a mask over The areas that we just erased now in my Case I never really use the brush tool But because I feel like this is a very Destructive workflow which is why I Highly recommend that you use the mask Instead now the palette button is only To select colors for your brush but as I Said it’s not really that useful so if I Were you I would just use the mask tool Instead so then you have this button
Right here that is basically the image To image mode which is really really Cool so if you want to use for example This image and transform it into another One you can use this mode right here to Do so but do not forget that if you want To use this mode you need to come to Your prompt and then play around with The denoising strength otherwise it will Completely replace the current image so For example let’s say I want like 0.35 Let’s say I want instead of Christina Hendrix I want Scarlett Johansson and Then if I select this image right here And then click again to generate this is The result that I get which is well Definitely pretty pretty good but no Offense to Scarlett Johansson I still Prefer Christina Hendricks like come on Now so then you have these buttons right Here which is basically to undo control Z Auto redo exactly like in Photoshop so For example let’s say that you erased Part of this image and you’re like oh my God no I shouldn’t have erased it you Can click on Ctrl C to undo it and maybe You change your mind again you’re like Oh well maybe I should erase part of This image then you can simply click on This button right here to redo your Action then you have these two buttons Right here you control C control V so if Ctrl c will basically copy the entire Canvas a control V will paste it at the
Center of the canvas so for example if I Click Ctrl C it says canvas copy to Clipboard and then I click on Ctrl V it Will basically paste the image and the Center of the canvas so if you want your Image to be Centered for example well This is a pretty good way to do it but In my case we’ll just go back to the Original one so here you have the config Option which basically allows you to Manually change the size of the canvas In the selection but I prefer actually Doing in it with the control plus and Control minus I find it a little bit Easier here Ctrl s is what you need to Use if you want to export the final Image so if I click here Ctrl s it will Basically export the entire canvas and This button right here on the green mode If you leave it selected it will Basically always position your selection Into a grid it will follow the grid Precisely but if you leave it unchecked You can actually use your selection Freely so if you want to have a little Bit more freedom on where you can put Your selection you should definitely Then have this mode disabled now in my Case I kind of like having a great mode So I’m just gonna leave it on and then There’s button right here Ctrl o is what You use if you want to open a previous Canvas OR open that image that you Generated previously and this is
Actually what I’m gonna do I’m gonna First start by erasing this image don’t Worry I actually saved it I’m fine and I’m gonna click on this button right Here to import a previous image that I Generated on this canvas and there you Go now as you can see right here you Might be a little familiar with the Style that was used on this image Because if you watched yesterday’s video I showed you how you can actually use a Special stable diffusion model trained On Disney images and if your question is Can you actually use your own model in This installation the answer is actually Yes absolutely so compared to stable Diffusion Infinity where it was actually Pretty difficult to do it and all you Have to do if you want to change the Model is just go back to your stable Diffusion web UI and then select it in Your stable diffusion checkpoint so here I’m just going to select the special Disney style model that I showed you Yesterday I’m gonna put in my prompt the Modern Disney style which is the three Words that you need to use in order for The model to work make sure that your Adenosis strength is high I’m just gonna Put one for an example I’m actually just Gonna erase this image right now and Then I’m gonna left click drag to select The size and then click again to Generate generated image and here is the
Final result looks absolutely beautiful So yes if you want to use your custom Model on this website you can actually Do it but do not forget that if you Actually want to have good results for Out painting you should definitely Select the special in painting model Otherwise you’re not gonna have the best Results now here’s actually a little Trick for you if you actually want to Create this kind of images but you also Don’t want to have weird results between The images you can actually create the Base image using your custom model and Then draw a mask between the images Select the special in painting model and Then paint over these lines using that Special in-pacing model this way Actually your images will be linked Together pretty well with no visible Seams using the special in painting Model and speaking of Sims as of right Now it is not perfect when it comes to Sims if you just use it as a is but There is actually a little trick that You need to use in order to make the Seams completely invisible now first in Your prompt make sure that the value for Your mask blur is eight it will actually Help a lot with the final result and Then let’s say that you want to actually Out paint part of this image or part of This image right here what you need to Do is that you need to select the mask
Button and you’re gonna have to Basically draw a mask on each border so For example since I bought an image Right here I need to make sure that These borders right here are invisible So I’m gonna draw a mask over these Borders same here and same here then I’m Just gonna modify my prompt then right Here I’m gonna start by selecting the Corner dragging it to the size that I Want and then click again to generate The image and everything that you see Right here will be out painted using the Special in painting model and as you can See right here this is the final result And if I click on accept you can see That there is a absolutely no visible Seams at all the final result is just Absolutely perfect and then again if I Want to do the same for the other side And there you go and as you can see this Is the final result absolutely insane What a gorgeous image and all of that in A few minutes and then do not forget Once you’re done click on this button Right here to save it on your own Computer and there you have it folks now You should have absolutely no excuses to Not use out painting tools on stable Diffusion and in my opinion I actually Do prefer using this website over a Stable diffusion Infinity it is way Easier and way faster to use and all of That without any installation required
Absolutely fantastic and there you go Thank you so much to my patreon Supporters for supporting my videos you Guys are absolutely awesome Congratulations also to this week’s air Challenge winner the golden Smith for His fantastic cute and creepy submission Really really cool well done and if you Too want to to participate to our AR Challenge that we do every week on Discord you can click the link in the Description down below to join my Discord server and maybe YouTube can be Featured in the next video that being Said thank you so much for watching Don’t forget to subscribe and smash the Like button for the YouTube algorithm And I’ll see you guys next time bye bye