We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 230a93c commit 98a52dbCopy full SHA for 98a52db
src/diffusers/schedulers/scheduling_euler_discrete.py
@@ -503,7 +503,7 @@ def set_timesteps(
503
if self.config.timestep_type == "continuous" and self.config.prediction_type == "v_prediction":
504
self.timesteps = torch.Tensor([0.25 * sigma.log() for sigma in sigmas[:-1]]).to(device=device)
505
elif self.config.use_flow_match:
506
- self.timesteps = sigmas * self.config.num_train_timesteps
+ self.timesteps = sigmas[:-1] * self.config.num_train_timesteps
507
else:
508
self.timesteps = torch.from_numpy(timesteps.astype(np.float32)).to(device=device)
509
0 commit comments