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 0ac1a39 commit 4b51bbfCopy full SHA for 4b51bbf
src/diffusers/loaders/lora_base.py
@@ -896,7 +896,7 @@ def write_lora_layers(
896
897
if lora_adapter_metadata and not safe_serialization:
898
raise ValueError("`lora_adapter_metadata` cannot be specified when not using `safe_serialization`.")
899
- if not isinstance(lora_adapter_metadata, dict):
+ if lora_adapter_metadata and not isinstance(lora_adapter_metadata, dict):
900
raise ValueError("`lora_adapter_metadata` must be of type `dict`.")
901
902
if save_function is None:
0 commit comments