'timestep, next_timestep = min(timestep - self.scheduler.config.num_train_timesteps // self.scheduler.num_inference_steps, 999), timestep'
should be:
'timestep, next_timestep = timestep, min(timestep + self.scheduler.config.num_train_timesteps // self.scheduler.num_inference_steps, 999)'
am I right?
I have tested both and the results are all normal. But I think the latter coding is right.
'timestep, next_timestep = min(timestep - self.scheduler.config.num_train_timesteps // self.scheduler.num_inference_steps, 999), timestep' should be: 'timestep, next_timestep = timestep, min(timestep + self.scheduler.config.num_train_timesteps // self.scheduler.num_inference_steps, 999)' am I right? I have tested both and the results are all normal. But I think the latter coding is right.