Skip to content

Commit

Permalink
[Tests] Move stable diffusion into their own files (huggingface#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 100310d commit ffc5dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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

0 comments on commit ffc5dd6

Please sign in to comment.