fix #938
This commit is contained in:
parent
f80f159d8f
commit
c9a5e729d9
|
|
@ -1 +1 @@
|
|||
version = '2.1.805'
|
||||
version = '2.1.806'
|
||||
|
|
|
|||
|
|
@ -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 {}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
# 2.1.806
|
||||
|
||||
* fix some lora problems related to clip.
|
||||
|
||||
# 2.1.805
|
||||
|
||||
* Responsive UI for small screens.
|
||||
|
|
|
|||
Loading…
Reference in New Issue