From 372222a4b6ddbbf57def87b230c3a21d96dc4652 Mon Sep 17 00:00:00 2001 From: yiyixuxu Date: Sat, 24 Jan 2026 05:42:51 +0100 Subject: [PATCH] load_components by default only load components that are not already loaded --- src/diffusers/modular_pipelines/modular_pipeline.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/diffusers/modular_pipelines/modular_pipeline.py b/src/diffusers/modular_pipelines/modular_pipeline.py index d857fd0409..38fc0dbd3f 100644 --- a/src/diffusers/modular_pipelines/modular_pipeline.py +++ b/src/diffusers/modular_pipelines/modular_pipeline.py @@ -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 getattr(self, name, None) is None ] elif isinstance(names, str): names = [names]