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 bb8d862 commit 46d4629Copy full SHA for 46d4629
src/diffusers/pipelines/pipeline_utils.py
@@ -1006,9 +1006,9 @@ def load_module(name, value):
1006
elif "tokenizer" in kw:
1007
continue
1008
elif (
1009
- arg is not None # Skip if None
+ arg is not None # Skip if None
1010
and not expected_types[kw] == (inspect.Signature.empty,) # Skip if no type annotations
1011
- and not _is_valid_type(arg, expected_types[kw]) # Check type
+ and not _is_valid_type(arg, expected_types[kw]) # Check type
1012
):
1013
logger.warning(f"Expected types for {kw}: {expected_types[kw]}, got {_get_detailed_type(arg)}.")
1014
0 commit comments