Stability-AI / stablediffusion

High-Resolution Image Synthesis with Latent Diffusion Models
MIT License
38.83k stars 5.01k forks source link

fix a bug for DDIM inversion (DDIMSampler.encode()) #226

Open williamyang1991 opened 1 year ago

williamyang1991 commented 1 year ago

fix a bug of the incorrect timestep in DDIMSampler.encode() for DDIM inversion

t is incorrectly set as the index of timesteps rather than the timestep in the original code.