kijai
2024-10-12 10:45:01 +03:00
parent 63982da076
commit 2b80e37555
@@ -142,7 +142,8 @@ class PyramidFlowMatchEulerDiscreteScheduler(SchedulerMixin, ConfigMixin):
timesteps = np.linspace( timesteps = np.linspace(
timestep_max, timestep_min, training_steps + 1, timestep_max, timestep_min, training_steps + 1,
) )
self.timesteps_per_stage[i_s] = torch.from_numpy(timesteps[:-1]) self.timesteps_per_stage[i_s] = timesteps[:-1] if isinstance(timesteps, torch.Tensor) else torch.from_numpy(timesteps[:-1])
stage_sigmas = np.linspace( stage_sigmas = np.linspace(
1, 0, training_steps + 1, 1, 0, training_steps + 1,
) )