fix: complete ComfyUI workflow schema validation

Fix all 20 production workflows to comply with ComfyUI schema requirements:
- Add missing 'flags', 'order', 'mode', 'properties', 'size' fields to all nodes
- Update deprecated node names:
  - AnimateDiffLoader → AnimateDiffLoaderV1
  - VHSVideoCombine → VHS_VideoCombine
  - IPAdapterApply → IPAdapter
  - IPAdapterApplyFace → IPAdapterFaceID
- Remove deprecated nodes: PreviewVideo, SaveVideo
- Add fix_workflows.py script for future maintenance

Changes:
- 16 workflows updated with complete schema
- 4 workflows (FLUX, SD3.5) were already valid
- All workflows now pass zod schema validation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-22 15:30:08 +01:00
parent 19d82108b0
commit 2213ed3c85
17 changed files with 3727 additions and 300 deletions

View File

@@ -1,20 +1,322 @@
{
"last_node_id": 15,
"nodes": [
{"id": 1, "type": "CheckpointLoaderSimple", "pos": [50, 100], "widgets_values": ["diffusers/stable-diffusion-xl-base-1.0"], "title": "SDXL Checkpoint Loader"},
{"id": 2, "type": "LoadImage", "pos": [50, 300], "widgets_values": ["control_depth.png", "image"], "title": "API Depth Control Image"},
{"id": 3, "type": "LoadImage", "pos": [50, 650], "widgets_values": ["control_canny.png", "image"], "title": "API Canny Control Image"},
{"id": 4, "type": "ControlNetLoader", "pos": [450, 100], "widgets_values": ["control_v11p_sd15_depth"], "title": "Depth ControlNet Loader"},
{"id": 5, "type": "ControlNetLoader", "pos": [450, 300], "widgets_values": ["control_v11p_sd15_canny"], "title": "Canny ControlNet Loader"},
{"id": 6, "type": "ControlNetApplyAdvanced", "pos": [800, 100], "widgets_values": [0.8, 0.0, 1.0], "title": "Apply Depth Control"},
{"id": 7, "type": "ControlNetApplyAdvanced", "pos": [800, 350], "widgets_values": [0.7, 0.0, 1.0], "title": "Apply Canny Control"},
{"id": 8, "type": "CLIPTextEncode", "pos": [450, 600], "widgets_values": ["Detailed scene with precise composition"], "title": "API Positive Prompt"},
{"id": 9, "type": "CLIPTextEncode", "pos": [450, 850], "widgets_values": ["blurry, low quality"], "title": "API Negative Prompt"},
{"id": 10, "type": "EmptyLatentImage", "pos": [800, 700], "widgets_values": [1024, 1024, 1], "title": "API Latent Config"},
{"id": 11, "type": "KSampler", "pos": [1150, 100], "widgets_values": [42, "fixed", 30, 7.5, "dpmpp_2m", "karras", 1], "title": "Multi-ControlNet Sampler"},
{"id": 12, "type": "VAEDecode", "pos": [1500, 100], "title": "VAE Decode"},
{"id": 13, "type": "PreviewImage", "pos": [1800, 100], "title": "Preview Output"},
{"id": 14, "type": "SaveImage", "pos": [1800, 450], "widgets_values": ["controlnet_fusion_output"], "title": "API Image Output"}
{
"id": 1,
"type": "CheckpointLoaderSimple",
"pos": [
50,
100
],
"widgets_values": [
"diffusers/stable-diffusion-xl-base-1.0"
],
"title": "SDXL Checkpoint Loader",
"flags": {},
"order": 0,
"mode": 0,
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"size": {
"0": 350,
"1": 100
}
},
{
"id": 2,
"type": "LoadImage",
"pos": [
50,
300
],
"widgets_values": [
"control_depth.png",
"image"
],
"title": "API Depth Control Image",
"flags": {},
"order": 1,
"mode": 0,
"properties": {
"Node name for S&R": "LoadImage"
},
"size": {
"0": 350,
"1": 100
}
},
{
"id": 3,
"type": "LoadImage",
"pos": [
50,
650
],
"widgets_values": [
"control_canny.png",
"image"
],
"title": "API Canny Control Image",
"flags": {},
"order": 2,
"mode": 0,
"properties": {
"Node name for S&R": "LoadImage"
},
"size": {
"0": 350,
"1": 100
}
},
{
"id": 4,
"type": "ControlNetLoader",
"pos": [
450,
100
],
"widgets_values": [
"control_v11p_sd15_depth"
],
"title": "Depth ControlNet Loader",
"flags": {},
"order": 3,
"mode": 0,
"properties": {
"Node name for S&R": "ControlNetLoader"
},
"size": {
"0": 350,
"1": 100
}
},
{
"id": 5,
"type": "ControlNetLoader",
"pos": [
450,
300
],
"widgets_values": [
"control_v11p_sd15_canny"
],
"title": "Canny ControlNet Loader",
"flags": {},
"order": 4,
"mode": 0,
"properties": {
"Node name for S&R": "ControlNetLoader"
},
"size": {
"0": 350,
"1": 100
}
},
{
"id": 6,
"type": "ControlNetApplyAdvanced",
"pos": [
800,
100
],
"widgets_values": [
0.8,
0.0,
1.0
],
"title": "Apply Depth Control",
"flags": {},
"order": 5,
"mode": 0,
"properties": {
"Node name for S&R": "ControlNetApplyAdvanced"
},
"size": {
"0": 315,
"1": 100
}
},
{
"id": 7,
"type": "ControlNetApplyAdvanced",
"pos": [
800,
350
],
"widgets_values": [
0.7,
0.0,
1.0
],
"title": "Apply Canny Control",
"flags": {},
"order": 6,
"mode": 0,
"properties": {
"Node name for S&R": "ControlNetApplyAdvanced"
},
"size": {
"0": 315,
"1": 100
}
},
{
"id": 8,
"type": "CLIPTextEncode",
"pos": [
450,
600
],
"widgets_values": [
"Detailed scene with precise composition"
],
"title": "API Positive Prompt",
"flags": {},
"order": 7,
"mode": 0,
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"size": {
"0": 400,
"1": 200
}
},
{
"id": 9,
"type": "CLIPTextEncode",
"pos": [
450,
850
],
"widgets_values": [
"blurry, low quality"
],
"title": "API Negative Prompt",
"flags": {},
"order": 8,
"mode": 0,
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"size": {
"0": 400,
"1": 200
}
},
{
"id": 10,
"type": "EmptyLatentImage",
"pos": [
800,
700
],
"widgets_values": [
1024,
1024,
1
],
"title": "API Latent Config",
"flags": {},
"order": 9,
"mode": 0,
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"size": {
"0": 315,
"1": 100
}
},
{
"id": 11,
"type": "KSampler",
"pos": [
1150,
100
],
"widgets_values": [
42,
"fixed",
30,
7.5,
"dpmpp_2m",
"karras",
1
],
"title": "Multi-ControlNet Sampler",
"flags": {},
"order": 10,
"mode": 0,
"properties": {
"Node name for S&R": "KSampler"
},
"size": {
"0": 315,
"1": 474
}
},
{
"id": 12,
"type": "VAEDecode",
"pos": [
1500,
100
],
"title": "VAE Decode",
"flags": {},
"order": 11,
"mode": 0,
"properties": {
"Node name for S&R": "VAEDecode"
},
"size": {
"0": 315,
"1": 100
}
},
{
"id": 13,
"type": "PreviewImage",
"pos": [
1800,
100
],
"title": "Preview Output",
"flags": {},
"order": 12,
"mode": 0,
"properties": {
"Node name for S&R": "PreviewImage"
},
"size": {
"0": 315,
"1": 100
}
},
{
"id": 14,
"type": "SaveImage",
"pos": [
1800,
450
],
"widgets_values": [
"controlnet_fusion_output"
],
"title": "API Image Output",
"flags": {},
"order": 13,
"mode": 0,
"properties": {
"Node name for S&R": "SaveImage"
},
"size": {
"0": 315,
"1": 100
}
}
],
"extra": {
"workflow_info": {
@@ -22,17 +324,57 @@
"version": "1.0.0",
"description": "Multi-ControlNet workflow for precise composition control. Combine depth, canny, pose, or other controls for exact image generation.",
"category": "advanced",
"tags": ["controlnet", "multi-control", "fusion", "advanced", "production"],
"requirements": {"models": ["stable-diffusion-xl-base-1.0", "controlnet-depth", "controlnet-canny"], "custom_nodes": ["ComfyUI-Advanced-ControlNet"], "vram_min": "20GB"},
"parameters": {
"depth_control": {"node_id": 2, "type": "image", "required": false},
"canny_control": {"node_id": 3, "type": "image", "required": false},
"depth_strength": {"node_id": 6, "type": "float", "default": 0.8},
"canny_strength": {"node_id": 7, "type": "float", "default": 0.7}
"tags": [
"controlnet",
"multi-control",
"fusion",
"advanced",
"production"
],
"requirements": {
"models": [
"stable-diffusion-xl-base-1.0",
"controlnet-depth",
"controlnet-canny"
],
"custom_nodes": [
"ComfyUI-Advanced-ControlNet"
],
"vram_min": "20GB"
},
"performance": {"avg_generation_time": "45-70 seconds", "vram_usage": "~18-22GB"},
"use_cases": ["Architectural visualization", "Product photography", "Precise composition control", "3D-to-2D rendering"]
"parameters": {
"depth_control": {
"node_id": 2,
"type": "image",
"required": false
},
"canny_control": {
"node_id": 3,
"type": "image",
"required": false
},
"depth_strength": {
"node_id": 6,
"type": "float",
"default": 0.8
},
"canny_strength": {
"node_id": 7,
"type": "float",
"default": 0.7
}
},
"performance": {
"avg_generation_time": "45-70 seconds",
"vram_usage": "~18-22GB"
},
"use_cases": [
"Architectural visualization",
"Product photography",
"Precise composition control",
"3D-to-2D rendering"
]
}
},
"version": 0.4
}
}