KSampler Overview
Here we are going to have a brief overview in non techincal terms of the KSampler and what each option does.
This is what the KSampler looks like:
The KSampler is what condenses the maths behind the scenes into a readable format for the VAE decode (or whatever the next step is). There are quite a few options here, and no real explanations, so here goes.
Seed: This is the random number the generator uses to create the images.
Control_after_generate: You can fix the seed so it doesnt move, increment or decrease the number by 1 after every generation, or randomize so it will be completly different every time.
I usually lock the seed if I am testing a model, or after I may have found a particular look that I like and dont want the seed changing and losing the image style. The changes are subtle, but they are there.
Steps: Generation works in iterations. The steps on the sampler are how many iterations it will do to a particular image. The less steps, the more noise will come through in the image (think static). and the more steps will iterate more, giving more detail and more chance of things working out. I start with 20 normally, and use 30-50 steps when upscaling the images. The more steps, the longer the image will take to generate.
CFG: This is a number that tells the generator how important the conditioning prompts are. A cfg of 1 give the generator free reign to do what it wants, leading to some crazy images. The higher the number, the more constrained the to the prompt the generator will be. I usually use between 7 and 12, depending on where the model is taking the images. The higher the cfg however, the more saturated the image colours will become, eventually distorting the image.
Sampler name: This is the type of sampler used. This to me seems very opinionated as to which one to use, I use euler and dpmpp_2m as I do a lot of human photography style images. This is one to play around with your self, lock the seed and see what changes the sampler makes.
Scheduler: This works with the sampler. I use Karras a I feel this creates the best images for me. Again, test your self between the options to see what is best for you.
Denoise: The amount the generator will change from the original noise mesh that is created. I always have it on 1 for generation, and use 0.3 - 0.6 when upscaling. This is a interesting option that can do many different things. A low denoise generally doesnt work for a main prompt I have found as it does not distill the image down enough. A high denoise on a Img2Img will completly change the original image however, so lower is better here.
Comments
Post a Comment