alter number

This commit is contained in:
lllyasviel
2023-11-13 23:06:31 -08:00
parent c9a5e729d9
commit 305c39d49c
+4 -4
View File
@@ -141,8 +141,8 @@ def load_dangerous_lora(lora, to_load):
if len(remaining_keys) == 0: if len(remaining_keys) == 0:
return patch_dict return patch_dict
if len(remaining_keys) < 8: if len(remaining_keys) > 12:
print(f'LoRA loaded with extra keys: {remaining_keys}') return {}
return patch_dict
return {} print(f'LoRA loaded with extra keys: {remaining_keys}')
return patch_dict