This commit is contained in:
lllyasviel 2023-11-13 22:57:35 -08:00
parent f80f159d8f
commit c9a5e729d9
3 changed files with 15 additions and 5 deletions

View File

@ -1 +1 @@
version = '2.1.805'
version = '2.1.806'

View File

@ -136,7 +136,13 @@ def load_dangerous_lora(lora, to_load):
patch_dict["{}.bias".format(to_load[x][:-len(".weight")])] = (diff_bias,)
loaded_keys.add(diff_bias_name)
for x in lora.keys():
if x not in loaded_keys:
return {}
return patch_dict
remaining_keys = [x for x in lora.keys() if x not in loaded_keys]
if len(remaining_keys) == 0:
return patch_dict
if len(remaining_keys) < 8:
print(f'LoRA loaded with extra keys: {remaining_keys}')
return patch_dict
return {}

View File

@ -1,3 +1,7 @@
# 2.1.806
* fix some lora problems related to clip.
# 2.1.805
* Responsive UI for small screens.