Skip to content

Commit 98a52db

Browse files
committed
timesteps
1 parent 230a93c commit 98a52db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/schedulers/scheduling_euler_discrete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def set_timesteps(
503503
if self.config.timestep_type == "continuous" and self.config.prediction_type == "v_prediction":
504504
self.timesteps = torch.Tensor([0.25 * sigma.log() for sigma in sigmas[:-1]]).to(device=device)
505505
elif self.config.use_flow_match:
506-
self.timesteps = sigmas * self.config.num_train_timesteps
506+
self.timesteps = sigmas[:-1] * self.config.num_train_timesteps
507507
else:
508508
self.timesteps = torch.from_numpy(timesteps.astype(np.float32)).to(device=device)
509509

0 commit comments

Comments
 (0)