mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 07:05:43 -03:00
fix(lora_loader): remove unnecessary string stripping from lora names in loaders, fixes #441
This commit is contained in:
@@ -115,7 +115,7 @@ class LoraManagerLoader:
|
|||||||
formatted_loras = []
|
formatted_loras = []
|
||||||
for item in loaded_loras:
|
for item in loaded_loras:
|
||||||
parts = item.split(":")
|
parts = item.split(":")
|
||||||
lora_name = parts[0].strip()
|
lora_name = parts[0]
|
||||||
strength_parts = parts[1].strip().split(",")
|
strength_parts = parts[1].strip().split(",")
|
||||||
|
|
||||||
if len(strength_parts) > 1:
|
if len(strength_parts) > 1:
|
||||||
@@ -165,7 +165,7 @@ class LoraManagerTextLoader:
|
|||||||
|
|
||||||
loras = []
|
loras = []
|
||||||
for match in matches:
|
for match in matches:
|
||||||
lora_name = match[0].strip()
|
lora_name = match[0]
|
||||||
model_strength = float(match[1])
|
model_strength = float(match[1])
|
||||||
clip_strength = float(match[2]) if match[2] else model_strength
|
clip_strength = float(match[2]) if match[2] else model_strength
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user