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,12 +1,134 @@
|
||||
{
|
||||
"last_node_id": 6,
|
||||
"nodes": [
|
||||
{"id": 1, "type": "LoadImage", "pos": [50, 100], "widgets_values": ["input_image.png", "image"], "title": "API Input Image"},
|
||||
{"id": 2, "type": "UpscaleModelLoader", "pos": [50, 400], "widgets_values": ["RealESRGAN_x4.pth"], "title": "Upscale Model Loader"},
|
||||
{"id": 3, "type": "ImageUpscaleWithModel", "pos": [450, 100], "title": "Upscale with Model (4x)"},
|
||||
{"id": 4, "type": "ImageScale", "pos": [800, 100], "widgets_values": ["lanczos", 2], "title": "Optional Downscale to 2x"},
|
||||
{"id": 5, "type": "PreviewImage", "pos": [1150, 100], "title": "Preview Output"},
|
||||
{"id": 6, "type": "SaveImage", "pos": [1150, 400], "widgets_values": ["simple_upscale_output"], "title": "API Image Output"}
|
||||
{
|
||||
"id": 1,
|
||||
"type": "LoadImage",
|
||||
"pos": [
|
||||
50,
|
||||
100
|
||||
],
|
||||
"widgets_values": [
|
||||
"input_image.png",
|
||||
"image"
|
||||
],
|
||||
"title": "API Input Image",
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "LoadImage"
|
||||
},
|
||||
"size": {
|
||||
"0": 350,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": "UpscaleModelLoader",
|
||||
"pos": [
|
||||
50,
|
||||
400
|
||||
],
|
||||
"widgets_values": [
|
||||
"RealESRGAN_x4.pth"
|
||||
],
|
||||
"title": "Upscale Model Loader",
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "UpscaleModelLoader"
|
||||
},
|
||||
"size": {
|
||||
"0": 350,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": "ImageUpscaleWithModel",
|
||||
"pos": [
|
||||
450,
|
||||
100
|
||||
],
|
||||
"title": "Upscale with Model (4x)",
|
||||
"flags": {},
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "ImageUpscaleWithModel"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": "ImageScale",
|
||||
"pos": [
|
||||
800,
|
||||
100
|
||||
],
|
||||
"widgets_values": [
|
||||
"lanczos",
|
||||
2
|
||||
],
|
||||
"title": "Optional Downscale to 2x",
|
||||
"flags": {},
|
||||
"order": 3,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "ImageScale"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": "PreviewImage",
|
||||
"pos": [
|
||||
1150,
|
||||
100
|
||||
],
|
||||
"title": "Preview Output",
|
||||
"flags": {},
|
||||
"order": 4,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "PreviewImage"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": "SaveImage",
|
||||
"pos": [
|
||||
1150,
|
||||
400
|
||||
],
|
||||
"widgets_values": [
|
||||
"simple_upscale_output"
|
||||
],
|
||||
"title": "API Image Output",
|
||||
"flags": {},
|
||||
"order": 5,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "SaveImage"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
}
|
||||
],
|
||||
"extra": {
|
||||
"workflow_info": {
|
||||
@@ -14,15 +136,45 @@
|
||||
"version": "1.0.0",
|
||||
"description": "Fast, straightforward upscaling using RealESRGAN. No diffusion refinement, optimized for speed.",
|
||||
"category": "upscaling",
|
||||
"tags": ["simple-upscale", "fast", "realesrgan", "production"],
|
||||
"requirements": {"models": ["RealESRGAN"], "custom_nodes": [], "vram_min": "8GB"},
|
||||
"parameters": {
|
||||
"input_image": {"node_id": 1, "type": "image", "required": true},
|
||||
"model": {"node_id": 2, "type": "string", "default": "RealESRGAN_x4.pth", "options": ["RealESRGAN_x2.pth", "RealESRGAN_x4.pth"]},
|
||||
"final_scale": {"node_id": 4, "type": "integer", "default": 2}
|
||||
"tags": [
|
||||
"simple-upscale",
|
||||
"fast",
|
||||
"realesrgan",
|
||||
"production"
|
||||
],
|
||||
"requirements": {
|
||||
"models": [
|
||||
"RealESRGAN"
|
||||
],
|
||||
"custom_nodes": [],
|
||||
"vram_min": "8GB"
|
||||
},
|
||||
"performance": {"avg_generation_time": "5-15 seconds", "vram_usage": "~6-8GB"}
|
||||
"parameters": {
|
||||
"input_image": {
|
||||
"node_id": 1,
|
||||
"type": "image",
|
||||
"required": true
|
||||
},
|
||||
"model": {
|
||||
"node_id": 2,
|
||||
"type": "string",
|
||||
"default": "RealESRGAN_x4.pth",
|
||||
"options": [
|
||||
"RealESRGAN_x2.pth",
|
||||
"RealESRGAN_x4.pth"
|
||||
]
|
||||
},
|
||||
"final_scale": {
|
||||
"node_id": 4,
|
||||
"type": "integer",
|
||||
"default": 2
|
||||
}
|
||||
},
|
||||
"performance": {
|
||||
"avg_generation_time": "5-15 seconds",
|
||||
"vram_usage": "~6-8GB"
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user