Skip to content

Commit

Permalink
fix _optional_components in StableCascadeCombinedPipeline (#7894)
Browse files Browse the repository at this point in the history
* fix

* up
  • Loading branch information
yiyixuxu authored May 9, 2024
1 parent 1087a51 commit 5ed3abd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class StableCascadeCombinedPipeline(DiffusionPipeline):
"""

_load_connected_pipes = True
_optional_components = ["prior_feature_extractor", "prior_image_encoder"]

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ def get_dummy_components(self):
"prior_tokenizer": prior_tokenizer,
"prior_prior": prior,
"prior_scheduler": scheduler,
"prior_feature_extractor": None,
"prior_image_encoder": None,
}

return components
Expand Down

0 comments on commit 5ed3abd

Please sign in to comment.