1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Fix incorrect loading of custom pipeline (#5568)

* update

* update

* update

* update
This commit is contained in:
Aryan V S
2023-10-31 00:02:11 +05:30
committed by GitHub
parent ac7b1716b7
commit bb46be2f18

View File

@@ -1669,7 +1669,7 @@ class DiffusionPipeline(ConfigMixin, PushToHubMixin):
for component in folder_names:
module_candidate = config_dict[component][0]
if module_candidate is None:
if module_candidate is None or not isinstance(module_candidate, str):
continue
candidate_file = os.path.join(component, module_candidate + ".py")