How to install Forge for Stable Diffusion. Automatic1111 but BETTER!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey do you like stable diffusion and automatic 1111 well I'm going to show you how to install Forge which promises to be better faster stronger and to be honest well it kind of is but don't tell anyone oh and what do you call a knight that likes to scare people surprise AI so this is Forge for stable Fusion you might be saying well wait a minute Seb this isn't forg this is just automatic 111 well it may look like that because it is built upon automatic 1111 however it is just faster better stronger I'm now running a generation here cat and a hat with an Exel model I'm using my cinematic Styles if you want these they're available in my patreon as well as an text and image guide you can use this video to get started but if you want to delve much more in detail check out my Patron where I have more guides on that however let's quickly look at what's going on here so at first glance it basically looks like automatic 111 you have your models you have your VA up here you have a clip Skip and and all the usual tabs what you don't have in automatic 11 or at least pre-installed is you have a couple of extra tabs here for example you have SVD which is stable video diffusion and this is not even available in automatic 111 and if you checked my previous videos on comy you might might know that this is an image to video workflow so if I drop in something here and I have a SVD model you can basically start a quick generations with default values and you're going to be able to do stable video diffusion in an interface that is not comfy and and that is kind of nice now this is just a six frames per second generation so it's uh it's not super smooth but it's just so quick and easy to get something down and if you want smoother just change the frames here but this is not what this video is about I'm going to later on I'm going to show you how to install all this I'm going to do it in two steps or rather I'm going to show you two steps the easy version and a little more advanced version if you're having trouble what you do have is control it you you have pre-installed you have multiple control n units you also have stuff like photomaker already installed inside of Forge now you do need to download your models so you're going to need specific control net models those go in the models control net folder so that's a littleit different from stable Fusion again you want to dive deep find my text guide and one very cool feature about this is that if you load an image into here you actually have a mask so you can either draw something like this say you just want to use this area so you could use it like this you can also use a separate mask and draw it like this and this mask is based on the size up here so if you change this and Rec click this you're going to get a differ sized mask so that's a cool way of easily masking control Nets and and just this feature amazing and if for example we enable a cany here and if you're familiar with canny you know that everything in the image turns into little lines so let's say that we don't want the little blobs here on the right and we generate something that uh well let's resemble the the size here I'm just going to do roughly like this going do ninja man so now it's just going to take the left part here and give us an output so this part has been control net and this part is is not so this can be well basically anything now it's obviously going to match the rest of the image so we still have some blur and buy and stuff going on but it's not the same as what's happened down here so that's a really fantastic feature I love that now if you do check the GitHub page for Forge you can see there's some information here and most important information or which I'm going to tell you right now is that it's faster if you're using a GPU with like 8 gigs of vram you can expect to get about 30 to 45% speed up in interference speed uh which is kind of good and if you use a less powerful GPU like 6 gig of vram you can expect to get about the 60 to 75% extra speed and that is quite massive now for my card here the 4090 you're just expecting to get about 3 to 6% speed so I'm the real sucker here uh you guys who bought the six gigs gig cards you're the real winners good to you guys you're also saving a lot of money that you can buy lots of cool stuff with and it says if you're using control net uh sdxl here in this example the maximum control unit will increase by two times before you go out of memory so not only will you speed up stuff using Forge you will actually be able to do high resolution stuff more advanced stuff so what's not La now let's look at how to install Forge we're going to do it two ways the first way I'm going to show you is this one which is the click here to download one click package and the other one is we're going to install git Python and clone the repo and and you might be asking why why don't we only use the oneclick package well if it works for you that's great fantastic go for it it doesn't work for everyone and if that's the case I recommend installing it and python on your computer because running this the oneclick package it will not install python on your machine it will just run it in a little mini environment so you're going to click to download this that'll get you a 7even zip file that looks like this I recommend downloading 7ip if you don't have that then you can basically 7 zip extract to we UI Forge then you're going to get a folder that looks like this go into that and you're going to first this is very important you first need to click the update because the Sip that you might have might not be updated now this one was so it says already up toate press any key to continue this might change for you there might be a lot of stuff going on and then it might say press any key to continue once you've done that you're going to click this run and this is going to start your Forge for stable diffusion now this might take some time it's going to download some stuff but once that is finished you're going to have this screen launched for you in your browser and you're going to be ready to run super easy if you're encountering issues or you going to install it properly let me show you the other way so first we're going to download git all these links are going to be both in description below and in my patreon text guide choose your version Mac OS Linux or Windows here I'm going to show the windows I'm going to use the Standalone installer 64 4 bit for Windows I'm also going to go to the python page here we're going to go to downloads up here windows and then we're not going to select the latest one here we're going to check view the full list of downloads and we're going to find python 310 so we can scroll down here so I'm going to select 3.10 6 which is a good version here so T Fusion does not work with python 3.11 12 and and 13 so we need the python 3.10 I'm going to download that that scroll down find the windows installer 64bit and download that go into your downloads folder find the git here double click that we're going to press next here we're just going to leave everything default for now next next just leave everything default for the git one and we're just pressing next all the way through for the python install we're going to need some changes but get just click next don't even worry about it we're not going to check the release notes and we're just going to finish then we're going to start our python file here now bear in mind you have to click this button here remember click that button there don't forget it and then press install now now when you're trying to launch stable Fusion uh Forge and if you're getting python errors uh some people need to actually download python from the Microsoft store Windows store um so if python isn't working for you if you get pyth python errors download it from the Windows store or Microsoft Store I don't remember the name once that's finished you're going to head back into the GitHub link and you're going to find this here which is a URL that ends with Git then you're going to start a command window I'm just going to create a directory named Forge here and go into that first I did make directory Forge then I make change directory Forge you don't need to do this but I need to do this because I already had a previously Forge installed in in that folder then I'm going to type git clone and then I'm going to copy paste the URL that we took from the site now all the files are going to be copied to your computer and this is going to be similar to what you did when you if you downloaded the 7even Sip however now we're doing it well properly now you have two ways of starting it if you like using the terminal you can go in change directory stab Fusion web UI Forge and then you can find the web UI user bat and start that you can also go into the directory and find the web UI user bat and double click it from here now if you are on Mac or Linux you're going to want to open the web ui. sh which is not the web UI users Dosh now we're going to have some files installed and collected here so this is going to be a couple of minutes just wait for this and once this has finished you're going to be able to uh run Forge and it will actually Auto launch in the same way that it did for the oneclick installer now if you're not a new user and you've been around for some time maybe you're launching automatic 1111 and you might be asking well Seb why didn't we go into the web UI user file and add a lot of arguments to uh customize Forge well the thing is with Forge you don't need those arguments and they actually don't work all the med V Ram low vram Etc have been removed from Forge and it is automatically detecting What GPU you have and well adapting to your computer specs so no need to worry about any of that just start it don't think about it everything has now finished and again this is auto launched and we are now inside Forge now if this is a fresh install you will only have one model here if you want to install a specific model to generate from go into a site like civi download the model that you want go into your Forge folder the models and stable fusion and drop your model in here if you're downloading a Laura it goes into the Laura folder the control net models are not going to be installed so you have the pre-processors available but no models let me quickly show you how to get these installed again these links are available in the description and the text guide you're going to have this link for controls models for stable Fusion 1.5 models and you're going to have this link for controled models for stable Fusion XL uh so pick the ones that you want you're going to download the pth here then go into your Forge directory you're going to find models and and then control net and then you're just going to plop them in here once you do have them installed you're going to see them available here and they are going to be shown based on the model that you have selected up here so you have a 1.5 model which I have currently you're going to see the 1.5 models if I select an sdxl model and click here first I'm not going to see that I'm going to see the 1.5 ones just make sure you click refresh here then I can also see the the Exel models here available they're also going to be automatically selected if I click one of the control types here so that's how you get Forge for stable Fusion installed then just prompt what you want to see monkey in a jungle select the style if you have those select the size of your image how many images you want and press generate and you're going to be well on your way of using Forge thanks for watching check out the this video in well over that corner as always have a good one see you
Info
Channel: Sebastian Kamph
Views: 46,676
Rating: undefined out of 5
Keywords:
Id: mHvnHA04sbc
Channel Id: undefined
Length: 12min 13sec (733 seconds)
Published: Fri Feb 16 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.