mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix #938
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
version = '2.1.805'
|
version = '2.1.806'
|
||||||
|
|||||||
+10
-4
@@ -136,7 +136,13 @@ def load_dangerous_lora(lora, to_load):
|
|||||||
patch_dict["{}.bias".format(to_load[x][:-len(".weight")])] = (diff_bias,)
|
patch_dict["{}.bias".format(to_load[x][:-len(".weight")])] = (diff_bias,)
|
||||||
loaded_keys.add(diff_bias_name)
|
loaded_keys.add(diff_bias_name)
|
||||||
|
|
||||||
for x in lora.keys():
|
remaining_keys = [x for x in lora.keys() if x not in loaded_keys]
|
||||||
if x not in loaded_keys:
|
|
||||||
return {}
|
if len(remaining_keys) == 0:
|
||||||
return patch_dict
|
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
|
# 2.1.805
|
||||||
|
|
||||||
* Responsive UI for small screens.
|
* Responsive UI for small screens.
|
||||||
|
|||||||
Reference in New Issue
Block a user