What are Samplers and Schedulers?
Samplers (also called sampling methods) and schedulers control how the AI removes noise during image generation. They determine the path from random noise to final image, affecting both quality and speed.
Samplers Explained
What Samplers Do
At each step of generation, the sampler:
- Predicts noise in the current image
- Decides how much noise to remove
- Determines direction of the next step
- Moves toward the final image
Why Different Samplers Exist
Different samplers offer trade-offs:
- Quality vs speed
- Determinism vs randomness
- Detail vs smoothness
- Convergence characteristics
Common Samplers
Euler
Simple and effective:
- Good baseline sampler
- Fast generation
- Works well with fewer steps
- Smooth, natural results
Best for: General use, quick generations
Euler Ancestral (Euler a)
Euler with randomness:
- Adds stochastic variation
- More creative/varied outputs
- Less deterministic
- Good for exploration
Best for: Creative work, variety
DPM++ 2M
High-quality multipstep:
- Excellent quality
- Converges well
- Good with 20-30 steps
- Stable results
Best for: Quality-focused work
DPM++ 2M Karras
DPM++ with Karras scheduling:
- Often best quality
- Optimized noise schedule
- Popular choice
- Slightly slower
Best for: High-quality final images
DPM++ SDE
Stochastic differential equation version:
- Adds controlled randomness
- More varied outputs
- Good detail
- Less predictable
Best for: Detailed images with variety
DDIM
Denoising Diffusion Implicit Models:
- Deterministic (same seed = same image)
- Fast with fewer steps
- Clean results
- Less varied
Best for: Reproducible results
UniPC
Unified Predictor-Corrector:
- Very fast convergence
- Good with low steps
- High quality
- Modern approach
Best for: Fast, quality results
Schedulers (Noise Schedules)
What Schedulers Do
Schedulers determine:
- How much noise at each step
- The "shape" of denoising
- Step size throughout generation
Common Schedulers
Linear
- Even noise reduction
- Simple, predictable
- Standard approach
Karras
- Research-optimized schedule
- Better quality
- More efficient
- Popular choice
Exponential
- Faster early denoising
- Slower refinement at end
- Good for detail
SGM Uniform
- Score-based generative model schedule
- Balanced approach
- Works well with ancestral samplers
Sampler Comparison
| Sampler | Speed | Quality | Deterministic | Steps |
|---|---|---|---|---|
| Euler | Fast | Good | Yes | 20-30 |
| Euler a | Fast | Good | No | 20-30 |
| DPM++ 2M | Medium | Excellent | Yes | 20-30 |
| DPM++ 2M Karras | Medium | Excellent | Yes | 20-30 |
| DPM++ SDE | Slower | Excellent | No | 25-40 |
| DDIM | Fast | Good | Yes | 20-50 |
| UniPC | Fast | Very Good | Yes | 15-25 |
Choosing the Right Sampler
For Speed
- Euler or UniPC
- Lower step counts
- DDIM for fast deterministic
For Quality
- DPM++ 2M Karras
- 25-35 steps
- Worth the extra time
For Exploration
- Euler Ancestral
- DPM++ SDE
- Varied results each generation
For Consistency
- DDIM
- Euler (non-ancestral)
- DPM++ 2M (non-SDE)
Steps and Samplers
Optimal Step Counts
Steps needed varies by sampler:
- Euler/DDIM: 20-30 steps
- DPM++ variants: 20-35 steps
- UniPC: 15-25 steps
- SDE variants: 25-50 steps
Diminishing Returns
More steps don't always mean better:
- Quality plateaus after optimal point
- Some samplers converge faster
- Test to find your sweet spot
Ancestral vs Non-Ancestral
Ancestral Samplers
Add randomness at each step:
- More creative variety
- Different image each time (even same seed)
- Good for exploration
- Names often end in "a" or include "SDE"
Non-Ancestral Samplers
Deterministic process:
- Same seed = same result
- Reproducible generations
- Consistent quality
- Better for production work
Practical Recommendations
Getting Started
- Start with Euler or DPM++ 2M Karras
- Use 20-25 steps
- Adjust based on results
For Most Use Cases
Sampler: DPM++ 2M Karras
Steps: 25
Scheduler: KarrasFor Quick Previews
Sampler: Euler
Steps: 15-20
Scheduler: NormalFor Maximum Quality
Sampler: DPM++ 2M Karras
Steps: 30-35
Scheduler: KarrasModel-Specific Notes
Stable Diffusion
- Most samplers work well
- DPM++ 2M Karras popular
- Euler a for variety
SDXL
- Similar recommendations
- May need more steps
- DPM++ works well
Flux Models
- Often use Euler
- Rectified flow architecture
- Fewer steps often sufficient
Troubleshooting
Images Look Incomplete
- Increase step count
- Try a different sampler
- Check CFG isn't too low
Images Look Overcooked
- Reduce steps
- Lower CFG
- Try Euler instead of SDE variants
Results Too Similar
- Use ancestral sampler
- Vary seeds more
- Lower CFG slightly
Summary
Samplers and schedulers affect the generation path:
- Euler: Fast, reliable baseline
- DPM++ 2M Karras: Quality-focused standard
- Ancestral variants: For variety and exploration
- DDIM: Fast, deterministic
Start with defaults, then experiment to find what works for your specific use cases and preferences.