We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f18687f commit 87f8f03Copy full SHA for 87f8f03
src/diffusers/pipelines/pipeline_utils.py
@@ -848,7 +848,7 @@ def load_module(name, value):
848
_expected_class_types.append(expected_type.__name__)
849
850
_is_valid_type = class_obj.__class__.__name__ in _expected_class_types
851
- if isinstance(class_obj, SchedulerMixin) and not _is_valid_type:
+ if (isinstance(class_obj, SchedulerMixin) or isinstance(class_obj, FlaxSchedulerMixin)) and not _is_valid_type:
852
_requires_flow_match = any("FlowMatch" in class_type for class_type in _expected_class_types)
853
_is_flow_match = "FlowMatch" in class_obj.__class__.__name__
854
if _requires_flow_match and not _is_flow_match:
0 commit comments