- workflow_executor.py: new in-process template execution engine - load_template() / patch_template() / execute_template() - WAN Video i2v latent via WanImageToVideo node - Dual-step math: total=high+low, high=[0..H], low=[H..100] - loras_to_text() for PromptApplyLora JSON serialisation - workflow_families.py: split wan → wan_image / wan_video_i2v / wan_video_t2v - Added FAMILY_WORKFLOW_STEMS mapping family keys to api/ file stems - Sampler strategy: wan_image → single KSampler, wan_video → dual KSamplerAdvanced - tools/convert_to_api.py: UI JSON → API JSON conversion script (8 workflows) - workflows/api/: 16 new files (api.json + map.json) for: flux_1, flux_2, qwen_image, sdxl, wan_image, wan_video_i2v, wan_video_t2v, z_image - workflow_generator.py: - execute() now uses template-driven path first (load_template → patch → execute_template) - Falls back to hardcoded samplers when no template exists (sd15, ltxv) - Added source_image optional param for WAN i2v - Added steps_high / steps_low override parsing from JS - Strategy check updated: wan → wan_video for both i2v and t2v - workflow_generator.js: - makeSection(): collapsible with chevron toggle, all start collapsed - updateWanVisibility(): handles wan_image / wan_video_i2v / wan_video_t2v - Steps (High) / Steps (Low) rows added to SAMPLER section (WAN Video only) - Standard Steps row hidden when WAN Video family selected - LoRA Stack A title: 'LoRA Stack (High)' for WAN Video, 'LoRA Stack' otherwise - LoRA Stack B: visible only for wan_video_i2v / wan_video_t2v - Model B row: visible only for WAN Video families - syncHidden(), applyOverrides(), updateUI() updated for steps_high/steps_low - Section _setNode() wired up after _weRecalc is defined
161 lines
2.3 KiB
JSON
161 lines
2.3 KiB
JSON
{
|
|
"84": {
|
|
"class_type": "KSamplerSelect",
|
|
"inputs": {
|
|
"sampler_name": "euler"
|
|
}
|
|
},
|
|
"85": {
|
|
"class_type": "Flux2Scheduler",
|
|
"inputs": {
|
|
"steps": 20,
|
|
"width": [
|
|
"91",
|
|
0
|
|
],
|
|
"height": [
|
|
"92",
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"86": {
|
|
"class_type": "CFGGuider",
|
|
"inputs": {
|
|
"model": [
|
|
"99",
|
|
0
|
|
],
|
|
"positive": [
|
|
"97",
|
|
0
|
|
],
|
|
"negative": [
|
|
"90",
|
|
0
|
|
],
|
|
"cfg": 5
|
|
}
|
|
},
|
|
"87": {
|
|
"class_type": "SamplerCustomAdvanced",
|
|
"inputs": {
|
|
"noise": [
|
|
"93",
|
|
0
|
|
],
|
|
"guider": [
|
|
"86",
|
|
0
|
|
],
|
|
"sampler": [
|
|
"84",
|
|
0
|
|
],
|
|
"sigmas": [
|
|
"85",
|
|
0
|
|
],
|
|
"latent_image": [
|
|
"89",
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"90": {
|
|
"class_type": "CLIPTextEncode",
|
|
"inputs": {
|
|
"clip": [
|
|
"95",
|
|
0
|
|
],
|
|
"text": ""
|
|
}
|
|
},
|
|
"91": {
|
|
"class_type": "PrimitiveInt",
|
|
"inputs": {
|
|
"value": 1024
|
|
}
|
|
},
|
|
"92": {
|
|
"class_type": "PrimitiveInt",
|
|
"inputs": {
|
|
"value": 1024
|
|
}
|
|
},
|
|
"93": {
|
|
"class_type": "RandomNoise",
|
|
"inputs": {
|
|
"noise_seed": 0
|
|
}
|
|
},
|
|
"95": {
|
|
"class_type": "CLIPLoader",
|
|
"inputs": {
|
|
"clip_name": "qwen_3_8b_fp8mixed.safetensors",
|
|
"type": "flux2",
|
|
"device": "default"
|
|
}
|
|
},
|
|
"96": {
|
|
"class_type": "VAELoader",
|
|
"inputs": {
|
|
"vae_name": "flux2-vae.safetensors"
|
|
}
|
|
},
|
|
"97": {
|
|
"class_type": "CLIPTextEncode",
|
|
"inputs": {
|
|
"clip": [
|
|
"95",
|
|
0
|
|
],
|
|
"text": ""
|
|
}
|
|
},
|
|
"88": {
|
|
"class_type": "VAEDecode",
|
|
"inputs": {
|
|
"samples": [
|
|
"87",
|
|
0
|
|
],
|
|
"vae": [
|
|
"96",
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"89": {
|
|
"class_type": "EmptyFlux2LatentImage",
|
|
"inputs": {
|
|
"width": [
|
|
"91",
|
|
0
|
|
],
|
|
"height": [
|
|
"92",
|
|
0
|
|
],
|
|
"batch_size": 1024
|
|
}
|
|
},
|
|
"94": {
|
|
"class_type": "UNETLoader",
|
|
"inputs": {
|
|
"unet_name": "flux-2-klein-base-9b-fp8.safetensors",
|
|
"weight_dtype": "default"
|
|
}
|
|
},
|
|
"99": {
|
|
"class_type": "PromptApplyLora",
|
|
"inputs": {
|
|
"model": [
|
|
"94",
|
|
0
|
|
],
|
|
"lora_stack_text": ""
|
|
}
|
|
}
|
|
} |