Stable Diffusion - Using Wildcards in Fooocus

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 will go over wildcards in Fooocus.  Wildcards act as placeholders or variables in   your prompts, allowing Fooocus to insert a random  element from a predefined list of options into   your prompt. Don't miss out on my other videos  covering all aspects of Fooocus, from installation   to poses and face swaps. Okay, so how do wildcards  work exactly? It's actually pretty simple. You   just do the double underscore, the wildcard name,  double underscore to close it, and then that's   it. Now, Fooocus comes with a couple of different  ones; color is one of the ones that you can use,   but you can create your own. I'll show you how  to create them, where to put them, and actually   even an easy way to create them so you can make  a huge list and not have to type the whole thing   out. Okay, so, well, we have our motorcycles.  As you can notice, we have some randomness,   but this one looks blue, yellow, and I think  these might actually be the same. The easiest   way to find out is that we can go into our log for  our generated images, and as you can see on here,   put in a black motorcycle, same thing here, you  got a yellow motorcycle, and a navy motorcycle.   And that's all that the key, the wildcards do, is  it's going to fill that in from that predefined   list, that list right here. And I'll show you how  to create that and everything, but this one does   automatically come in Fooocus, and you can add to  this list. The key thing to know about these lists   when creating them, there's no commas or anything  like that; each word is on a separate line,   so that will fill in whatever you have on  each line when it loads it up. Now, another   thing to keep in mind is you can actually use  multiples and the same wildcard multiple times. In this one, I put in 'a woman in a color (wildcard) dress  (wildcard) which I created, standing near a color   (wild card) again, and then 'car,' and it will fill  those in as it creates the prompts. We have our   image generations, a variety of colors, a variety  of different dress styles. Let's go into our log,   and you can see how it filled in the color  and the dress type, and then the color again,   and it got different colors. Originally, when they  implemented this in Fooocus, it would only pull   one time, but now they've changed that so it does  pull different ones. Here it is purple and purple,   but that was just the randomness that  factored into that. One last thing,   I will give you an example of this, is the  capability of it. You can nest wildcards,   so you can put wildcards inside of wildcards.  There's actually a 'color_flower' wildcard,   and because there's a color wildcard and a  flower wildcard, what this one does is it   actually pulls in each of those wildcards and  creates a compound one. We have our flowers,   and we have a dime. I'm not sure why we have a  dime, but we're going to find out momentarily   why we have a dime when we look at the log. It's  pulling from the color and then from the flower   list and compounding them. That's how wildcards  work. First, I'm going to show you where the   wildcards are stored in Fooocus and then how  to create them. All they are is text files. That's one way you can do it, and that would be  our own custom list. You can put whatever you want   in there; that's all there is to making a wild  card. I've got several different ones in here.   I created one for dogs, and looking at that, no,  I did not type that all in. I'll show you how to   do that. I did one for dress types, then you have  an extended color list. I think this one might,   yeah, that one you can use that instead of just  the regular color. You could use extended color   or just change that to color, depending on what  you want to do. Then you have the flower list   that we were using before; this has a list of all  the flowers. The nationality list is useful; that   one's already in the Fooocus, that's already in  this folder. Some of these I've created as well.   And that's all there is to the wild cards. You  just create a text file; you have a list of items   in that text file on each separate line. Don't put  a comma or anything like that, no comma-separated   values, or you just text file each one's on  a separate line, and it will pull each one of   those in. Okay, now to show you the easy ways to  create these lists, if you don't want to type out,   obviously, if you only want a few different things  and you specifically want certain things in that   list, then you type it out. But if you want to  generate a list of things like colors or any other   things without actually having to type them all  out, this is a trick that I have. I use any of the   like ChatGPT or any of the other AI programs. I'm  going to use the free version of ChatGPT 3.5 first   just to show you how one way that you could do it  if you don't have the paid one. There's actually,   if you have the paid ones, is a little bit better  way of doing it so you don't have to go through   multiple steps. So all you want to do is ask it  to create a list of common whatever. I'm going   to do common foods. You can get more specific on  what you want, top 100, top 50, although if you   put too many, it might not get the result that you  want, and put each one on a new line with no other   characters, very specific about that, otherwise,  it will put commas, it may put quotation marks or   something like that. So we specifically set on a  new line with no other characters. I'm just going   to hit enter, and it creates this list. All I  need to do at that point is I can just either   copy it all or hit copy code, and then go in,  and in my Wild Card folder, I can create a new   one called food, and then in that, I would go  in and just paste. I'll save it, and now I have   a food wild card. So that's one way that you can  do it. The other method you can do is if you have   the paid version of ChatGPT. I'm not sure what  else is out there and what the other ones offer,   and then you can just ask it. I'm going to ask it  to create a text file named food.txt with a list   of the top 50 most common foods. I tell it to put  each one on a new line with no other characters,   and then I'm going to want to download the  file, and then that should go ahead and create   the list for me and create the file, so I can just  download it. I don't have to type it, I don't have   to format it or anything. I'm going to let this  do everything for me. Okay, so I have my file,   so I'm just going to go ahead and download that  file, and I'll save it as food.txt in here,   and now I should be able to go in and generate  some images using that new Wild Card. Okay,   we have our images, and we have our variety of  food from our, I'm supposing, our list, since I   didn't type any of that stuff in. So, let's load  the log and see what it did. So we have spinach   on a plate, beef on a plate, broccoli on a plate,  and eggs on a plate. That covers everything you   need to know about wild cards in order to start  adding some randomness to your image prompts. If   you found this video helpful, please do consider  clicking the like button because it 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 have more in the future. Have a great day.
Info
Channel: Kleebz Tech
Views: 3,213
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, stable diffusion wildcards, fooocus wildcards, foocus, focus wildcards, wildcards, fooocus tip, run ai local, fooocus consistent character
Id: HnxkE281oUM
Channel Id: undefined
Length: 9min 46sec (586 seconds)
Published: Thu Feb 01 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.