google / prompt-to-prompt

Apache License 2.0
2.98k stars 279 forks source link

PNDMScheduler has no attribute time steps? #61

Open Ashigarg123 opened 1 year ago

Ashigarg123 commented 1 year ago

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