Skip to content

Commit 3f841d5

Browse files
committed
warning
1 parent 24d79a3 commit 3f841d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -852,11 +852,11 @@ def load_module(name, value):
852852
_requires_flow_match = any("FlowMatch" in class_type for class_type in _expected_class_types)
853853
_is_flow_match = "FlowMatch" in class_obj.__class__.__name__
854854
if _requires_flow_match and not _is_flow_match:
855-
raise ValueError(f"Expected FlowMatch scheduler, got {class_obj.__class__.__name__}.")
855+
logger.warning(f"Expected FlowMatch scheduler, got {class_obj.__class__.__name__}.")
856856
elif not _requires_flow_match and _is_flow_match:
857-
raise ValueError(f"Expected non-FlowMatch scheduler, got {class_obj.__class__.__name__}.")
857+
logger.warning(f"Expected non-FlowMatch scheduler, got {class_obj.__class__.__name__}.")
858858
elif not _is_valid_type:
859-
raise ValueError(
859+
logger.warning(
860860
f"Expected types for {key}: {_expected_class_types}, got {class_obj.__class__.__name__}."
861861
)
862862

0 commit comments

Comments
 (0)