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
f00a9957
Unverified
Commit
f00a9957
authored
Apr 25, 2025
by
co63oc
Committed by
GitHub
Apr 24, 2025
Browse files
Fix typos in strings and comments (#11407)
parent
e8312e7c
Changes
43
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py
+6
-6
src/diffusers/schedulers/scheduling_sasolver.py
src/diffusers/schedulers/scheduling_sasolver.py
+10
-10
src/diffusers/schedulers/scheduling_unipc_multistep.py
src/diffusers/schedulers/scheduling_unipc_multistep.py
+6
-6
No files found.
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py
View file @
f00a9957
...
@@ -584,7 +584,7 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
...
@@ -584,7 +584,7 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
if
len
(
args
)
>
1
:
if
len
(
args
)
>
1
:
sample
=
args
[
1
]
sample
=
args
[
1
]
else
:
else
:
raise
ValueError
(
"missing `sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing `sample` as a required keyw
o
rd argument"
)
if
timestep
is
not
None
:
if
timestep
is
not
None
:
deprecate
(
deprecate
(
"timesteps"
,
"timesteps"
,
...
@@ -681,7 +681,7 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
...
@@ -681,7 +681,7 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
if
len
(
args
)
>
2
:
if
len
(
args
)
>
2
:
sample
=
args
[
2
]
sample
=
args
[
2
]
else
:
else
:
raise
ValueError
(
"
missing `sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing `sample` as a required keyw
o
rd argument"
)
if
timestep
is
not
None
:
if
timestep
is
not
None
:
deprecate
(
deprecate
(
"timesteps"
,
"timesteps"
,
...
@@ -746,7 +746,7 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
...
@@ -746,7 +746,7 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
if
len
(
args
)
>
2
:
if
len
(
args
)
>
2
:
sample
=
args
[
2
]
sample
=
args
[
2
]
else
:
else
:
raise
ValueError
(
"
missing `sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing `sample` as a required keyw
o
rd argument"
)
if
timestep_list
is
not
None
:
if
timestep_list
is
not
None
:
deprecate
(
deprecate
(
"timestep_list"
,
"timestep_list"
,
...
@@ -858,7 +858,7 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
...
@@ -858,7 +858,7 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
if
len
(
args
)
>
2
:
if
len
(
args
)
>
2
:
sample
=
args
[
2
]
sample
=
args
[
2
]
else
:
else
:
raise
ValueError
(
"
missing`sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing
`sample` as a required keyw
o
rd argument"
)
if
timestep_list
is
not
None
:
if
timestep_list
is
not
None
:
deprecate
(
deprecate
(
"timestep_list"
,
"timestep_list"
,
...
@@ -981,12 +981,12 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
...
@@ -981,12 +981,12 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
if
len
(
args
)
>
2
:
if
len
(
args
)
>
2
:
sample
=
args
[
2
]
sample
=
args
[
2
]
else
:
else
:
raise
ValueError
(
"
missing`sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing
`sample` as a required keyw
o
rd argument"
)
if
order
is
None
:
if
order
is
None
:
if
len
(
args
)
>
3
:
if
len
(
args
)
>
3
:
order
=
args
[
3
]
order
=
args
[
3
]
else
:
else
:
raise
ValueError
(
"
missing `order` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing `order` as a required keyw
o
rd argument"
)
if
timestep_list
is
not
None
:
if
timestep_list
is
not
None
:
deprecate
(
deprecate
(
"timestep_list"
,
"timestep_list"
,
...
...
src/diffusers/schedulers/scheduling_sasolver.py
View file @
f00a9957
...
@@ -522,7 +522,7 @@ class SASolverScheduler(SchedulerMixin, ConfigMixin):
...
@@ -522,7 +522,7 @@ class SASolverScheduler(SchedulerMixin, ConfigMixin):
if
len
(
args
)
>
1
:
if
len
(
args
)
>
1
:
sample
=
args
[
1
]
sample
=
args
[
1
]
else
:
else
:
raise
ValueError
(
"missing `sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing `sample` as a required keyw
o
rd argument"
)
if
timestep
is
not
None
:
if
timestep
is
not
None
:
deprecate
(
deprecate
(
"timesteps"
,
"timesteps"
,
...
@@ -812,22 +812,22 @@ class SASolverScheduler(SchedulerMixin, ConfigMixin):
...
@@ -812,22 +812,22 @@ class SASolverScheduler(SchedulerMixin, ConfigMixin):
if
len
(
args
)
>
1
:
if
len
(
args
)
>
1
:
sample
=
args
[
1
]
sample
=
args
[
1
]
else
:
else
:
raise
ValueError
(
"
missing `sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing `sample` as a required keyw
o
rd argument"
)
if
noise
is
None
:
if
noise
is
None
:
if
len
(
args
)
>
2
:
if
len
(
args
)
>
2
:
noise
=
args
[
2
]
noise
=
args
[
2
]
else
:
else
:
raise
ValueError
(
"
missing `noise` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing `noise` as a required keyw
o
rd argument"
)
if
order
is
None
:
if
order
is
None
:
if
len
(
args
)
>
3
:
if
len
(
args
)
>
3
:
order
=
args
[
3
]
order
=
args
[
3
]
else
:
else
:
raise
ValueError
(
"
missing `order` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing `order` as a required keyw
o
rd argument"
)
if
tau
is
None
:
if
tau
is
None
:
if
len
(
args
)
>
4
:
if
len
(
args
)
>
4
:
tau
=
args
[
4
]
tau
=
args
[
4
]
else
:
else
:
raise
ValueError
(
"
missing `tau` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing `tau` as a required keyw
o
rd argument"
)
if
prev_timestep
is
not
None
:
if
prev_timestep
is
not
None
:
deprecate
(
deprecate
(
"prev_timestep"
,
"prev_timestep"
,
...
@@ -943,27 +943,27 @@ class SASolverScheduler(SchedulerMixin, ConfigMixin):
...
@@ -943,27 +943,27 @@ class SASolverScheduler(SchedulerMixin, ConfigMixin):
if
len
(
args
)
>
1
:
if
len
(
args
)
>
1
:
last_sample
=
args
[
1
]
last_sample
=
args
[
1
]
else
:
else
:
raise
ValueError
(
"
missing`last_sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing
`last_sample` as a required keyw
o
rd argument"
)
if
last_noise
is
None
:
if
last_noise
is
None
:
if
len
(
args
)
>
2
:
if
len
(
args
)
>
2
:
last_noise
=
args
[
2
]
last_noise
=
args
[
2
]
else
:
else
:
raise
ValueError
(
"
missing`last_noise` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing
`last_noise` as a required keyw
o
rd argument"
)
if
this_sample
is
None
:
if
this_sample
is
None
:
if
len
(
args
)
>
3
:
if
len
(
args
)
>
3
:
this_sample
=
args
[
3
]
this_sample
=
args
[
3
]
else
:
else
:
raise
ValueError
(
"
missing`this_sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing
`this_sample` as a required keyw
o
rd argument"
)
if
order
is
None
:
if
order
is
None
:
if
len
(
args
)
>
4
:
if
len
(
args
)
>
4
:
order
=
args
[
4
]
order
=
args
[
4
]
else
:
else
:
raise
ValueError
(
"
missing`order` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing
`order` as a required keyw
o
rd argument"
)
if
tau
is
None
:
if
tau
is
None
:
if
len
(
args
)
>
5
:
if
len
(
args
)
>
5
:
tau
=
args
[
5
]
tau
=
args
[
5
]
else
:
else
:
raise
ValueError
(
"
missing`tau` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing
`tau` as a required keyw
o
rd argument"
)
if
this_timestep
is
not
None
:
if
this_timestep
is
not
None
:
deprecate
(
deprecate
(
"this_timestep"
,
"this_timestep"
,
...
...
src/diffusers/schedulers/scheduling_unipc_multistep.py
View file @
f00a9957
...
@@ -596,7 +596,7 @@ class UniPCMultistepScheduler(SchedulerMixin, ConfigMixin):
...
@@ -596,7 +596,7 @@ class UniPCMultistepScheduler(SchedulerMixin, ConfigMixin):
if
len
(
args
)
>
1
:
if
len
(
args
)
>
1
:
sample
=
args
[
1
]
sample
=
args
[
1
]
else
:
else
:
raise
ValueError
(
"missing `sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing `sample` as a required keyw
o
rd argument"
)
if
timestep
is
not
None
:
if
timestep
is
not
None
:
deprecate
(
deprecate
(
"timesteps"
,
"timesteps"
,
...
@@ -672,12 +672,12 @@ class UniPCMultistepScheduler(SchedulerMixin, ConfigMixin):
...
@@ -672,12 +672,12 @@ class UniPCMultistepScheduler(SchedulerMixin, ConfigMixin):
if
len
(
args
)
>
1
:
if
len
(
args
)
>
1
:
sample
=
args
[
1
]
sample
=
args
[
1
]
else
:
else
:
raise
ValueError
(
"
missing `sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing `sample` as a required keyw
o
rd argument"
)
if
order
is
None
:
if
order
is
None
:
if
len
(
args
)
>
2
:
if
len
(
args
)
>
2
:
order
=
args
[
2
]
order
=
args
[
2
]
else
:
else
:
raise
ValueError
(
"
missing `order` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing `order` as a required keyw
o
rd argument"
)
if
prev_timestep
is
not
None
:
if
prev_timestep
is
not
None
:
deprecate
(
deprecate
(
"prev_timestep"
,
"prev_timestep"
,
...
@@ -804,17 +804,17 @@ class UniPCMultistepScheduler(SchedulerMixin, ConfigMixin):
...
@@ -804,17 +804,17 @@ class UniPCMultistepScheduler(SchedulerMixin, ConfigMixin):
if
len
(
args
)
>
1
:
if
len
(
args
)
>
1
:
last_sample
=
args
[
1
]
last_sample
=
args
[
1
]
else
:
else
:
raise
ValueError
(
"
missing`last_sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing
`last_sample` as a required keyw
o
rd argument"
)
if
this_sample
is
None
:
if
this_sample
is
None
:
if
len
(
args
)
>
2
:
if
len
(
args
)
>
2
:
this_sample
=
args
[
2
]
this_sample
=
args
[
2
]
else
:
else
:
raise
ValueError
(
"
missing`this_sample` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing
`this_sample` as a required keyw
o
rd argument"
)
if
order
is
None
:
if
order
is
None
:
if
len
(
args
)
>
3
:
if
len
(
args
)
>
3
:
order
=
args
[
3
]
order
=
args
[
3
]
else
:
else
:
raise
ValueError
(
"
missing`order` as a required keyw
a
rd argument"
)
raise
ValueError
(
"missing
`order` as a required keyw
o
rd argument"
)
if
this_timestep
is
not
None
:
if
this_timestep
is
not
None
:
deprecate
(
deprecate
(
"this_timestep"
,
"this_timestep"
,
...
...
Prev
1
2
3
Next
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