feat: Enhance LoraLoaderExtractor to extract base filename from lora_name input

This commit is contained in:
Will Miao
2025-04-16 22:19:38 +08:00
parent 4c69d8d3a8
commit 4fdc88e9e1

View File

@@ -90,6 +90,8 @@ class LoraLoaderExtractor(NodeMetadataExtractor):
return
lora_name = inputs.get("lora_name")
# Extract base filename without extension from path
lora_name = os.path.splitext(os.path.basename(lora_name))[0]
strength_model = round(float(inputs.get("strength_model", 1.0)), 2)
# Use the standardized format with lora_list