getimg.ai
Pricing

Guide to Stable Diffusion Samplers

Dive into our guide on Stable Diffusion samplers to understand their roles in image generation. Discover how each sampler affects the final image quality.

Note:

This parameter is not available in AI Generator's Essential mode, which generates good results without adjustable parameters.

In this brief guide, you will learn what samplers are and how they work. You will also find a comparison of images generated with each sampler available at getimg.ai.

Note:

If you're looking for an in-depth guide describing each sampler in detail, we recommend this guide.

What is sampling?

Stable Diffusion uses a specific technique called sampling to create an image. Initially, a random image is generated in the latent space. Subsequently, the noise predictor assesses the image's noise, which is then subtracted from the image. This iterative process is repeated multiple times, resulting in a refined, noise-free image.

The denoising procedure, known as sampling, refers to generating a fresh sample image in each step using Stable Diffusion. The approach employed in this sampling technique is called the sampler or sampling method. Although the framework remains constant, numerous approaches exist for implementing this denoising process. Frequently, a compromise must be made between speed and accuracy.

Samplers can be adjusted for all models in AI Generator's SD mode, except for Stable Diffusion XL (SDXL) and Stable Diffusion 3.

Samplers comparison

Now, let's observe the images produced by each sampler. We kept all generation parameters constant except for the sampler. KDPM Karras Ancestral, DPM++ 2M SDE, and PLMS need more steps to generate a high-quality image than other samplers, so we used 64 steps to generate these images. For the rest of the samplers, we used 27 steps.

Euler Ancestral
Euler
LMS
DPM-Solver++
PLMS (64 steps)
DDIM
KDPM Karras
KDPM Karras Ancestral (64 steps)
DEIS
UniPC
Heun
KDPM Ancestral
KDPM
DPM-Solver SDE
DPM++ 2M SDE Karras
DPM++ 2M SDE (64 steps)
DPM-Solver++ Karras
LMS Karras

We hope this concise guide has shed light on the intricacies of Stable Diffusion samplers and their comparative capabilities. Armed with this knowledge, we invite you to delve into the world of AI-generated imagery by experimenting with various samplers available in the SD mode of our AI Generator.

Your creative journey is just beginning, and the possibilities are as limitless as your imagination. Happy creating!

Frequently Asked Questions

What is the role of samplers in image generation?

Samplers are techniques used to iteratively clean up an image from noise, improving its clarity with each step.

Does it matter which sampler I use?

Different samplers vary in how quickly they refine images; some require more steps, some less. Your choice of sampler might also impact image quality.

How do I switch between samplers?

Head to our AI Generator, go to the SD mode, and turn your attention to the left side of the page. The sampler picker is near the bottom of the generation parameters menu. It's available for all models except Stable Diffusion XL and Stable Diffusion 3.