-
Notifications
You must be signed in to change notification settings - Fork 18
Image Seed Control
FooocusPlus and other generative AI interfaces typically generate images using a reverse diffusion process. This process starts with an image composed of random noise that is intelligently refined into a coherent image. The initial noisy image is generated using a random noise generator and that noise generator must be seeded with a numerical value.
Using the same prompt (including styles) and the same image processing parameters, a particular seed value will ultimately produce an identical image. Basic image diversity - the ability to produce a variety of images - is introduced by starting with a different seed value, even while the prompt and all the other processing parameters remain the same.
To maximize diversity, it is important that the seed value is chosen in a truly random way. While personal computers typically use a pseudo-random number generator that does not achieve the highest possible degree of randomness, the randomness they supply is good enough for the generative process.
By default, FooocusPlus starts with Random Seed selected, as shown above. In this mode a new random seed is chosen at the beginning of a generative batch. For each image created within the batch the seed is incremented by one. Adding one to the initial seed value should create a new and completely random image.
In this example, an Image Grid was created using four random images. The Image Log shows that the first image used a seed of 7509075761779731798. After each image generation the seed was incremented so that the last image had a seed of 7509075761779731801.
What if we wanted to change the prompt and see how this batch turned out?
When the Random Seed checkbox is deselected, the Specific Seed box appears. The seed number shown is the first number used in the last batch of images. In this case the number is 7509075761779731798 as revealed above. This number could be changed by typing a new 19 digit number into the box but in this case we will leave it as is.
The first batch used this prompt:
a __canadian__ man and a __canadian__ woman smile in a New Year's greeting on the street of a __canadian_city__
But using the same sequence of seeds, this example shows the results of changing the canadian_city wildcard to the nationality wildcard plus the word "city":
a __canadian__ man and a __canadian__ woman smile in a New Year's greeting on the street of a __nationality__ city
Our four sets of subjects have been transported elsewhere to celebrate New Year!
Using a Specific Seed is the key to maintaining Character Consistency, the ability to use the same subject or subjects in different situations, with different clothing, or doing different things.
🚧👷 *** UNDER CONSTRUCTION ***