From bd4d40203c7e727fd06fc58ec122c25befcc5644 Mon Sep 17 00:00:00 2001 From: lllyasviel Date: Tue, 21 Nov 2023 10:16:45 -0800 Subject: [PATCH] ling --- modules/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core.py b/modules/core.py index 9b3ea148..e0fcd13f 100644 --- a/modules/core.py +++ b/modules/core.py @@ -115,7 +115,7 @@ class StableDiffusionModel: print(f'Loaded LoRA [{lora_filename}] for UNet [{self.filename}] ' f'with {len(loaded_keys)} keys at weight {weight}.') 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) 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}] ' f'with {len(loaded_keys)} keys at weight {weight}.') 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)