Files
FranckyB-ComfyUI-Prompt-Man…/workflows/api/qwen_image_api.json
T
FranckyB 866ca71053 feat: template-driven execution engine + WAN split + collapsible UI
- 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
2026-04-11 19:02:59 +00:00

111 lines
1.7 KiB
JSON

{
"77": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "qwen_image_vae.safetensors"
}
},
"78": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
"type": "qwen_image",
"device": "default"
}
},
"82": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"78",
0
],
"text": ""
}
},
"83": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"78",
0
],
"text": ""
}
},
"80": {
"class_type": "ModelSamplingAuraFlow",
"inputs": {
"model": [
"88",
0
],
"shift": 3.1000000000000005
}
},
"88": {
"class_type": "PromptApplyLora",
"inputs": {
"model": [
"81",
0
],
"lora_stack_text": ""
}
},
"81": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "Qwen\\qwen_image_2512_bf16.safetensors",
"weight_dtype": "default"
}
},
"79": {
"class_type": "EmptySD3LatentImage",
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
}
},
"84": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"86",
0
],
"vae": [
"77",
0
]
}
},
"86": {
"class_type": "KSampler",
"inputs": {
"model": [
"80",
0
],
"positive": [
"82",
0
],
"negative": [
"83",
0
],
"latent_image": [
"79",
0
],
"seed": 315089889102375,
"steps": 8,
"cfg": 1,
"sampler_name": "euler",
"scheduler": "simple",
"denoise": 1
}
}
}