Skip to content

Commit 2cb7a33

Browse files
committed
cast timesteps to int in flax scheduler too
1 parent 54a4aea commit 2cb7a33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/schedulers/scheduling_lms_discrete_flax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def set_timesteps(self, state: LMSDiscreteSchedulerState, num_inference_steps: i
134134

135135
return state.replace(
136136
num_inference_steps=num_inference_steps,
137-
timesteps=timesteps,
137+
timesteps=timesteps.astype(int),
138138
derivatives=jnp.array([]),
139139
sigmas=sigmas,
140140
)

0 commit comments

Comments
 (0)