stablediffusion
stablediffusion copied to clipboard
fix a bug for DDIM inversion (DDIMSampler.encode())
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.