You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate num_inference_steps > 0 in DDPMScheduler.set_timesteps (#13394)
`DDPMScheduler.set_timesteps(num_inference_steps=0)` (or negative) silently
left the scheduler with an empty schedule and stale state, instead of failing
fast like other schedulers do. This made the bug invisible until a downstream
`step()` call produced wrong results.
Add the same `num_inference_steps must be a positive integer` check that
`scheduling_block_refinement` already has, propagated to `DDPMScheduler` and
its `# Copied from` sibling `DDPMSchedulerParallel` via `make fix-copies`.
0 commit comments