prompt-to-prompt icon indicating copy to clipboard operation
prompt-to-prompt copied to clipboard

PNDMScheduler has no attribute time steps?

Open Ashigarg123 opened this issue 1 year ago • 0 comments

The model scheduler looks like: model scheduler : PNDMScheduler { "_class_name": "PNDMScheduler", "_diffusers_version": "0.8.0", "beta_end": 0.012, "beta_schedule": "scaled_linear", "beta_start": 0.00085, "clip_sample": false, "num_train_timesteps": 1000, "set_alpha_to_one": false, "skip_prk_steps": true, "steps_offset": 1, "trained_betas": null }

But this part of the code fails : for t in tqdm(model.scheduler.timesteps):
latents = diffusion_step(model, controller, latents, context, t, guidance_scale,

Error: TypeError: 'NoneType' object is not iterable

Ashigarg123 avatar Jul 13 '23 17:07 Ashigarg123