1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

make loader optional

This commit is contained in:
yiyixuxu
2025-05-02 00:46:31 +02:00
parent ce642e92da
commit c8b5d56412

View File

@@ -199,7 +199,8 @@ class ModularPipelineMixin:
state = PipelineState()
if not hasattr(self, "loader"):
raise ValueError("Loader is not set, please call `setup_loader()` first.")
logger.warning("Loader is not set, please call `setup_loader()` if you need to load checkpoints for your pipeline.")
self.loader = None
# Make a copy of the input kwargs
input_params = kwargs.copy()