Sign In

Natural Hair Colors Array (Fooocus V2.2+ specific)

29
375
14
Updated: Mar 20, 2024
assets
Type
Other
Stats
375
Reviews
Published
Mar 4, 2024
Base Model
Other
Hash
AutoV2
340A8BB2E0

***Update*** As of version 2.3.0 of Fooocus, you can now read wildcards in order (advanced tab):

This means that you can use the wildcard (lists) as arrays.


At the start of March 2024, a new version of Fooocus (2.2.0) was released that utilizes arrays in prompts. The arrays look like this: [[item1,item2,...,itemn]]

Unlike a standard wildcard which selects an element randomly, this capability will enable you to step through each specific element of the array in the order they are presented to adjust the prompt.

For example: "A dog with [[short,medium,long]] fur"
This would produce three images;

  1. one of a dog with short fur

  2. one of a dog with medium fur, and

  3. one of a dog with long fur.

Note that you need to specify as many images in the batch are as there are elements of the array, so in the above example you would want a batch of three. If your batch size is smaller it will stop at that array element. For example a batch of two would stop at 'medium'.


The purpose of this specific resource is to allow you to loop through the Natural Hair Color wildcards in a known, specific sequence. It is currently arranged alphabetically, but as it is just a text file, you can adjust to suit your needs. It needs to be placed in the wildcards directory.

Use the standard stable diffusion wildcard syntax of __wildcardName__

In the examples attached to this post, I use the following prompt:
"An award winning portraiture photo of an astonishingly beautiful 18 year old woman with __naturalHairColorArray__ hair"

The array consisted of the first four elements of the full array: [[Ash blonde,Auburn,Black,Brunette]]

Feel free to ask any questions in the comments below.

If anyone is aware of other image generation systems that utilize arrays in prompts please let me know in the comments below.