Skip to content

Commit

Permalink
timesteps
Browse files Browse the repository at this point in the history
  • Loading branch information
hlky committed Nov 23, 2024
1 parent 230a93c commit 98a52db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/schedulers/scheduling_euler_discrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def set_timesteps(
if self.config.timestep_type == "continuous" and self.config.prediction_type == "v_prediction":
self.timesteps = torch.Tensor([0.25 * sigma.log() for sigma in sigmas[:-1]]).to(device=device)
elif self.config.use_flow_match:
self.timesteps = sigmas * self.config.num_train_timesteps
self.timesteps = sigmas[:-1] * self.config.num_train_timesteps
else:
self.timesteps = torch.from_numpy(timesteps.astype(np.float32)).to(device=device)

Expand Down

0 comments on commit 98a52db

Please sign in to comment.