Skip to content

Commit 2274fc4

Browse files
yiyixuxusayakpaul
authored andcommitted
fix _optional_components in StableCascadeCombinedPipeline (#7894)
* fix * up
1 parent 7563ad6 commit 2274fc4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class StableCascadeCombinedPipeline(DiffusionPipeline):
7171
"""
7272

7373
_load_connected_pipes = True
74+
_optional_components = ["prior_feature_extractor", "prior_image_encoder"]
7475

7576
def __init__(
7677
self,

tests/pipelines/stable_cascade/test_stable_cascade_combined.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ def get_dummy_components(self):
153153
"prior_tokenizer": prior_tokenizer,
154154
"prior_prior": prior,
155155
"prior_scheduler": scheduler,
156+
"prior_feature_extractor": None,
157+
"prior_image_encoder": None,
156158
}
157159

158160
return components

0 commit comments

Comments
 (0)