tharms commited on
Commit
24164ec
·
1 Parent(s): 7945748

reduced log output

Browse files
Files changed (1) hide show
  1. modules/core.py +2 -2
modules/core.py CHANGED
@@ -94,7 +94,7 @@ class StableDiffusionModel:
94
  for lora_filename, weight in loras_to_load:
95
  lora_unmatch = ldm_patched.modules.utils.load_torch_file(lora_filename, safe_load=False)
96
  print(f'Loading LoRA [{lora_filename}] for model [{self.filename}] '
97
- f'with {len(lora_unmatch)} initially unmatched keys {list(lora_unmatch.keys())}')
98
 
99
  lora_unet, lora_unmatch = match_lora(lora_unmatch, self.lora_key_map_unet)
100
  lora_clip, lora_unmatch = match_lora(lora_unmatch, self.lora_key_map_clip)
@@ -102,7 +102,7 @@ class StableDiffusionModel:
102
  if len(lora_unmatch) > 12:
103
  # model mismatch
104
  print(f'NOT Loaded LoRA [{lora_filename}] for model [{self.filename}] '
105
- f'with {len(lora_unmatch)} unmatched keys {list(lora_unmatch.keys())} \nmatched keys {list(lora_unet.keys())}')
106
  continue
107
 
108
  if len(lora_unmatch) > 0:
 
94
  for lora_filename, weight in loras_to_load:
95
  lora_unmatch = ldm_patched.modules.utils.load_torch_file(lora_filename, safe_load=False)
96
  print(f'Loading LoRA [{lora_filename}] for model [{self.filename}] '
97
+ f'with {len(lora_unmatch)}')
98
 
99
  lora_unet, lora_unmatch = match_lora(lora_unmatch, self.lora_key_map_unet)
100
  lora_clip, lora_unmatch = match_lora(lora_unmatch, self.lora_key_map_clip)
 
102
  if len(lora_unmatch) > 12:
103
  # model mismatch
104
  print(f'NOT Loaded LoRA [{lora_filename}] for model [{self.filename}] '
105
+ f'with {len(lora_unmatch)}')
106
  continue
107
 
108
  if len(lora_unmatch) > 0: