Skip to content

Commit 87f8f03

Browse files
hlkyDN6
andauthored
Update src/diffusers/pipelines/pipeline_utils.py
Co-authored-by: Dhruv Nair <[email protected]>
1 parent f18687f commit 87f8f03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ def load_module(name, value):
848848
_expected_class_types.append(expected_type.__name__)
849849

850850
_is_valid_type = class_obj.__class__.__name__ in _expected_class_types
851-
if isinstance(class_obj, SchedulerMixin) and not _is_valid_type:
851+
if (isinstance(class_obj, SchedulerMixin) or isinstance(class_obj, FlaxSchedulerMixin)) and not _is_valid_type:
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:

0 commit comments

Comments
 (0)