Skip to content

Commit 85f9d92

Browse files
Fix conditional statement in test_schedulers.py (#7323)
Co-authored-by: Sayak Paul <[email protected]>
1 parent 916d981 commit 85f9d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/schedulers/test_schedulers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ def test_add_noise_device(self):
716716
# Get valid timestep based on sigma_max, which should always be in timestep schedule.
717717
scaled_sigma_max = scheduler.sigma_to_t(scheduler.config.sigma_max)
718718
scaled_sample = scheduler.scale_model_input(sample, scaled_sigma_max)
719-
if scheduler_class == EDMEulerScheduler:
719+
elif scheduler_class == EDMEulerScheduler:
720720
scaled_sample = scheduler.scale_model_input(sample, scheduler.timesteps[-1])
721721
else:
722722
scaled_sample = scheduler.scale_model_input(sample, 0.0)

0 commit comments

Comments
 (0)