Generative AI Intermediate

Sampling Steps

The number of passes it takes to turn blur into a picture

Key points
  • Sampling steps are the number of passes it takes to refine hazy blur into a picture. It never finishes in one move — it's split into several passes, each clearing away a little.
  • Too few steps and the shape comes out not fully formed. Muddy patches and messy edges remain.
  • More steps make it smoother, but past a certain point it barely changes. Only the wait grows longer.
  • The wait time scales up along with the step count — forty steps takes about twice as long as twenty.
  • The layout and big shapes are decided in the early steps. Adding more steps afterward doesn't turn it into a different picture.
Contents

1The analogy

Transfer the same design onto cloth and how it turns out depends on how many stitches you put in. Stitch it sparsely and the outline shows, but the cloth peeks through in the gaps. Stitch it densely and the surface fills in, with a fine, even texture. Sampling steps are that stitch count.

Past a certain point, though, adding more stitches leaves the look unchanged. Only your wrist gets tired and time slips by. Lay a sparsely stitched piece next to a densely stitched one and the difference is only in whether the backing shows through — the pattern itself is the same. And no matter how many stitches go in, if the design itself isn't right, more stitches won't turn it into a different picture. Stitch count only decides how finished the surface looks; the design decides what gets stitched.

2In detail

Each step peels away a little blur

An image generator starts from a screen full of blur and reveals a picture by clearing that blur away. It doesn't do this in one move. At each step, it guesses roughly how much blur is on the current screen, clears just that much, looks at what's left, and guesses again. The step count is the number that decides how many times this guess gets repeated.

There's a reason it doesn't clear everything at once: the guess is always a little off. Clearing only a small amount at a time lets the next step correct however far off the last guess was. It's the same reason a single stitch can't fill a whole surface, so several stitches get worked in instead.

The order and manner of clearing is set by the sampler. Depending on which sampler is used, some settle into a clean result in relatively few steps, while others need quite a few more to find their footing. That's why different tools recommend different step counts.

Too few leaves it sparse, too many costs time

Too few steps and the blur hasn't fully cleared by the final step. Surfaces stay muddy, edges come out smudged, and fine patterns clump together. The parts that need the most care — small text, tight patterns — show it first.

The cost on the other side is time. Since a full round of computing runs at every single step, doubling the step count roughly doubles the wait. When the point is to generate several images and pick a favorite, it helps to run fewer steps for a quick pass, then raise the step count only for the one image worth refining further.

A point comes where more stops changing anything

The stretch where more steps keeps improving the result turns out to be shorter than it seems. Visible change usually starts falling off somewhere around twenty steps, and beyond that only very fine texture keeps shifting a little. A hundred steps does not make the picture twice as good.

The quickest way to find that point for a given tool is to check it directly. Hold the seed and the sentence fixed, vary only the step count, and generate a handful of images side by side — the step where the difference disappears becomes obvious. That's the value worth using as a default.

Where that point falls shifts a bit from picture to picture. A wide sky or a flat background needs less care and settles early; a tight pattern or several overlapping objects needs more steps to find its footing. Sticking with a tool's suggested value and raising the step count only for pictures that come out disappointing saves time.

Layout gets decided in the early steps

The early steps settle the big shapes across the whole picture. What goes where, and which areas are light or dark, gets decided at this point. The later steps are closer to finishing work, laying fine texture on top of a layout that's already set.

So raising the step count is wasted effort when the layout itself isn't right. In that case, the fix is to change the seed or rewrite the sentence. Step count is the dial that sets how finished the details are, not the dial that decides what gets pictured.

3More precisely

The process of clearing blur away is a continuous flow, and the step count is the value that decides how many points along that flow get calculated. A sampler is a method for calculating the next point at each of those points, so fewer steps means a wider gap between points, and the calculation drifts further from the true flow. That drift shows up as muddy surfaces and smudged edges. Samplers that calculate several times within a single step can follow the flow well even with fewer steps, at the cost of making each step heavier.

The analogy breaks down in one place. Embroidery keeps getting denser as more stitches go in, but sampling steps reach a point where the result is essentially fixed. And where a finished stitch stays put, each step reworks the entire screen, so parts that were settled in an earlier step can still shift in a later one. That's why changing the step count can noticeably change the picture even with the same seed.

One more gap worth naming: an embroiderer chooses the stitch count freely, but a sampler's comfortable range is shaped by the method itself. Some samplers settle into a stable result within a short run of steps; others need a longer run before the muddy patches clear. Neither the too-few-steps case nor the too-many-steps case is a flaw in the picture being made — both are properties of how the chosen sampler walks the underlying flow.

4Try it yourself

5Common misconceptions

  • It's easy to think more steps means a larger, more detailed picture, but actually the canvas size and the information it holds stay the same — only the finishing gets smoother.

  • It's easy to think more steps is always better, but actually past a certain point the change stops and only the wait grows.

  • It's easy to think changing the step count only changes the picture a little, but actually the width of each clearing move shifts, so the result can change noticeably even with the same seed.

7One-line summary

In shortSampling steps are the number of passes used to clear blur into a picture, and there's a point, arriving fairly soon, where too few leaves it unfinished and too many only wastes time.

Spotted an error or have a better analogy? Suggest an edit · Last updated2026-09-02