Skip to content

Commit

Permalink
Convert sigmas to np.array in FlowMatch set_timesteps (#10088)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlky authored Dec 3, 2024
1 parent 2312b27 commit 30f2e9b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def set_timesteps(

sigmas = timesteps / self.config.num_train_timesteps
else:
sigmas = np.array(sigmas).astype(np.float32)
num_inference_steps = len(sigmas)
self.num_inference_steps = num_inference_steps

Expand Down

0 comments on commit 30f2e9b

Please sign in to comment.