iscreteScheduler,
    diffusers.schedulers.scheduling_ddim.DDIMScheduler,
] The Stable Diffusion model uses the PNDMScheduler by default which usually requires ~50 inference steps, but more performant schedulers like DPMSolverMultistepScheduler, require only ~20 or 25 inference steps. Use the from_config() method to load a new scheduler:   Copied from diffusers import DPMSolverMultistepScheduler

pipeline.scheduler = DPMSolverMultistepScheduler