Enhance node processing and error handling in workflow mappers

- Improved reference handling in NodeMapper to support integer node IDs and added error logging for reference processing failures.
- Updated LoraLoaderMapper and LoraStackerMapper to handle lora_stack as a dictionary, ensuring compatibility with new data formats.
- Refactored trace_model_path utility to perform a depth-first search for LoRA nodes, improving the accuracy of model path tracing.
- Cleaned up unused code in parser.py related to LoRA processing, streamlining the workflow parsing logic.
This commit is contained in:
Will Miao
2025-03-23 07:20:50 +08:00
parent 042153329b
commit 6aa2342be1
6 changed files with 178 additions and 91 deletions

View File

@@ -114,7 +114,7 @@
1
]
},
"class_type": "CLIPSetLastLayer",
"class_type": "CLIPSetLastLayer",
"_meta": {
"title": "CLIP Set Last Layer"
}
@@ -154,18 +154,6 @@
"text": "in the style of ck-rw",
"active": true
},
{
"text": "aorun, scales, makeup, bare shoulders, pointy ears",
"active": true
},
{
"text": "dress",
"active": true
},
{
"text": "claws",
"active": true
},
{
"text": "in the style of cksc",
"active": true
@@ -174,10 +162,6 @@
"text": "artist:moriimee",
"active": true
},
{
"text": "in the style of cknc",
"active": true
},
{
"text": "__dummy_item__",
"active": false,
@@ -189,7 +173,7 @@
"_isDummy": true
}
],
"orinalMessage": "in the style of ck-rw,, aorun, scales, makeup, bare shoulders, pointy ears,, dress,, claws,, in the style of cksc,, artist:moriimee,, in the style of cknc",
"orinalMessage": "in the style of ck-rw,, in the style of cksc,, artist:moriimee",
"trigger_words": [
"56",
2
@@ -217,7 +201,7 @@
{
"name": "ck-nc-cyberpunk-IL-000011",
"strength": 0.4,
"active": true
"active": false
},
{
"name": "__dummy_item1__",
@@ -257,7 +241,7 @@
{
"name": "aorunIllstrious",
"strength": "0.90",
"active": true
"active": false
},
{
"name": "__dummy_item1__",