Skip to content

Commit

Permalink
[Tests] Move stable diffusion into their own files (#936)
Browse files Browse the repository at this point in the history
* [Tests] Move stable diffusion into their own files

* up
  • Loading branch information
patrickvonplaten authored Oct 21, 2022
1 parent 32bf4fd commit 25dfd0f
Show file tree
Hide file tree
Showing 6 changed files with 2,283 additions and 1,680 deletions.
2 changes: 1 addition & 1 deletion src/diffusers/pipeline_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def register_modules(self, **kwargs):
library = module.__module__.split(".")[0]

# check if the module is a pipeline module
pipeline_dir = module.__module__.split(".")[-2]
pipeline_dir = module.__module__.split(".")[-2] if len(module.__module__.split(".")) > 2 else None
path = module.__module__.split(".")
is_pipeline_module = pipeline_dir in path and hasattr(pipelines, pipeline_dir)

Expand Down
Loading

0 comments on commit 25dfd0f

Please sign in to comment.