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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user