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

> Source: <https://discuss.huggingface.co/t/one-more-measured-note-for-diffusers-an-img2img-run-can-be-given-no-timesteps-at-all/192465#post_2>
> Published: 2026-11-29 11:16:07+00:00

**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 the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

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](https://github.com/huggingface/diffusers/releases/tag/v0.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](https://github.com/huggingface/diffusers/issues/11092#issuecomment-6247854056), [tiny SDXL and PNDM reproduction](https://github.com/huggingface/diffusers/issues/11092#issuecomment-6339814147), and [actual-empty proposal](https://github.com/huggingface/diffusers/issues/11092#issuecomment-7118331097). My addition is the policy comparison. On November 29, 2026, [#11092](https://github.com/huggingface/diffusers/issues/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](https://huggingface.co/docs/diffusers/main/en/using-diffusers/sdxl_turbo) and [model card](https://huggingface.co/stabilityai/sdxl-turbo) 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.
