Fix bug in FluxSampler.timesteps method (#1131)

This commit is contained in:
hehua2008 2024-12-03 05:15:19 +08:00 committed by GitHub
parent 8801beb66f
commit 2a9294a5f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ class FluxSampler:
): ):
t = mx.linspace(start, stop, num_steps + 1) t = mx.linspace(start, stop, num_steps + 1)
if self._schnell: if not self._schnell:
t = self._time_shift(image_sequence_length, t) t = self._time_shift(image_sequence_length, t)
return t.tolist() return t.tolist()