cd /news/generative-ai/one-more-measured-note-for-diffusers… · home › topics › generative-ai › article
[ARTICLE · art-178115] src=discuss.huggingface.co ↗ pub= topic=generative-ai verified=true sentiment=· neutral

One more measured note for diffusers — an img2img run can be given no timesteps at all

A reproduction against Diffusers 0.43.0 found that 34 of 78 comparable scheduler selection cases produce genuinely empty timestep schedules, while 38 return a zero count, with four nonempty PNDM cases (skip_prk_steps=True) accounting for the gap. Testing a CPU tiny SDXL pipeline with randomly initialized weights, the author reported that rejecting only an actually empty slice preserved all eight valid outputs with a maximum absolute difference of 0 and rejected all four empty cases before latent preparation, whereas rejecting any returned count below one also rejected two previously functioning PNDM rows. Hugging Face issue #11092 remained open on November 29, 2026, with the SDXL img2img source on main matching 0.43.0, and no adopted fix is implied.

recommendation

When validating img2img timestep schedules, reject only an actually empty selected-timestep tensor, not a zero returned count, and keep num_inference_steps * strength >= 1 for SDXL-Turbo.

more in playbook: Evals and testing for LLM apps
read3 min views8 publishedNov 29, 2026

I also checked this using actual schedulers:

Thanks for making this easy to check. I reproduce the 266/800 zero-count result on the same arithmetic grid. With actual schedulers, there is an important additional distinction: the returned step count, the length of the selected timestep tensor, and the number of model evaluations need not be equal.

I used installed Diffusers 0.43.0, the actual schedulers and SDXL img2img selector, plus a CPU tiny SDXL pipeline with randomly initialized weights. The pipeline tests compare policies with the same inputs and seeds, not production image quality.

Summary:

Check Observation
Original arithmetic grid 266/800 have a zero adjusted count
78 comparable scheduler selection cases 34 actually empty; 38 with a zero returned count
Difference between those two counts Four nonempty PNDM cases ( skip_prk_steps=True )
Tiny SDXL pipeline, stock implementation Eight valid-batch outputs and four empty-schedule outcomes, counting the two output types separately
Reject only an actually empty slice All eight valid outputs preserved, maximum absolute difference 0; all four empty cases rejected before latent preparation
Reject a returned count below one Also rejects two previously functioning PNDM rows
Guarantee at least one adjusted step for positive strength Produces nonempty outputs for the four empty pipeline rows, but changes two previously functioning PNDM rows

Representative stock pipeline results:

Scheduler Requested steps Strength Returned count Selected timesteps UNet calls Result
Euler 1 0.8 0 [] 0 Decode error / empty latent
Euler 10 0.05 0 [] 0 Decode error / empty latent
PNDM, skip PRK 10 0.05 0 [0] 1 Valid output batch
PNDM, skip PRK 10 0.1 1 [100, 0] 2 Valid output batch

PNDM at 10/0.05 is the key control: a minimum changes [0] to [100, 0] and changes the output; the actual-empty guard preserves it. This supports the earlier SD CPU reproduction, tiny SDXL and PNDM reproduction, and actual-empty proposal. My addition is the policy comparison. On November 29, 2026, #11092 was open and the SDXL img2img source file on main matched 0.43.0. No adopted fix is implied.

For SDXL-Turbo, the usage guide and model card recommend num_inference_steps * strength >= 1 for img2img. The guide uses two requested steps, strength 0.5 and guidance scale 0.0. Keep the checkpoint’s intended scheduler configuration. One-step text-to-image support is not arbitrary-strength one-step img2img support. Strength 1 may defeat a subtle edit; increasing steps changes the grid. The product condition is guidance for ordinary Turbo img2img, not a universal guarantee.

Depending on the goal:

Inspect the import version, pipeline/scheduler class and config, steps/strength, initial and selected timesteps, returned count and begin index. For full execution, check model calls and output batch. Selector checks need no weights.

From the arithmetic census to actual scheduler timelines The arithmetic census locates a useful boundary; actual timestep and valid-batch checks distinguish a genuinely empty schedule from a functioning zero-count case. That distinction helps preserve working inputs.

── more in #generative-ai 4 stories · sorted by recency
── more on @diffusers 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/one-more-measured-no…] indexed:0 read:3min 2026-11-29 · —