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

by default, skip loading the componeneets does not have the repo id

This commit is contained in:
yiyixuxu
2026-01-24 05:56:09 +01:00
parent 372222a4b6
commit e77f1c56dc

View File

@@ -2142,6 +2142,7 @@ class ModularPipeline(ConfigMixin, PushToHubMixin):
name
for name in self._component_specs.keys()
if self._component_specs[name].default_creation_method == "from_pretrained"
and self._component_specs[name].pretrained_model_name_or_path is not None
and getattr(self, name, None) is None
]
elif isinstance(names, str):