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 8dff843 commit ba0f59bCopy full SHA for ba0f59b
src/diffusers/loaders/ip_adapter.py
@@ -187,7 +187,7 @@ def load_ip_adapter(
187
state_dict = pretrained_model_name_or_path_or_dict
188
189
keys = list(state_dict.keys())
190
- if keys != ["image_proj", "ip_adapter"]:
+ if "image_proj" not in keys and "ip_adapter" not in keys:
191
raise ValueError("Required keys are (`image_proj` and `ip_adapter`) missing from the state dict.")
192
193
state_dicts.append(state_dict)
0 commit comments