Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
diffusers
Commits
5ed3abd3
Unverified
Commit
5ed3abd3
authored
May 09, 2024
by
YiYi Xu
Committed by
GitHub
May 09, 2024
Browse files
fix `_optional_components` in `StableCascadeCombinedPipeline` (#7894)
* fix * up
parent
1087a510
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py
...elines/stable_cascade/pipeline_stable_cascade_combined.py
+1
-0
tests/pipelines/stable_cascade/test_stable_cascade_combined.py
.../pipelines/stable_cascade/test_stable_cascade_combined.py
+2
-0
No files found.
src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py
View file @
5ed3abd3
...
@@ -71,6 +71,7 @@ class StableCascadeCombinedPipeline(DiffusionPipeline):
...
@@ -71,6 +71,7 @@ class StableCascadeCombinedPipeline(DiffusionPipeline):
"""
"""
_load_connected_pipes
=
True
_load_connected_pipes
=
True
_optional_components
=
[
"prior_feature_extractor"
,
"prior_image_encoder"
]
def
__init__
(
def
__init__
(
self
,
self
,
...
...
tests/pipelines/stable_cascade/test_stable_cascade_combined.py
View file @
5ed3abd3
...
@@ -153,6 +153,8 @@ class StableCascadeCombinedPipelineFastTests(PipelineTesterMixin, unittest.TestC
...
@@ -153,6 +153,8 @@ class StableCascadeCombinedPipelineFastTests(PipelineTesterMixin, unittest.TestC
"prior_tokenizer"
:
prior_tokenizer
,
"prior_tokenizer"
:
prior_tokenizer
,
"prior_prior"
:
prior
,
"prior_prior"
:
prior
,
"prior_scheduler"
:
scheduler
,
"prior_scheduler"
:
scheduler
,
"prior_feature_extractor"
:
None
,
"prior_image_encoder"
:
None
,
}
}
return
components
return
components
...
...
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