Enhance workflow parsing and node mapper registration

- Introduced a new WorkflowParser class to streamline workflow parsing and manage node mappers.
- Added functionality to load external mappers dynamically from a specified directory.
- Refactored LoraLoaderMapper and LoraStackerMapper to handle new data formats for loras and trigger words.
- Updated recipe routes to utilize the new WorkflowParser for parsing workflows.
- Made adjustments to the flux_prompt.json to reflect changes in active states and class types.
This commit is contained in:
Will Miao
2025-03-23 05:21:43 +08:00
parent 3da35cf0db
commit 2b67091986
7 changed files with 463 additions and 84 deletions

View File

@@ -44,7 +44,7 @@
},
"31": {
"inputs": {
"seed": 48,
"seed": 44,
"steps": 25,
"cfg": 1,
"sampler_name": "dpmpp_2m",
@@ -95,7 +95,7 @@
},
"class_type": "FluxGuidance",
"_meta": {
"title": "g"
"title": "FluxGuidance"
}
},
"37": {
@@ -175,12 +175,12 @@
{
"name": "pp-enchanted-whimsy",
"strength": "0.90",
"active": true
"active": false
},
{
"name": "ral-frctlgmtry_flux",
"strength": "0.85",
"active": true
"active": false
},
{
"name": "pp-storybook_rank2_bf16",
@@ -218,17 +218,9 @@
"inputs": {
"group_mode": "",
"toggle_trigger_words": [
{
"text": "in the style of ppWhimsy",
"active": true
},
{
"text": "ral-frctlgmtry",
"active": true
},
{
"text": "ppstorybook",
"active": true
"active": false
},
{
"text": "__dummy_item__",
@@ -241,7 +233,7 @@
"_isDummy": true
}
],
"orinalMessage": "in the style of ppWhimsy,, ral-frctlgmtry,, ppstorybook",
"orinalMessage": "ppstorybook",
"trigger_words": [
"58",
2
@@ -251,5 +243,72 @@
"_meta": {
"title": "TriggerWord Toggle (LoraManager)"
}
},
"61": {
"inputs": {
"add_noise": "enable",
"noise_seed": 1111423448930884,
"steps": 20,
"cfg": 8,
"sampler_name": "euler",
"scheduler": "normal",
"start_at_step": 0,
"end_at_step": 10000,
"return_with_leftover_noise": "disable"
},
"class_type": "KSamplerAdvanced",
"_meta": {
"title": "KSampler (Advanced)"
}
},
"62": {
"inputs": {
"sigmas": [
"63",
0
]
},
"class_type": "SamplerCustomAdvanced",
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"63": {
"inputs": {
"scheduler": "normal",
"steps": 20,
"denoise": 1
},
"class_type": "BasicScheduler",
"_meta": {
"title": "BasicScheduler"
}
},
"64": {
"inputs": {
"seed": 1089899258710474,
"steps": 20,
"cfg": 8,
"sampler_name": "euler",
"scheduler": "normal",
"denoise": 1
},
"class_type": "KSampler",
"_meta": {
"title": "KSampler"
}
},
"65": {
"inputs": {
"text": ",Stylized geek cat artist with glasses and a paintbrush, smiling at the viewer while holding a sign that reads 'Stay tuned!', solid white background",
"anything": [
"46",
0
]
},
"class_type": "easy showAnything",
"_meta": {
"title": "Show Any"
}
}
}