1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Convert sigmas to np.array in FlowMatch set_timesteps (#10088)

This commit is contained in:
hlky
2024-12-03 00:18:40 +00:00
committed by GitHub
parent 2312b27f79
commit 30f2e9bd20

View File

@@ -207,6 +207,7 @@ class FlowMatchEulerDiscreteScheduler(SchedulerMixin, ConfigMixin):
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