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
2a49fac8
"...en/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "beb8f216ed07931f6d8fd5633faf31906981abb0"
Unverified
Commit
2a49fac8
authored
Feb 15, 2023
by
Will Berman
Committed by
GitHub
Feb 15, 2023
Browse files
KarrasDiffusionSchedulers type note (#2365)
parent
51b61b69
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/diffusers/schedulers/scheduling_utils.py
src/diffusers/schedulers/scheduling_utils.py
+4
-0
src/diffusers/schedulers/scheduling_utils_flax.py
src/diffusers/schedulers/scheduling_utils_flax.py
+4
-0
No files found.
src/diffusers/schedulers/scheduling_utils.py
View file @
2a49fac8
...
@@ -25,6 +25,10 @@ from ..utils import BaseOutput
...
@@ -25,6 +25,10 @@ from ..utils import BaseOutput
SCHEDULER_CONFIG_NAME
=
"scheduler_config.json"
SCHEDULER_CONFIG_NAME
=
"scheduler_config.json"
# NOTE: We make this type an enum because it simplifies usage in docs and prevents
# circular imports when used for `_compatibles` within the schedulers module.
# When it's used as a type in pipelines, it really is a Union because the actual
# scheduler instance is passed in.
class
KarrasDiffusionSchedulers
(
Enum
):
class
KarrasDiffusionSchedulers
(
Enum
):
DDIMScheduler
=
1
DDIMScheduler
=
1
DDPMScheduler
=
2
DDPMScheduler
=
2
...
...
src/diffusers/schedulers/scheduling_utils_flax.py
View file @
2a49fac8
...
@@ -27,6 +27,10 @@ from ..utils import BaseOutput
...
@@ -27,6 +27,10 @@ from ..utils import BaseOutput
SCHEDULER_CONFIG_NAME
=
"scheduler_config.json"
SCHEDULER_CONFIG_NAME
=
"scheduler_config.json"
# NOTE: We make this type an enum because it simplifies usage in docs and prevents
# circular imports when used for `_compatibles` within the schedulers module.
# When it's used as a type in pipelines, it really is a Union because the actual
# scheduler instance is passed in.
class
FlaxKarrasDiffusionSchedulers
(
Enum
):
class
FlaxKarrasDiffusionSchedulers
(
Enum
):
FlaxDDIMScheduler
=
1
FlaxDDIMScheduler
=
1
FlaxDDPMScheduler
=
2
FlaxDDPMScheduler
=
2
...
...
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