Stable Diffusion - Customizing Fooocus - Custom Paths and More

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
"Welcome to Kleebz Tech and another video in  our Fooocus for Stable Diffusion series. In this   video, I'll go over how to customize your Fooocus  experience. If you want to change the default   settings when Fooocus loads, or want to change  the output folder, as well as many other options,   this video will show you how. Don't miss my  other videos covering all aspects of Fooocus,   from installation to poses and face swap.  As far as the config file goes with Fooocus,   we would find it in the primary Fooocus folder.  Let's start in there, and you're going to notice   I actually have another folder in here. This is  actually where I back up my files, like my config   file and anything like that. How you do it is up  to you, but I do recommend backing it up after   you've made some changes, and before you make more  changes. That way, you can always at least put   that file back in there with your latest, correct  version. If anything goes wrong, or you need to do   anything, you can always delete the config file,  and Fooocus will create a new one, a default one,   when you run it. So, inside your Fooocus folder,  you're going to go down, you're going to find the   config.txt file, and there's also a config  modification tutorial txt file. These are   the two files that we're going to be mostly  referencing here. The config file is the one   that you're actually going to be editing; that's  the one that Fooocus uses when it starts up. The   modification tutorial, we don't change that, just  has a lot of the changes and shows you examples of   how you can do certain things. To start off with,  let's go ahead and open the config.txt file. Now,   I've already edited mine, so what I'm going to do  actually is to get it the default one, I'm going   to go ahead and just show you, if we delete this,  it's fine. So in here, what's going to happen is,   when I go ahead and run, you're going to watch in  here, and it'll actually create a new file when   we run that. Boom, so now we have the default one  that was just created again. At any point, if you   need to go back to that default file, you can just  delete the original, or delete the config file,   launch it, and it will create a new default one,  but it won't have any changes that you've made.   So, that's why I suggest, once you start making  changes, make backups of the files, so you can   always go back to one that you know that worked  if you run into any sort of issues. So now that   we have the default one, I'm going to go ahead  and open that up to show you what it looks like.   So this would be the one that you'd start off  with. Now, there's a couple of things to keep in   mind when you make changes to this. If you put, if  there's any syntax errors in here, it won't load. Well, let me show you exactly how this will work.  One of the big errors a lot of people make is they   leave a comma at the end before this final  bracket; they'll put the comma down there.   You want to make sure when you're copying and  pasting from other portions or anything like that,   you remove that final comma. You do want all the  commas between all these other ones, but you don't   want it on the final one. Another big mistake  is these; you'll notice are double backslashes   instead of just one. That you want to make sure  of because, by default, that's what it's going   to look like if you were to paste it from anywhere  else. So, you need to have those two backslashes,   not one. If there's any single ones in there,  you're going to get an error as well. So,   I'm going to go ahead and save this, just to give  you an example of what'll happen. We'll see here,   we get an error, and it explains possible options  of what your most likely problem is. So, this   is actually going to load, let me hit enter to  show you, this is actually going to go ahead and   load with the standard default configuration; it  won't load that file because it detects the syntax   error. So, if you make changes and when you load  it, those changes aren't in effect, most likely,   you'll find this error at the top, and you'll  want to fix whatever the syntax error is. Okay,   so let's close this down. I'm going to go into my  Fooocus folder again, I'm going to open the text   file, I'm going to now fix the error that I've  created, and I'll save that, and now that will be   fine. Now, there's a few different ones. I'm not  going to show you every single possible thing that   you can do here; I'm going to show you the most  common ones that most people are going to use. So,   one of the big ones is the output folder. A lot  of people like to have a specific output folder,   a different one than what they normally  use. As we see here, the path outputs,   that's where Fooocus is going to save your files  when it generates them. It's going to create a new   folder for each day in this folder that you have  here. Normally, that's inside the Fooocus folder,   but if you want to have it outside the Fooocus  folder, you can change that. So, for example,   on mine, it's the F drive from my computer,  which is actually where I have Fooocus as well,   but I want it to do it right in the top folder.  So, I've created a folder, as you can see here,   it generates in these. Now, the easiest way  to do this, once you've created the folder,   then you need to have these folders created;  you can't just type them in, and Fooocus won't   generate them. So, you already have to have  the folder created before you run Fooocus,   or you're going to get an error as well. So, once I've done this, I'm just going to   copy the file location; that's the easiest way.  Then, I'm going to open my config file. Now, we   were doing the outputs, so in here, I'm going to  go into the path, and I'm just going to go ahead   and paste what I just copied. Now, if I go ahead  and save that, it's not going to work, the reason   being I didn't add the extra backslash.  So, I need to put two of those in there,   anywhere that there's a backslash, I need to  make sure there's two of them in that file path.   If I had subfolders, I'd need to put it in each  one of those as well, like you can see up here.   And that's all there is to it. I'll go ahead and  save that. Now, when I generate, in that folder   is where Fooocus will save those files. The same  thing can be done with pretty much all the other   folders. Now, a lot of people probably aren't  going to want to change a lot of these folders,   but if you want to be able to run multiple  versions of Fooocus, or if you have other Stable   Diffusion user interfaces you want to run, and  you want to use the same checkpoints and LURAs,   those take up a lot of room. When you have four  or five different ones going, that's a lot of   extra space. So, it's nice to be able to have all  your checkpoints in one location, and each thing   can pull from those checkpoints. So, for like  myself, I have an AI folder, and in here, I have   my models, and then I have checkpoints and loras.  So, in order to use this, I go up, I'm going to   copy the path, I'll go into my config file, and  then I can go up, highlight my checkpoint folder   because it's the path for my checkpoints as stated  here, 'path checkpoints.' I'm going to paste,   but obviously, we can't keep it like that because  that'll generate an error. I need to go in on   each one of these and add an extra backslash, and  always make sure you didn't have any comma at the   end here. I can go ahead and save that, and now  it'll load those checkpoints from that folder. So,   I have also for loras, so I'm going to go in here,  I'm going to copy, I'll open up my text file. Here, I'm going to paste it. Now, I have my  loras folder. I need to add the backslashes;   otherwise, you'll get those syntax errors, and  we're going to hit save. Now, it'll load the   loras and the checkpoints from those locations,  and it should also download any it needs in those   locations. We'll demonstrate that. I haven't  put any in this lora folder. I didn't move my   other ones over just so I can demonstrate what  will happen when I go ahead and launch that. So,   let's go ahead and launch Fooocus because, as we  know, Fooocus, when it first runs these things,   it'll download any of the checkpoints or anything  that it needs. As we'll see, it's downloading it,   and it downloaded it into that folder. That's how  you change the file path with the config file. Okay, so that covers the file paths. Now,  there's a lot of other things we can add   to this. I'll go over a few of them just to give  you an idea. In the config tutorial, like I said,   that's where a lot of the examples are. For one,  would be the aspect ratios; maybe you don't want   all those aspect ratios. You only use a few of  them, so you want to get rid of most of them.   Well, we could go through, get rid of any of the  ones that we don't want, and I'm just going to   do that just to show you. When I launch it,  that way, over here, in the advanced tab,   this will eliminate and only show these aspect  ratios over here next time we launch it. Now, some of the other useful ones that I  prefer is the default aspect ratio is another   very useful one because a lot of times  I always use the same aspect ratios. So,   we can put that one in there, and then  it would default. Now, if I wanted,   let's say it to be 1024 by 1024, I could  change that to that. Now, when I launch it,   the default aspect ratio over on the side here  will always be the 1024 instead of the other one. A few other things that you can change that are  I find very useful. Let's say you have a negative   prompt that you always wanted; you could put that  in there and type out what the negative prompt   would be. If you wanted a default prompt, you  could choose that as well. These are the ones I   actually use, and I change these because I almost  always use quality. I always want that advanced   checked off. I prefer up to 64 images, and I  like to have the default image number is four. Now, there's a lot of these other ones in here you   can change the default scales. You can  change pretty much almost anything you   can think of can be changed in here.  I'm just going to show those for now. Now, one thing I got to make sure of  is since I copied and pasted into here,   it added that comma at the end, so I want to  get rid of that because we don't want that   before that last bracket. Everything  else is ready, so I'm going to hit   save. I'm going to go ahead and relaunch  Fooocus to show the different changes. And as you can see here, the advanced is  already checked off as we had told it. The   image number is set to four. These are the only  aspect ratios that are offered. It's already set   on quality. Now, I didn't put anything in the  negative prompt, but if I had, it would have   put that already in there. The same with the  styles, anything like that, would have changed.   That makes it very useful if you're always using  the same settings. You can have it always launch   with those same settings. You don't have to go  through each time and change everything around.   That should get you started with customizing  your Fooocus experience. Don't forget to back   up the config file before you make any changes  and double-check for any syntax errors that may   cause Fooocus to not load the config file. If you  run into problems, the comma at the end and these   double backslashes are the two biggest ones  that people will run into. If you found this   video helpful, please do consider clicking the  like button because it definitely does help, and   questions or suggestions for video ideas, please  leave a comment. Thanks for watching, and don't   forget that I do have other videos on Fooocus, and  we'll have more in the future. Have a great day.
Info
Channel: Kleebz Tech
Views: 2,986
Rating: undefined out of 5
Keywords: stable diffusion tutorial, stable diffusion, controlnet tutorial, stable diffusion secrets, controlnet stable diffusion, digital art, automatic 1111, stable diffusion tips and tricks, fooocus tutorial, inpainting, inpainting stable diffusion, stable diffusion install, foocus, fooocus tip, run ai local, fooocus consistent character, fooocus config, fooocus customiza, fooocus customize, fooocus customization, fooocus output folder
Id: jGPxvROLwUU
Channel Id: undefined
Length: 12min 37sec (757 seconds)
Published: Mon Feb 05 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.