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:
@@ -1,16 +1,189 @@
|
||||
{
|
||||
"last_node_id": 12,
|
||||
"nodes": [
|
||||
{"id": 1, "type": "CheckpointLoaderSimple", "pos": [50, 100], "widgets_values": ["diffusers/stable-diffusion-xl-base-1.0"], "title": "SDXL Checkpoint Loader"},
|
||||
{"id": 2, "type": "AnimateDiffLoader", "pos": [50, 300], "widgets_values": ["mm_sd_v15_v2.ckpt"], "title": "AnimateDiff Motion Module"},
|
||||
{"id": 3, "type": "CLIPTextEncode", "pos": [450, 100], "widgets_values": ["A person walking through a forest, cinematic movement"], "title": "API Video Prompt"},
|
||||
{"id": 4, "type": "CLIPTextEncode", "pos": [450, 350], "widgets_values": ["static, blurry, low quality"], "title": "API Negative Prompt"},
|
||||
{"id": 5, "type": "EmptyLatentImage", "pos": [450, 600], "widgets_values": [512, 512, 16], "title": "API Latent Config (16 frames)"},
|
||||
{"id": 6, "type": "AnimateDiffSampler", "pos": [800, 100], "widgets_values": [42, "fixed", 25, 7.5, "dpmpp_2m", "karras"], "title": "AnimateDiff Sampler"},
|
||||
{"id": 7, "type": "VAEDecode", "pos": [1150, 100], "title": "VAE Decode Video"},
|
||||
{"id": 8, "type": "VHSVideoCombine", "pos": [1450, 100], "widgets_values": [8, 0, "animatediff_output", "video/h264-mp4"], "title": "Combine Frames"},
|
||||
{"id": 9, "type": "PreviewVideo", "pos": [1750, 100], "title": "Preview Video"},
|
||||
{"id": 10, "type": "SaveVideo", "pos": [1750, 350], "widgets_values": ["animatediff_output"], "title": "API Video 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": "AnimateDiffLoaderV1",
|
||||
"pos": [
|
||||
50,
|
||||
300
|
||||
],
|
||||
"widgets_values": [
|
||||
"mm_sd_v15_v2.ckpt"
|
||||
],
|
||||
"title": "AnimateDiff Motion Module",
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "AnimateDiffLoaderV1"
|
||||
},
|
||||
"size": {
|
||||
"0": 350,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": "CLIPTextEncode",
|
||||
"pos": [
|
||||
450,
|
||||
100
|
||||
],
|
||||
"widgets_values": [
|
||||
"A person walking through a forest, cinematic movement"
|
||||
],
|
||||
"title": "API Video Prompt",
|
||||
"flags": {},
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "CLIPTextEncode"
|
||||
},
|
||||
"size": {
|
||||
"0": 400,
|
||||
"1": 200
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": "CLIPTextEncode",
|
||||
"pos": [
|
||||
450,
|
||||
350
|
||||
],
|
||||
"widgets_values": [
|
||||
"static, blurry, low quality"
|
||||
],
|
||||
"title": "API Negative Prompt",
|
||||
"flags": {},
|
||||
"order": 3,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "CLIPTextEncode"
|
||||
},
|
||||
"size": {
|
||||
"0": 400,
|
||||
"1": 200
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": "EmptyLatentImage",
|
||||
"pos": [
|
||||
450,
|
||||
600
|
||||
],
|
||||
"widgets_values": [
|
||||
512,
|
||||
512,
|
||||
16
|
||||
],
|
||||
"title": "API Latent Config (16 frames)",
|
||||
"flags": {},
|
||||
"order": 4,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "EmptyLatentImage"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": "AnimateDiffSampler",
|
||||
"pos": [
|
||||
800,
|
||||
100
|
||||
],
|
||||
"widgets_values": [
|
||||
42,
|
||||
"fixed",
|
||||
25,
|
||||
7.5,
|
||||
"dpmpp_2m",
|
||||
"karras"
|
||||
],
|
||||
"title": "AnimateDiff Sampler",
|
||||
"flags": {},
|
||||
"order": 5,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "AnimateDiffSampler"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 474
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": "VAEDecode",
|
||||
"pos": [
|
||||
1150,
|
||||
100
|
||||
],
|
||||
"title": "VAE Decode Video",
|
||||
"flags": {},
|
||||
"order": 6,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "VAEDecode"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": "VHS_VideoCombine",
|
||||
"pos": [
|
||||
1450,
|
||||
100
|
||||
],
|
||||
"widgets_values": [
|
||||
8,
|
||||
0,
|
||||
"animatediff_output",
|
||||
"video/h264-mp4"
|
||||
],
|
||||
"title": "Combine Frames",
|
||||
"flags": {},
|
||||
"order": 7,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "VHS_VideoCombine"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
}
|
||||
],
|
||||
"extra": {
|
||||
"workflow_info": {
|
||||
@@ -18,16 +191,55 @@
|
||||
"version": "1.0.0",
|
||||
"description": "Text-to-video generation using AnimateDiff. Create animated sequences from text prompts with natural motion.",
|
||||
"category": "advanced",
|
||||
"tags": ["animatediff", "text-to-video", "animation", "advanced", "production"],
|
||||
"requirements": {"models": ["stable-diffusion-xl-base-1.0", "animatediff-motion-module"], "custom_nodes": ["ComfyUI-AnimateDiff-Evolved", "ComfyUI-VideoHelperSuite"], "vram_min": "18GB"},
|
||||
"parameters": {
|
||||
"prompt": {"node_id": 3, "type": "string", "required": true, "description": "Describe action and movement"},
|
||||
"frames": {"node_id": 5, "type": "integer", "default": 16, "description": "Number of frames (8-32)"},
|
||||
"fps": {"node_id": 8, "type": "integer", "default": 8}
|
||||
"tags": [
|
||||
"animatediff",
|
||||
"text-to-video",
|
||||
"animation",
|
||||
"advanced",
|
||||
"production"
|
||||
],
|
||||
"requirements": {
|
||||
"models": [
|
||||
"stable-diffusion-xl-base-1.0",
|
||||
"animatediff-motion-module"
|
||||
],
|
||||
"custom_nodes": [
|
||||
"ComfyUI-AnimateDiff-Evolved",
|
||||
"ComfyUI-VideoHelperSuite"
|
||||
],
|
||||
"vram_min": "18GB"
|
||||
},
|
||||
"performance": {"avg_generation_time": "60-90 seconds", "vram_usage": "~16-20GB", "output": "16 frames (~2s @ 8fps)"},
|
||||
"use_cases": ["Text-to-video animation", "Character animations", "Motion graphics", "Animated storyboards"]
|
||||
"parameters": {
|
||||
"prompt": {
|
||||
"node_id": 3,
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Describe action and movement"
|
||||
},
|
||||
"frames": {
|
||||
"node_id": 5,
|
||||
"type": "integer",
|
||||
"default": 16,
|
||||
"description": "Number of frames (8-32)"
|
||||
},
|
||||
"fps": {
|
||||
"node_id": 8,
|
||||
"type": "integer",
|
||||
"default": 8
|
||||
}
|
||||
},
|
||||
"performance": {
|
||||
"avg_generation_time": "60-90 seconds",
|
||||
"vram_usage": "~16-20GB",
|
||||
"output": "16 frames (~2s @ 8fps)"
|
||||
},
|
||||
"use_cases": [
|
||||
"Text-to-video animation",
|
||||
"Character animations",
|
||||
"Motion graphics",
|
||||
"Animated storyboards"
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user