mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
ling
This commit is contained in:
+2
-2
@@ -115,7 +115,7 @@ class StableDiffusionModel:
|
|||||||
print(f'Loaded LoRA [{lora_filename}] for UNet [{self.filename}] '
|
print(f'Loaded LoRA [{lora_filename}] for UNet [{self.filename}] '
|
||||||
f'with {len(loaded_keys)} keys at weight {weight}.')
|
f'with {len(loaded_keys)} keys at weight {weight}.')
|
||||||
for item in lora_unet:
|
for item in lora_unet:
|
||||||
if item not in set(list(loaded_keys)):
|
if item not in loaded_keys:
|
||||||
print("UNet LoRA key skipped: ", item)
|
print("UNet LoRA key skipped: ", item)
|
||||||
|
|
||||||
if self.clip_with_lora is not None and len(lora_clip) > 0:
|
if self.clip_with_lora is not None and len(lora_clip) > 0:
|
||||||
@@ -123,7 +123,7 @@ class StableDiffusionModel:
|
|||||||
print(f'Loaded LoRA [{lora_filename}] for CLIP [{self.filename}] '
|
print(f'Loaded LoRA [{lora_filename}] for CLIP [{self.filename}] '
|
||||||
f'with {len(loaded_keys)} keys at weight {weight}.')
|
f'with {len(loaded_keys)} keys at weight {weight}.')
|
||||||
for item in lora_clip:
|
for item in lora_clip:
|
||||||
if item not in set(list(loaded_keys)):
|
if item not in loaded_keys:
|
||||||
print("CLIP LoRA key skipped: ", item)
|
print("CLIP LoRA key skipped: ", item)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user