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,16 +1,224 @@
{
"last_node_id": 14,
"nodes": [
{"id": 1, "type": "CheckpointLoaderSimple", "pos": [50, 100], "widgets_values": ["diffusers/FLUX.1-schnell"], "title": "FLUX Schnell Loader"},
{"id": 2, "type": "CLIPTextEncode", "pos": [450, 100], "widgets_values": ["A beautiful landscape"], "title": "API Base Prompt"},
{"id": 3, "type": "CLIPTextEncode", "pos": [450, 300], "widgets_values": ["blurry, low quality"], "title": "API Negative Prompt"},
{"id": 4, "type": "SeedGenerator", "pos": [450, 500], "widgets_values": [4, 42], "title": "Generate 4 Seeds"},
{"id": 5, "type": "EmptyLatentImage", "pos": [450, 700], "widgets_values": [1024, 1024, 1], "title": "API Latent Config"},
{"id": 6, "type": "BatchKSampler", "pos": [800, 100], "widgets_values": ["fixed", 4, 1.0, "euler", "normal"], "title": "Batch Sampler (4 variations)"},
{"id": 7, "type": "VAEDecode", "pos": [1150, 100], "title": "VAE Decode Batch"},
{"id": 8, "type": "ImageBatchToList", "pos": [1450, 100], "title": "Split to Individual Images"},
{"id": 9, "type": "PreviewImage", "pos": [1750, 100], "title": "Preview All Variations"},
{"id": 10, "type": "SaveImage", "pos": [1750, 450], "widgets_values": ["batch_output"], "title": "API Save All"}
{
"id": 1,
"type": "CheckpointLoaderSimple",
"pos": [
50,
100
],
"widgets_values": [
"diffusers/FLUX.1-schnell"
],
"title": "FLUX Schnell Loader",
"flags": {},
"order": 0,
"mode": 0,
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"size": {
"0": 350,
"1": 100
}
},
{
"id": 2,
"type": "CLIPTextEncode",
"pos": [
450,
100
],
"widgets_values": [
"A beautiful landscape"
],
"title": "API Base Prompt",
"flags": {},
"order": 1,
"mode": 0,
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"size": {
"0": 400,
"1": 200
}
},
{
"id": 3,
"type": "CLIPTextEncode",
"pos": [
450,
300
],
"widgets_values": [
"blurry, low quality"
],
"title": "API Negative Prompt",
"flags": {},
"order": 2,
"mode": 0,
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"size": {
"0": 400,
"1": 200
}
},
{
"id": 4,
"type": "SeedGenerator",
"pos": [
450,
500
],
"widgets_values": [
4,
42
],
"title": "Generate 4 Seeds",
"flags": {},
"order": 3,
"mode": 0,
"properties": {
"Node name for S&R": "SeedGenerator"
},
"size": {
"0": 315,
"1": 100
}
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
450,
700
],
"widgets_values": [
1024,
1024,
1
],
"title": "API Latent Config",
"flags": {},
"order": 4,
"mode": 0,
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"size": {
"0": 315,
"1": 100
}
},
{
"id": 6,
"type": "BatchKSampler",
"pos": [
800,
100
],
"widgets_values": [
"fixed",
4,
1.0,
"euler",
"normal"
],
"title": "Batch Sampler (4 variations)",
"flags": {},
"order": 5,
"mode": 0,
"properties": {
"Node name for S&R": "BatchKSampler"
},
"size": {
"0": 315,
"1": 474
}
},
{
"id": 7,
"type": "VAEDecode",
"pos": [
1150,
100
],
"title": "VAE Decode Batch",
"flags": {},
"order": 6,
"mode": 0,
"properties": {
"Node name for S&R": "VAEDecode"
},
"size": {
"0": 315,
"1": 100
}
},
{
"id": 8,
"type": "ImageBatchToList",
"pos": [
1450,
100
],
"title": "Split to Individual Images",
"flags": {},
"order": 7,
"mode": 0,
"properties": {
"Node name for S&R": "ImageBatchToList"
},
"size": {
"0": 315,
"1": 100
}
},
{
"id": 9,
"type": "PreviewImage",
"pos": [
1750,
100
],
"title": "Preview All Variations",
"flags": {},
"order": 8,
"mode": 0,
"properties": {
"Node name for S&R": "PreviewImage"
},
"size": {
"0": 315,
"1": 100
}
},
{
"id": 10,
"type": "SaveImage",
"pos": [
1750,
450
],
"widgets_values": [
"batch_output"
],
"title": "API Save All",
"flags": {},
"order": 9,
"mode": 0,
"properties": {
"Node name for S&R": "SaveImage"
},
"size": {
"0": 315,
"1": 100
}
}
],
"extra": {
"workflow_info": {
@@ -18,16 +226,49 @@
"version": "1.0.0",
"description": "Batch generation pipeline for multiple variations. Generate 4+ images simultaneously with different seeds for rapid iteration.",
"category": "advanced",
"tags": ["batch", "multi-generation", "variations", "advanced", "production"],
"requirements": {"models": ["FLUX.1-schnell"], "custom_nodes": [], "vram_min": "20GB"},
"parameters": {
"prompt": {"node_id": 2, "type": "string", "required": true},
"batch_count": {"node_id": 4, "type": "integer", "default": 4, "description": "Number of variations"},
"base_seed": {"node_id": 4, "type": "integer", "default": 42}
"tags": [
"batch",
"multi-generation",
"variations",
"advanced",
"production"
],
"requirements": {
"models": [
"FLUX.1-schnell"
],
"custom_nodes": [],
"vram_min": "20GB"
},
"performance": {"avg_generation_time": "20-30 seconds for 4 images", "vram_usage": "~18-22GB"},
"use_cases": ["Rapid prototyping", "Concept exploration", "A/B testing", "Client presentations with options"]
"parameters": {
"prompt": {
"node_id": 2,
"type": "string",
"required": true
},
"batch_count": {
"node_id": 4,
"type": "integer",
"default": 4,
"description": "Number of variations"
},
"base_seed": {
"node_id": 4,
"type": "integer",
"default": 42
}
},
"performance": {
"avg_generation_time": "20-30 seconds for 4 images",
"vram_usage": "~18-22GB"
},
"use_cases": [
"Rapid prototyping",
"Concept exploration",
"A/B testing",
"Client presentations with options"
]
}
},
"version": 0.4
}
}