Mastering AI Image Generation with Stability Matrix: Installation and Organization Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hey everyone welcome back to Alchemy with zero phase this is Eric and I am excited to talk about something that I found a little while ago and I've seen a couple videos on it so I figur I better do one too just because this is uh an amazing way to organize and run your stable diffusion interfaces I say interfaces because um what this allows you to do uh is you can actually have multiple stable diffusion interfaces set up managed and run while managing a central model checkpoint repository and everything so the program is called stabil stability Matrix and I've been playing with it for about a week now and I love it it it gives you all the options makes it easy to install uninstall update different AI image generation packages and so I want to dive into this we're going to go through the install process and uh hopefully uh uh show you just how nice this is to be able to use makes it installing some of these things incredibly easy so to get started uh you want to go to GitHub and do a search for stability Matrix uh the it's under user lios a okay and um obviously they have this is their get repository they'll have some instructions kind of what it does and and some screenshots and everything you're going to want to come down to where it says windows and you're going to or Linux I guess you know I'm I'm focused on on Windows right now that's what I use and so um you'll want to download that so we're going to just you we'll go through it as we install it and uh uh go that way so we're going to we're going to download this now I've uh I'm downloading it into a directory on my one of my drives here it's a solid state drive you always want to run this stuff from solid state if you can obviously not everybody can I get that it's just it helps with speed moves things along very quickly okay so once you get it downloaded we're going to go ahead and just extract that into um I'm just going to extract it right to that root of this folder here give it a second so once you get that extracted you'll have a folder called stability Matrix win x64 okay and inside that folder you just have a single executable okay all you're going to do is run this and it should come up with the interface so you might get something like this just click more info run anyway okay so and it's going to ask you where you want to install it we're going to set it up in portable mode okay I this I thought this was absolutely amazing um what it does is it designates the directory that it's installed in as the uh or you know this executable is in as the uh data directory or the directory where everything is going to be installed and that way if you need to move it you can because it's going to store everything under this data directory okay and I'll go through that here and I'll show that to you in a little bit so we're going to continue you're going to let it go through and do it thing we're going to uh so it creates a directory and we're going to select so it gives you a bunch of different options here this gets a little uh confusing here at first um it gives you this uh um interface where it shows you it's going to give you a preview for different stab uh stable diffusion packages okay and the option to install those or you can skip the install uh if you want to just go and start exploring it okay um we will go through the process of installing uh automatic 1111 here in just a second I want to go through the interface and show you what this has so we're going to skip the first time setup okay the initial screen that it brings you to this is the console this would be like if you were running uh from a command prompt or whatever it'll show the different lines of what's running here okay um depending on which package you select you have a drop- down menu that you'll have the option to select packages okay and then you'll have um some it'll have custom options for each of those packages already set up okay we'll go through that here in just a minute you'll have an interface for uh what's called inference I'm not super familiar with this uh I'm kind of excited to get into this we may go into it later uh you do have uh over here on the side in your toolbar sorry I should have mentioned that is uh uh this is your launch this is where you would launch select your package and launch it watch the console for any errors um your inference console uh packages this is where you'll see each package you have installed you can uh uh manage them from here again I'll show you some of those options once we get one installed this is where you can manage your luras like Horus and stabil and stable diffusion checkpoints okay um very cool because it gives you different options for each one it's a central repository and it uses Sim links to link in between the packages so you don't have uh multiple checkpoints taking up hard drive space this is another cool thing this is the interface to um civit Ai and this is this is one of the coolest things that I've been able to use it reaches out to civit Ai and based on your your selections here up at the top will pull and give you a listing of the models or luras or whatever it is you're looking for you can uh specify oh I only want to see sdxl 1.0 models so it reaches out grabs that shows you got eight pages of that and um this allows you to go through and see and you can import them and it'll manage and update these once you get these installed it will actually um keep them updated or you can uh manage the update process on so you can uh be on the latest versions okay um output browser uh this gives you certain options um on your images you can uh browse them uh if they're in a central folder okay you have a shared output folder so there will be options that will allow you to to once you've generated images in different packages this this allows you to consolidate those to a single folder so very cool so what we're going to do uh let's go install a package okay um come over here we're going to add a package and I want to add the stable diffusion web UI okay we're going to just select that um this is very cool because it gives you the ability to select which version you want to install like maybe you don't like the 1.6 you want to go back to one of the previous versions it allows you to do that you can have multiple versions installed so uh we're going to just stick with the 1.6 okay uh that's what I use that's what I like it works really well um there are options for this okay uh dealing with the SIM linking whether you want it to sim link or not with the models uh you can select whether it's going to run CPU Cuda or whatever okay uh you can even change the name of it we're not going to change it we're just going to hit install on that you can show the detail so you can actually see what's going on now what's cool about this is uh from my experience zip manages everything modular Mo modularly and what I mean by that is it will go out it grabs python it grabs everything that you need to make sure you can run that package in here so you don't necessarily need to go out and make sure you have uh python version whatever or uh Cuda and all that other it grabs it for you and installs it for this particular installation so we're going to let that install and uh we'll come back here in just a second once it's done because this will take a little while to get it installed okay now that it's done installing it gives you this tile showing you that it's installed gives you the option to launch it gives you just a screenshot of what it may look like you also have uh you know some options here you click the three dots you can check for updates open that folder in Explorer uh inspect the python packages open the page on GitHub so you can actually go look and read about it uh and decide you can actually change how you want the models to be shared I I would recommend just continue using the Sim link no matter which package you install because then again you're not duplicating models okay uh you can actually enable output sharing and what this does is uh it we'll link the output folders to a central share folder for the images as you render the images so that everything is kind of in one place I don't do that um I haven't played with it yet maybe I will I kind of like keeping those separate based on packages so now that we've got this installed there's something I want to show you before we launch this let's come up here and as you can see it gives us a option here in uh the dropdown says stable diffusion web UI if we click the gear now it now gives us options to select what kind of command line arguments we want to enable or disable Okay um I played with this you'll have to study up you know different systems require different things you can actually name it um change the port number if you want to actually enable the listen mode where you can access it over the network your vram options X formers by default is enabled API is enabled I think this needs to be enabled if you're using the stability Matrix interface so that it can interface properly with it okay Auto launch web UI um basically when you when you click launch here it loads it but this option here will tell it to automatically launch the the web interface you know browser okay skip Cuda check uh skip python checks no half uh and then let's see skip SD model download so what this is if this is selected it will not download or do the initial download of uh the SD 1.5 model that by default uh automatic 1111 downloads okay uh Skip install I don't remember exactly what that's for with with automatic 1111 uh and then you can add other command line arguments here or you can just uh add in your entire command line argument uh uh listing here if you wanted to in fact what I'm going to do give me just a second here what I'm going to do is I'm actually going to just copy and paste in my existing command line you can not you can ignore all these if you want and just put in your entire command line structure here if you want and then click save okay so one thing I did do is I told it to ignore um oh let's see let's skip the model download okay and save so now this will be the first time you launch automatic 1111 or whatever package and there may be some installs that it has to do so if you click that you can see here in the console that it's initiating that and it'll start going through the install now this first install will take a little while for automatic 1111 we come back here once it's done okay that loaded a lot quicker than I thought it would uh part of the reason why is because I told it not to load any models so um as you can see uh we got the um the 000000 address instead of saying like Local Host because we I'm using the D- listen command line so you can read up on that if you want anyway so what we want to do now is we're going to go over here and yeah we can you know just put in Local Host up here and it should come up and there we got the basic um what do you call it interface so um and as you can see there's no models loaded so what we're going to do um you can go in here and browse the models and select import latest and it will download the models um if you've already downloaded models um you can actually move those into the directory now let me show you real quick here where that is so in the directory you installed it from you got a data folder so we're going to go into that you have a models folder here so just so you're familiar with how this is set up when you install a package uh like uh automatic 1111 compy UI whatever it installs those here okay but the models are stored here so it keeps a central repository of those models okay and as you can see you come down here and you have stable diffusion and this is where You' put your stable diffusion models now if you've already downloaded models um it is a pain in the butt to have to redownload them again okay you can actually uh import models into this and I'm going to show you how to do that let me get some things ready here okay so hopefully I've got this set up so you can see it so in the stability Matrix interface you're going to click on your this little notebook thing this gets you to your checkpoints where you can see your luras and everything else and over here as you can see I've got um a list of some of the models I've downloaded and and you can see uh that it's under a different folder I have uh model stable diffusion so it's a stable diffusion folder and what we're going to do is we're going to import um see if we got any oh you know what these are not the actual models hold on I think these are the uh preview images because I moved them all somewhere else okay hold on for just a second okay sorry about that just had to go to my uh other folder that I actually use um where most of my models are and I'm actually under my sdxl folder so I'm going to show you two different ways to import these okay um as you can see I got a safe tensor file here this is a checkpoint for copax realistic um I also have a couple there's one in particular that I really like called sahastra kotai this one right here this is a great allaround model does a lot of things so let's say you want to import that into um your uh stability Matrix stable diffusion Management console here so we're going to grab that file okay and this is the original folder what and what this is going to do we're going to drag this over here and we're going to import this into the interface okay as you can see it's importing it import complete and it shows it as a tag here now it's showing up as a local model now depending on how you import these you can sync them or connect them to their civit AI um counterpart if they are listed on civit AI okay the other way you can import these is by moving them into um the the folder okay what I'm going to do so just as a little side note when you are organizing your models a lot of the times it's good to create a folder based on the type of model it is so you might say 1.5 for one another one you might do the 2.1 um or sdxl okay because when you're in stable diffusion and you and you bring up your models it will actually put the folder name at the beginning of whatever it is so you can actually organize your folders better that way okay so we've created a an sdx sdxl folder in our stable m stability matrix statea model stable diffusion we're going to go into that and what we're going to do is we're going to grab host TI I don't know we'll just we'll grab no that's the refiner I don't care about the refiner where are we let's do realistic stock photo V10 and uh we're just going to grab that drag that into there let that move it over we are moving from solid state to solid state nvme to nvme so we are getting almost the full 500 megabytes a second it's pretty fast so don't mean to make anybody jealous once you get it in there then go back to your stability Matrix uh install and let's see if we can refresh this I don't know if I remember how to do this or if we have to reload it let's see oh let's see I think the way this works is now that you got that there let's drag that over here see what it does here if it grabs that that's how you find and connect the data there it is okay so it did refresh so basically right clicking in the blank area going to find connected metadata what it did is it reached out to civit AI found my sahastra Kai model but it also found the two new folders that I put in there and it created these sub uh organizational categories so and as you can see here it's got this model in here so if we go like this now we do in this folder find connected metadata it'll Reach Out find the connected metadata for the realistic stock photo give it just a second here say it found the connected data and there you go so you can actually show like model images so it'll actually pull the the I guess you call it the title image for that model down so you can get a guy good idea of what it is okay this is going to be a fantastic way to organize this like being able to put them in subfolders so you can actually see which model is which uh like this one right here I would probably move into the sdxl folder if I wanted to organize this better but this is just so you can see how things are done once it's in there go back to your stable diffusion just hit refresh and you should see both those models and you can see here the sdxl folder realistic stock photo organizes it great okay okay so I want to touch on uh another aspect here of when you generate images um it will each package you install will organize the images based on how it does that so um let's say for stable diffusion here uh we go into Data so we're under our stability Matrix uh folder we're under the data folder if you go to packages and then stable diffusion web UI everything from this point on is pretty normal okay you have your outputs uh output folder when it creates it we haven't generated anything so let's go ahead and generate something actually yeah we'll give it a second we'll go and use the realistic stock photo um let's just do photograph of a um morbidly no no go let's do of a uh Gremlin sitting in a recliner and we're not going to do a negative prompt we're just going to leave everything normal we are going to shift this up to 1024 um you can change these default values if you edit the Json file but we're just going to do that let it render a picture out what that should do is it should create the outputs folder once it's generated that image okay give it a second to finish that up not a bad image okay and we should get the outputs folder so if we if we kind of refresh this let's uh let's go up one go back into it here okay so we should have the outputs folder and because it's a text image image we got it here and by default it organizes it by date created okay and there's your image now in the stability Matrix you can come down here let's see uh where is it no that's not what we wanted sorry let's jump back over here okay um it gives you access to the different uh folders based on the packages you have installed and you can click consolidate and it'll ask you if you want are you sure you want to do this essentially um consolidating from the inference package that's already installed or the stable diffusion and unites it all into one directory okay I don't like I said I don't do that if you want to do it by all means if you want to consolidate it okay if not just select the package you want it gives you a great browser you can go through and browse your images I mean this is this is so easy so slick the way they've got this set up absolutely amazing um I in my other installation I've gone through and added in the comfy UI which is really cool uh for I have a ton of people in my um Discord Channel who love using comfy UI I still have not made the transition yet um I'm so used to automatic 1111 uh but yeah same thing just install and it gives you uh another tile for loading that package up if you want to use that package now because I've made this mobile um meaning I can come back here let's go to uh my subfolder here this stability Matrix win64 x64 folder I can copy that along with all its contents anywhere else and never have to reinstall anything because it's made everything modular all the required components everything so this made installing these packages and maintaining them a ton easier I cannot tell you how amazing this is to be able to have that modular and as far as I can tell all the extensions that you would normally be able to get with uh stable diffusion I should say with like automatic 1111 they work fine in fact there's something I want to install here let's uh give me one second here okay so I don't have my extension in the extensions repository yet um working towards getting in the repository but you can install it from a URL so I'm just going to install my extension here just to show you that this does work and uh the extensions do come up and work just fine so I've installed my zero gen extension let's come over here you can see it get here okay and then again to uh apply that you would just uh well there's apply and quit but uh I would just say apply settings um and reload the UI and let it reload and and you can watch it here just like you would in any other console to go through and reload that and it's done and as you can see my zerog genen uh chat GPT uh interface is up and running so uh let's see anything else we should touch on here I think that's pretty much it this is uh like I said this is a fantastic interface program and I I honestly think it works faster than just running through a normal console too cuz like you can stop it launch it it tends to to bring thing everything else about a lot quicker um again this inference thing I need to figure that out uh Management console you can come up here check for updates on all these I think we went over that yeah so I would say you know if you guys have any questions um feel free to ask in the comments I would love to hear your feedback see if anybody else is using this also uh join our Discord I'll leave a link in the uh description uh if you want to join and see how other people are using whether it's automatic 1111 uh uh or comfy U comfy UI or any others we'd love to hear from other people who are use other packages so like And subscribe love to uh love the community we built we just hit 800 subscribers absolutely phenomenal and uh love every one of you and hope to hear from you we'll talk to you later
Info
Channel: AIchemy with Xerophayze
Views: 2,638
Rating: undefined out of 5
Keywords: AI, Image Generation, Stability Matrix, Tutorial, Software Installation, Organize AI Models, Stable Diffusion, ComfyUI, Creative Tools, AI Software, How-to, Xerophayze, Alchemy with Xerophayze, Technology, AI Models, AI Tools, Creative Process, AI Development, Artistic Expression, Digital Art, Creative Innovation, AI Innovations, Software Tutorial
Id: rr9N_oU8rM8
Channel Id: undefined
Length: 25min 47sec (1547 seconds)
Published: Thu Nov 23 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.