Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
85f9d928
Unverified
Commit
85f9d928
authored
Mar 19, 2024
by
M. Tolga Cangöz
Committed by
GitHub
Mar 19, 2024
Browse files
Fix conditional statement in test_schedulers.py (#7323)
Co-authored-by:
Sayak Paul
<
spsayakpaul@gmail.com
>
parent
916d9812
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/schedulers/test_schedulers.py
tests/schedulers/test_schedulers.py
+1
-1
No files found.
tests/schedulers/test_schedulers.py
View file @
85f9d928
...
@@ -716,7 +716,7 @@ class SchedulerCommonTest(unittest.TestCase):
...
@@ -716,7 +716,7 @@ class SchedulerCommonTest(unittest.TestCase):
# Get valid timestep based on sigma_max, which should always be in timestep schedule.
# Get valid timestep based on sigma_max, which should always be in timestep schedule.
scaled_sigma_max
=
scheduler
.
sigma_to_t
(
scheduler
.
config
.
sigma_max
)
scaled_sigma_max
=
scheduler
.
sigma_to_t
(
scheduler
.
config
.
sigma_max
)
scaled_sample
=
scheduler
.
scale_model_input
(
sample
,
scaled_sigma_max
)
scaled_sample
=
scheduler
.
scale_model_input
(
sample
,
scaled_sigma_max
)
if
scheduler_class
==
EDMEulerScheduler
:
el
if
scheduler_class
==
EDMEulerScheduler
:
scaled_sample
=
scheduler
.
scale_model_input
(
sample
,
scheduler
.
timesteps
[
-
1
])
scaled_sample
=
scheduler
.
scale_model_input
(
sample
,
scheduler
.
timesteps
[
-
1
])
else
:
else
:
scaled_sample
=
scheduler
.
scale_model_input
(
sample
,
0.0
)
scaled_sample
=
scheduler
.
scale_model_input
(
sample
,
0.0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment