Maximize Efficiency: Optimize Your Auto 1111 & Stable Diffusion Setup | Workflow Tips & Tricks

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hey everyone welcome back to Alchemy with zero phase this is Eric in this video I wanted to go through my interface and settings um the video I did last night seems to have brought up some questions regarding like optimizations how do you make your interface load so fast that kind of thing so what I wanted to do is just step by step we're going to go through what I do for my settings to help my interface load faster um help my workflow and in general just some basic optimizations that I think help should help everybody uh first thing I want to go through are the command line options which I kind of went through in the last video but there's a few things that so want somebody ask how do why does your interface load so fast and so there's a few different things regarding this if it's possible try to install uh automatic 1111 so it runs from a solid stay drive you know basic SSD is great if you can get nvme even better um it just overall I mean solid state helps everything I mean I I'm not I'm not kidding okay I'm an IT expert I run an IT business and when I replace computers or sell somebody a computer I never sell anybody a computer that has uh a platter drive or mechanic standard mechanical drive as its primary system drive now it's okay to have that as your data storage drive that's fine but if you're looking for Speed get solid state okay uh in my system uh I run stable diffusion from a uh just a standard SSD uh I've got a 4 tbte Samsung SSD I love Samsungs they are a little bit more expensive but not too bad um I think reliability wise they're good but Western digitals are great okay um the other thing you want to so when it comes to the the actual uh loading so I'm using stability Matrix uh it allows me to organize my my installs it also recently they've uh introduced the ability to manage your uh extensions as well it's just a great interface for kind of centrally managing everything makes things easier okay they've done a lot of improve improvements stability wise um I mean I know it's the name but uh like I said being able to manage your extensions I think they're also so you can share models so you have one directory where all your models are stored and it shares those between the different installs okay so I mean just from a management perspective stability Matrix I think works really well if you don't want to use it that's totally fine okay this doesn't really NE you know what I'm going to tell you in this doesn't necessarily it's not specific to stability Matrix okay so going back to the command line we're going to jump in here so in your web UI user dobat file if you're on Windows or others you're going to have a command line okay in the last video I did we talked about how to optimize it for people with RTX cards okay um but when it comes to like just being able to load quicker okay um the couple of options here that you can put on your command line is a skip torch Cuda test and the skip python version check okay if your your your web UI is running fine it loads you know you're not getting any errors you don't really need these right now not unless you got to do some updates or whatever and even then um you can run those updates manually this just lets you know if you have an older version or if there's a newer version okay um so so take those in mind that'll help cut down on what you're having to load at the beginning uh another thing that'll slow your um your uh interface down a little bit is if you have a uh what is it a bunch of uh lauras or something let's see yeah I think it's like uh the ti the textual inversions and stuff like that um it tends to uh hit those and just kind of index them first um I don't think I'm running any TI I do have some LS but it doesn't do anything with those necessarily so I wouldn't worry too much about that okay so next thing so those are the things you'd want on your command line now you know that's what I use and again um I feel that the load times on that are pretty quick okay because you know again I'm using solid state whatever now again if you can just put the web UI software on a solid state then you can go into your settings this is the next uh part that we're going to go into is changing your paths okay you don't need to keep using the output directory under the web UI folder okay if you can run your web UI from a solid state and then you can put um uh your uh all your image folders on a regular platter Drive okay you know regular mechanical drive if you need to if you don't have the money for a larger one cuz I do know this takes up a lot of space face um you can do that okay so really in this here when it looks like this what it's doing is saying um use the root of the web UI folder we're going to use the outputs folder and then under that we're going to create another folder called text to image- images okay so if you want to put it somewhere else you're going to need to put the full path so for example D Callum back slash outputs slash text image- images okay that way it just stores those in another location and actually for management purposes that might be better anyway so you're not going to drill down into the web UI folder um that's just by default how they have it set up you may have a picture folder where you want to store everything okay for like maybe you have some software to manage your images better whatever okay so let's go into um let's go to the next one saving so couple things you can change the file format from I think the defaults PNG um I but for mine I have it set to jpeg most of the time okay the only time I switch it over to PNG is if I am going to be doing something that involves removing the background and creating um transparencies okay that's you know pngs do are are are uh lossless compression jpegs you will get some artifacting if if your compression is set down um pretty or if you set the quality down low enough and I'll show you that too okay uh for organization purposes I have my file names I know by default it stores uh like part of the prompt that's fine if you want that I don't find it necessary and honestly it's just cluttered looking I like to set mine as the date and date time stamp okay uh allows me to do quick searches uh by date and then I'll show you here in the directories uh I also set the directory to be just the date so the uh month day time uh month day year that I created it so any images I generate today go in one folder but then it's organized by date and time on the images okay now you ask well how do you find images if you're you know uh looking for a specific like term or whatever you used in that image and that comes in L later we'll go into the image browser browser that uh I think comes by default now I'm not sure if not I'll show you the uh the extension you can get okay um I think it's an extension I think the default there's a default image browser that comes with this maybe they integrated this I don't remember we'll get into that okay um let's come down here I don't think we CH I don't think I change much of anything else uh down here other than the quality for the jpeg I usually leave it 90% you can change that I think anything between like 75ish 80 to 90 is great you get you get decent compression on it it's not going to eat up a lot of hard drive space and and you get good quality so it's something you can still work with when you if you want to upscale uh or in paint okay okay so let's go into the saving the directory again um I'm just saving by date okay again I for organizational purposes I find it just messy looking if I've got this plus the prompt and the directory name I uh and it also makes for extremely long directories directory names again just messy okay um so I do that go to the wiki uh there's lots of different ways you can format this maybe there's something that works out better for you okay and you're just putting in these variables as you know their square brackets with the variable name in the middle and then you can put like a dash and then another variable name or whatever okay uh let's see let's jump into optimizations uh let's see automatic oh maybe not let's see hold on uh sampling parameters sorry okay so one of the things I do to really optimize my interface is eliminate the things I don't want to see okay so under sampling parameters uh they got a ton of Samplers and honestly I don't use them all okay uh when you're under your text image and you go to your Samplers under say like hes or no under sampling method right here um I got to reload my interface cuz I removed a bunch of them U but I only use uh one of the other in fact let's just do that right now so I can show you the let's see let's just reload this because I think I did reload my back end on it here so let's just see what that shows just want to make sure I got to reload the back end so let's cancel this I love this because you can stop and launch and uh yes I'm this one is version 1.7 um I did finally move over to it and uh it's actually really nice they got a lot of nice features they built in uh that were not in the 1.6 model uh uh uh version um so as you can see it's it's G pretty quick and then it jumps down here and will show the interface in there it's it's loaded so that was pretty quick okay uh let's reload this so you can see the uh um menu options here I was kind of experimenting with it so let's see yeah so it's just nicer when you don't have these huge menus you got to scroll through for things you never use okay these are the ones I use primarily okay um and so you know I use it on mobile too so having the shorter menus always helps okay so let's jump back over here run back down to sampling prayer so yeah just put a check mark in anyone you don't want to see or ones you don't use okay okay so I'm going to jump down here to stable diffusion and one of the things I do like to do that actually helps in my workflow I don't like having to wait for models or checkpoints to load for long periods of time um so if I'm working with three or four uh particular checkpoints you know switching between like say an in painting model and an sdxl model and a and a 1.5 model and I got enough RAM I got uh in my particular system I I have 128 gigs of RAM but I think you could do this with as little as like 32 gigs of RAM okay you this top option here maximum number of checkpoints loaded at the same time so you can scroll this up I I keep mine at four but also make sure that um this is checked here only keep one model on device okay so what that means is um it'll only keep one model loaded on the video card and then it'll use Ram to quickly swap out it's a lot faster than even loading it from SSD if you have it loaded in Ram so if you're switching between models um in fact we can kind of I kind of show you here let's go I got turbo Vision I usually have sahastra coai loaded as well U because I reloaded the interface it may take a second to kind of load it but I'll show you what it looks like uh moving back and forth okay so we have uh give it a second to load that in so it's having to reload this cuz I reloaded the back end usually it usually doesn't take too long but still I don't like having to wait for this sorry yeah I know this is what we all hate right having to wait for these models to load so again this that's what this setting does here okay so it's finally loaded now we're going to go back to the turbo Vision XEL but the particular one I'm using is the [Music] four where' It Go Turbo there it is okay so it's the uh turbo Vision super fast XL based on new 431 this is actually a really nice one so we're going to click that one and because it was already loaded in memory it shouldn't take too long there it is switch back over so that's a lot faster uh that'll help speed things up for you and uh um hopefully improve your workflow a little bit so I don't really mess with any much of anything else here um they have the setting here just keep that at zero because that's an older um style so um if you're using CPU or GPU obviously that's going to be set here if you can use GPU definitely okay so when it comes to hiding other things here let's see uh I want to say in the user interface yeah here we go okay so in the user interface section um there is a couple a couple different things so you can load up specific tools actually let's just go to keep stay on the subject of hiding things so hide user interface tabs okay so a lot of times we install tons of extensions okay and then you get this this uh the bar up here with all your tabs and it gets a little messy and maybe there's some some extensions that you like to have installed but you're not using that often okay down here under hidden uh UI tabs you can actually select uh tabs you don't want to see okay um and then you can come back in here and unhide them if you're going to be using that tool it just cleans up the interface again making it less cluttered and less IE strain and having to search for the things you do want that's really the whole point is is optimization for your workflow or whatever workflow you're using at that particular time okay um see live preview let's jump down here user interface I don't really mess with anything else here I don't think there's anything under system we need to to touch on um all the defaults are pretty good with that let's see face restoration uncategorized there was one other here let's see uh live live previews okay so this is just something I like I like being able to see what I'm rendering okay you know when you're rendering something and you're waiting it for it to even show something you're wasting a lot of time if it if if you're rendering something in the middle of your render you realize this isn't what I want you want to be able to interrupt it okay a lot of you probably know about this um but I like to show the progress bar show live preview make sure it's a a JPEG and just help speed things up I a web P I'm not sure haven't tried webp um but show previews uh of all images generated in a batch as a grid so I'm not sure if I need that but so I set the live preview display period every two steps okay and then the approximate NN because that it gives me a better uh preview of what's actually going on uh approximate cheap just gives you kind of a really low res version uh T SD I test it for a little bit it seems kind of like prox cheap so I use prox andn uh which gives a really good preview okay of what you're rendering and um subject that's just a prompt combined so yeah you can choose what the live preview is on and then the progress bar will update every x amount of milliseconds right now it's 1,000 milliseconds which is just one second okay so we come over here and just as as kind of an example uh let's let's just grab a prompt and throw something in here um I don't care we're just going to grab some random stuff throw that in the text box we have some prompts um the size let's just set this at 16 by9 we'll scale this up to oh um that's actually touches on another thing uh when it comes to workflow I hate having to re adjust these every time I load up okay I think out of habit I still do I keep forgetting sometimes that I have this config presets uh extension installed and I've got some presets in here you come in here and let's say you uh uh have a particular set of settings so you just click that and it loads those settings okay so we're going to do 16 by9 it already got that set my sampler set batch number config scale sampling steps um and and saves a bunch of other stuff too so but for this particular it doesn't change the model so you have to switch the model but that's okay uh I think that's pretty natural to just leave that they don't want to mess with that so sampling steps just so you can see the preview cuz this get renders pretty quick I'm going to set this up to uh 40 we're on ulay so it's just going to blow through this pretty quick so we're just going to hit generate U being able to see the previews nice because oh you know I don't like that we're going to skip that one move on to the next one okay bam jumps to the next one okay yeah I like that one better it's a little closer whatever okay good night this helps with your workflow when you're when you can actually see what's being rendered okay uh that one's not fully rendered so come over here that one is that's such a great model I love that model so um yeah definitely set that if you can it just it it's nice especially when you're doing large batches where you're trying to get something specific like if I'm rendering an image and I got text up in I don't want to wait until the image is done rendering before I see if the the text is going to look good or not you can see that in the preview and just skip it bam bam bam just skip right through it okay okay so we're going to dive into one of the extensions here that I use um the I get questions on a lot is the one that gives me this okay uh this particular extension is called aspect ratio Helper and um I love it I love being able to switch between common aspect ratios even allows you to put in your own custom aspect ratios and the extension and I can drop a link for this in the Ed uh sorry in the description below um let's see where is it to aspect there it is so SD web UI aspect ratio helper okay uh this is a link to it I'll I'll drop that into the description I think this is one of the nicest uh extensions out there it's just kind of part of my standard tool set um the settings for that if you come down here under your uncategorized it'll give you uh access to some of your extensions that require settings and so aspect ratio help click that scroll back up and you can actually put in custom aspect ratios actually one of the ones I like is the um 8.5 by 11 so uh sometimes I'm working with images that I would want to print out okay and I want it to fit the paper so you do 8.51 okay apply that setting and next time you reload the interface it will show up there so again this is a good good extension oh to show that little drop down you have to have the enable job JavaScript aspect ratio controls selected okay and then the J you can have a drop- down method default options button or the ratios drop down okay great extension definitely get it uh one of the other extensions that um I was talking about was the config presets okay so let's go through some of the extensions that I use and uh that that are more for just interface and workflow um again we talked about the config presets I'll show you that extension here uh and then the aspect ratio helper uh I don't think I do have one called negative prompt white this is nice because it allows you to adjust how much of an effect your negative prompt has uh you may want a negative prompt but maybe what you're doing is really heavy-handed so you can kind of scale it back a little bit and it uh uh will reduce its overall effect but still have a negative prompt there that actually works really well it's nice so let's go into extensions here here um let's see uh the config presets right here we'll drop that link into the description below um commands loot back scaler mulus canvas so aspect ratio helper we'll drop that into I think that's about the only ones that are really for workflow interface help uh negative prompt weight oh there's the negative prompt weight right there so I'll drop all three of those in the description okay I think that's uh about it I mean there's obviously everybody's going to have their own opinion and and uh preferences you know when it comes to um what they want in their interface and how it looks I do like some of the changes I would recommend upgrading to 1.7 on the uh web UI or you know the the automatic 11-11 interface there's certain little things that were just annoying before like the highres and highres fix and refiner dropdowns in 1.6 did not have these check boxes in order to enable them you expanded it okay that enabled it but it again it just makes the interface harder to go through so now you can just click the check okay and you can see the settings okay that's great maybe you want to go in adjust the denoise strength or whatever um but then you can minimize it back up and enable and disable it however you want same with a refiner enable or disable it however you want without having to expand the accordion View that was a nice little change a little touch like that really does help with workflow okay image brow I'm going to go into the image browser just real quick before we end this video so this is a a different I think this is different again the default image browser that comes with stable diffusion at least or with the automatic 1111 the original one doesn't have a lot of these search features tagging and and being able to rank the images um makes it very nice to search okay this is why I don't name my file names anymore um I use this okay it allows me to do xif keyword search items you know you can type in things like uh I don't know I think I got some for battle see what it pulls up if any yeah there we got some images that have battle in it okay maybe you only want to see images where you use the word red okay this allows you to search the entire prompt that was uh included in the um uh you know your prompt that gets included in the file as part of the except data maybe you want to see anything that has a man in it there you go is interesting some of these images show up look female because that all depends on the model um oh and women you know so it did a Subs subcategory search uh so you could probably uh filter some of that out but anyway so you get the idea and it allows you to really if you learn how to use this you can organize things a little bit better um f you can do a search for the file name you know maybe you do want to do a search for the date and then only with you know with only want to search images within that date you know so let's say uh everything that I did yesterday 02 I think 02 uh 0 five oops 2024 let's throw that in there so we get every image that I did yesterday okay didn't do much and then you can do SUB searches within that okay oh no forgot it's not showing all the images um so you'd have it breaks it down in pages of 6x6 because that's what it's set at right now so you can actually scroll through uh the images that you did on that particular day and then yeah yeah you you can do SUB searches within that cool uh very cool uh image browser um that gives you a lot more control over being able to search your images and then you know you select an image then you can actually click a button it'll take you to that folder you can see the folder location all the general information around it and it does have buttons for sending the information text text image image in paint and various other aspects or even to the control net number so you s directly to control net very cool extension okay I think that's it I appreciate you hanging out with me going through this I hope these tips help everybody or those who or at least you get something valuable out of this that may help your workflow uh improve uh loading speeds or just overall functionality okay uh like And subscribe hit that uh subscribe button below hit the like button uh send me your comments love to know any other tips tricks I'm always trying to learn this and uh we'll talk to youall later
Info
Channel: AIchemy with Xerophayze
Views: 497
Rating: undefined out of 5
Keywords: Stable Diffusion Optimization, Automatic 1111, AI Art Efficiency, Workflow Improvement, Creative Process, Speed Optimization, AI Art, Tech Tips, Digital Art Workflow, Artistic Productivity, AI Technology, Software Optimization, Performance Enhancement, Creative Workflow, AI Speedup, Tech Hacks, Art Creation Efficiency, Stable Diffusion Tips, Automatic 1111 Tricks, AI Setup Optimization
Id: rFDWJ8qsHnE
Channel Id: undefined
Length: 27min 7sec (1627 seconds)
Published: Thu Feb 08 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.