From ffc5dd6b3470bccf0d92a1f7f5ddd74e6aad32e1 Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Fri, 21 Oct 2022 12:49:52 +0200 Subject: [PATCH] [Tests] Move stable diffusion into their own files (#936) * [Tests] Move stable diffusion into their own files * up --- pipeline_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline_utils.py b/pipeline_utils.py index 5d186f35ea11..d1e037499b65 100644 --- a/pipeline_utils.py +++ b/pipeline_utils.py @@ -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)