Skip to content

Commit 4b51bbf

Browse files
committed
fixes
1 parent 0ac1a39 commit 4b51bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/loaders/lora_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ def write_lora_layers(
896896

897897
if lora_adapter_metadata and not safe_serialization:
898898
raise ValueError("`lora_adapter_metadata` cannot be specified when not using `safe_serialization`.")
899-
if not isinstance(lora_adapter_metadata, dict):
899+
if lora_adapter_metadata and not isinstance(lora_adapter_metadata, dict):
900900
raise ValueError("`lora_adapter_metadata` must be of type `dict`.")
901901

902902
if save_function is None:

0 commit comments

Comments
 (0)