Stable Diffusion WebUI Forge Is Just Plain Better Than A1111 WebUI

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to web UI Forge it's like a cross between the automatic 1111 web UI and something which actually works as well as fixing a variety of long-standing bugs in automatic 1111 such as those with checkpoint loading users of low-end graphics cards should see some massive performance and resource usage improvements for those of you with 6 gig vram cards you could be looking at up to a 75% speed up even 4090 users can expect a tiny boost though more around the 5% level GPU Peak memory usage should be better too which is great news for those of you wanting increased resolutions or batch sizes basically anything in automatic 1111 that generated an out of memory error for you will now have a much better chance of working in Forge especially if you are right on the board borderline before and just needed that extra 50 or 100 Meg for me those improvements alone make web UI Forge a much better choice than native automatic 1111 but the fun doesn't stop there oh no not at all because now you also get a whole bunch of extensions built in a much easier way to add your own stuff and a whole bunch of things that you can't even get in the original automat itic 111 such as masks with IP adapter masked control net photomaker and a veritable plethora of tools you'd previously need to use comfy UI for still not enough for you well how about some new Samplers then because you also get a bunch of those too if you're finally sold on the features then perhaps it's time to take a quick look at the installation for which there are essentially two options now when when it comes to installation this repository is a little backwards because it both focuses more on Microsoft Windows users and it tries to steer you away from doing anything normally if you are a Windows user the readme will attempt to draw you into downloading the oneclick package which will get you going in around four clicks assuming you already have something to unzip szip archive files this is a great option if you're never going to use another Python program in your life and you just want something to work quickly without having to understand what it is you're doing so if that's you then go ahead and download and run the multi click oneclick installer there are some rather obvious downsides to this approach however such as well not really understanding what it is you've just done and how it works if you do want to use another Python program you won't have leared anything and uh due to Not Having learned anything just now you may be confused and think you already have a python installed already and thusly the confusion continues because you didn't want to learn how to do a normal install so how can you as a slightly more techsavvy computer user who wants to learn how to do things avoid all of that and just do a normal install well the instructions are there if a little brief like it says install anacon and open your anaconda prompt get clone the forge repo and then run web ui- user dobat of course that won't do you any good if you're on Linux or Mac asbat files are a thing for Microsoft Windows you may then immediately think oh that's completely obvious if it's web uien user dobat for Windows surely the web uien user. is the one you want to use on Linux and instead I mean that would be consistent right nope that'll do a whole bunch of nothing cuz if we take a look there's The webui Hyphen user. sh file and it's just all commented so running that file will literally do nothing instead if you are on Linux or Mac the one you want to run is the web ui. Shure there it is let's take a look at that and this actually does something uh it does include your web uiuser Dosh file so you can edit that but that's not the one you want to run the one you want to run is the one without user on the end for example this is my web UI hyphen user. sh file it's very similar to thebat version there you can see you've got the automatic 1111 home directory which you can use to set command line Arguments for your checkpoints hyper networks embeddings and luras Etc so basically it'll use the ones you've got already for automatic 1111 so that's what I put into my web ui- user. sh file just got the automatic 1111 home there and my command line arguments another little change I've made in there is for the Python 3 VM this is great if you're already using Anaconda like a normal person because putting a dash in there will actually disable the VMV how do I know that well because it's hidden away in the web ui. sh file there it is if VNV is equal to dash then disable VNV support excellent stuff now while these web UI hyphen user files shouldn't get overwritten when you do updates in the future it is still a good idea to make a backup coffee if you did make any changes much better to be safer than sorry so if You' made any changes in there save it make make a backup same with the webui user. sh file just to summarize then a more complete set of commands to run for a normal installation would be cond create and you want to use Python 3.10 don't forget to activate your new environment run the git clone CD into the new directory and then run either webui Dosha if you're on Linux or Mac or if you're on Microsoft Windows then run the web UI hyphen user dobat file remembering to make any changes to the dash user files if you already have automatic 1111 for example and want to use your existing model directories now anytime you simply cond activate webui hyphen Forge you know exactly which python environment you're working in plus Having learned a little about python environment management you'll also get fewer future issues having avoided the portable download well done you if you want to throw caution to the wind and use an existing python environment such as the one you have for automatic 1111 then do be aware that things may break especially if you have custom extensions installed they will work together in the same environment for now at least but I highly recommend keeping your automatic 1111 and Forge environment separate for the very best compatibility okay so with web UI Forge installed and running hopefully a normal install rather than downloading a huge portable let's take a look at some of those claims is it actually faster can you really swap models now so many things to test okay let's have a look at test number one then swapping a model if you've used automatic 1111 for any amount of time you'll be aware that one of the very first bugs was related to swapping models you'd get your RAM eaten up after a couple of swaps models wouldn't load properly having half a previous model still there all sorts of issues like that I can just show you what I mean now in automatic 1111 so this isn't web UI Forge even though they do look very similar got a fairly standard prompt there just trying to generate a cute rodent using an sdxl model all looks well and good I've got my cute rodent there excellent it's working while I'm here I'm also going to generate that again and then grab the stats at the bottom for comparison against Forge in a moment so there we have time taken 6.6 seconds and some memory usage there for around 10.23 13.93% n if I switch to a new model for example let's go down and pick the one beneath it seg mind Vaga you would expect that if I then changed back to my previous model and generated the image again it would be exactly the same so let's do that I've got Vega loaded okay let's go back to W and mix all I've done there is swap the model to a new one and then back to the original so now when I generate obviously I'll get exactly the same rodent oh no I haven't I've just got a complete mess that's because swapping models in automatic 1111 is a nightmare okay let's do exactly the same thing in web UI Forge as you can see the interface is practically identical to automatic 1111 you do have a few extra tabs at the top there but for the most part it's going to be identical much like the picture of that rodent okay let's do the same thing here so I'm going to swap model over to segmine Vega now one thing you'll not here is you don't get the little loading bar there to show you that the model is loading but it is indeed loading down here so that has switched to Vega we'll also switch it back to wen mix you can show it there in the uh the console upload updating okay so that's updating so now when I regenerate my rodent is it going to be a mess is it going to be exactly the same it it's exactly the same brilliant okay that's pretty cool so as you can see web UI Forge you can swap models oh time then for test number two those memory and speed claims let's just generate our rodent again and I can compare the results from the original ones I got in automatic 1111 okay that's pretty good so now we can see the time taken there is 5.9 seconds and memory usage is much lower down there I'll just put the automatic 1111 results underneath for easy comparison so yes I think those claims are correct it is both faster and more memory efficient okay let's go into test number three then IP adapter and masks so on top of ditching loads of major bugs and improving memory utilization and performance there are also a whole ton of builtin extensions you can pop over to the extensions Tab and see everything you get there by default there's lots of great things in there control net free U hyper tile IP adapter photomaker SVD z123 and absolutely loads of other things now don't forget that you will still need the relevant models for those and if you already have them downloaded then one quick and easy way to reuse them is to make use of space saving symbolic links even if you do inst install the extension for the original automatic 1111 one thing you can't do is use masks with IP adapter with Forge however it's built in you can even doodle your own masks as well this is almost up to comfy UI level now so as an example of what you can do with masks let's enable two IP adapters it's down here in the control net integrated section you don't have to install anything extra for this other than of course downloading some of the models got the first unit here which is IP adapter using clip vit H that's the stable diffusion 1.5 clip Vision model and IP adapter plus sdxl okay let's put an evil kitten a nasty horrible kitten in this first one there we are absolutely revolting and down here in the second one we'll do the same with an evil puppy dog tick the use mask tick box to to get a little mask there as you can see we've got one now one thing I've noticed is this doesn't quite match the size so if you close that first with a little X then it says drop image you can of course upload your mask there turn the mask off then turn the mask back on again and you'll get a canvas which actually matches the size you've got up there so let's make that bigger again for example we'll take that off untick use mask tick use mask and now we've got a canvas that matches the width and height that you set at the top okay so we'll have the kitten on the left and the puppy on the right let's put a bit of a mask area over there we can make that a little bit bigger right okay so we want the kitten on the left it's some professional mask drawing skills here and the same thing down the bottom here with this puppy and we'll have the puppy on the right hand side also a good idea to change the prompt as well so now I have a painting of a nasty kitten and an evil puppy generate away and what do you get yes you get a nasty kitten on the left hand side and a very evil puppy over on the right awesome there's loads of fun you can have using masks so get those ideas flowing and remember it's not just IP adapter you can use masks with but any of those control Nets talking of things which don't work in automatic 1111 welcome to Photo Maker once again this is built in so you get it straight away like with anything in the control net section you will of course need to snag the Photo Maker Model first which like I showed you before is in a forge subdirectory called models control Nets an astonishing place to put control net models I'm sure you'll agree one thing to remember when using photomaker is that it needs a special activation word which in this case is photomaker so there we go one photomaker enabled prompt next you just need to enable photomaker as a control net so we'll turn that second one off get rid of the puppy and we'll uh we'll get rid of the Mask for now and change this to a face there's the control net we've got the face as the image photomaker is selected with the pre-processor of clip Vision Photo Maker you only really get the one Choice there and of course photomaker V1 all right let's run that through and see what happens now absolutely brilliant how easy is that if I take the Photo Maker off the end there you'll be able to see the difference that it makes so there we go back to the original rodent now there's loads more you can do with photomaker 2 as one benefit it has over IP adapter plus face is you can style your generation with ease just like that rodent you can check out even more examples and information about using photomaker in this next video
Info
Channel: Nerdy Rodent
Views: 40,164
Rating: undefined out of 5
Keywords: stable-diffusion-webui-forge, A1111, automatic1111, WebUI, stable diffusion webui, WebUI Forge, webui-forge
Id: TdN068Sb0Zs
Channel Id: undefined
Length: 16min 17sec (977 seconds)
Published: Sat Feb 10 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.