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,13 +1,161 @@
|
||||
{
|
||||
"last_node_id": 10,
|
||||
"nodes": [
|
||||
{"id": 1, "type": "LoadImage", "pos": [50, 100], "widgets_values": ["input_portrait.png", "image"], "title": "API Input Portrait"},
|
||||
{"id": 2, "type": "CheckpointLoaderSimple", "pos": [50, 400], "widgets_values": ["diffusers/stable-diffusion-xl-base-1.0"], "title": "SDXL Checkpoint Loader"},
|
||||
{"id": 3, "type": "FaceDetailer", "pos": [450, 100], "widgets_values": ["bbox/face_yolov8m.pt", 512, 0.5, 20, 8.0, 0.35, 10], "title": "Face Detailer"},
|
||||
{"id": 4, "type": "UpscaleModelLoader", "pos": [50, 650], "widgets_values": ["RealESRGAN_x2.pth"], "title": "Face Upscale Model"},
|
||||
{"id": 5, "type": "ImageUpscaleWithModel", "pos": [800, 100], "title": "Upscale Face Regions"},
|
||||
{"id": 6, "type": "PreviewImage", "pos": [1150, 100], "title": "Preview Enhanced"},
|
||||
{"id": 7, "type": "SaveImage", "pos": [1150, 400], "widgets_values": ["face_upscale_output"], "title": "API Image Output"}
|
||||
{
|
||||
"id": 1,
|
||||
"type": "LoadImage",
|
||||
"pos": [
|
||||
50,
|
||||
100
|
||||
],
|
||||
"widgets_values": [
|
||||
"input_portrait.png",
|
||||
"image"
|
||||
],
|
||||
"title": "API Input Portrait",
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "LoadImage"
|
||||
},
|
||||
"size": {
|
||||
"0": 350,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": "CheckpointLoaderSimple",
|
||||
"pos": [
|
||||
50,
|
||||
400
|
||||
],
|
||||
"widgets_values": [
|
||||
"diffusers/stable-diffusion-xl-base-1.0"
|
||||
],
|
||||
"title": "SDXL Checkpoint Loader",
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "CheckpointLoaderSimple"
|
||||
},
|
||||
"size": {
|
||||
"0": 350,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": "FaceDetailer",
|
||||
"pos": [
|
||||
450,
|
||||
100
|
||||
],
|
||||
"widgets_values": [
|
||||
"bbox/face_yolov8m.pt",
|
||||
512,
|
||||
0.5,
|
||||
20,
|
||||
8.0,
|
||||
0.35,
|
||||
10
|
||||
],
|
||||
"title": "Face Detailer",
|
||||
"flags": {},
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "FaceDetailer"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": "UpscaleModelLoader",
|
||||
"pos": [
|
||||
50,
|
||||
650
|
||||
],
|
||||
"widgets_values": [
|
||||
"RealESRGAN_x2.pth"
|
||||
],
|
||||
"title": "Face Upscale Model",
|
||||
"flags": {},
|
||||
"order": 3,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "UpscaleModelLoader"
|
||||
},
|
||||
"size": {
|
||||
"0": 350,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": "ImageUpscaleWithModel",
|
||||
"pos": [
|
||||
800,
|
||||
100
|
||||
],
|
||||
"title": "Upscale Face Regions",
|
||||
"flags": {},
|
||||
"order": 4,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "ImageUpscaleWithModel"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": "PreviewImage",
|
||||
"pos": [
|
||||
1150,
|
||||
100
|
||||
],
|
||||
"title": "Preview Enhanced",
|
||||
"flags": {},
|
||||
"order": 5,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "PreviewImage"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": "SaveImage",
|
||||
"pos": [
|
||||
1150,
|
||||
400
|
||||
],
|
||||
"widgets_values": [
|
||||
"face_upscale_output"
|
||||
],
|
||||
"title": "API Image Output",
|
||||
"flags": {},
|
||||
"order": 6,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "SaveImage"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
}
|
||||
],
|
||||
"extra": {
|
||||
"workflow_info": {
|
||||
@@ -15,17 +163,58 @@
|
||||
"version": "1.0.0",
|
||||
"description": "Portrait-focused upscaling with FaceDetailer from Impact-Pack. Detects and enhances faces with special attention to facial details.",
|
||||
"category": "upscaling",
|
||||
"tags": ["face-upscale", "portrait", "facedetailer", "impact-pack", "production"],
|
||||
"requirements": {"models": ["stable-diffusion-xl-base-1.0", "face_yolov8m", "RealESRGAN"], "custom_nodes": ["ComfyUI-Impact-Pack"], "vram_min": "14GB"},
|
||||
"parameters": {
|
||||
"input_image": {"node_id": 1, "type": "image", "required": true},
|
||||
"detection_threshold": {"node_id": 3, "type": "float", "default": 0.5, "description": "Face detection confidence"},
|
||||
"detail_steps": {"node_id": 3, "type": "integer", "default": 20},
|
||||
"denoise": {"node_id": 3, "type": "float", "default": 0.35}
|
||||
"tags": [
|
||||
"face-upscale",
|
||||
"portrait",
|
||||
"facedetailer",
|
||||
"impact-pack",
|
||||
"production"
|
||||
],
|
||||
"requirements": {
|
||||
"models": [
|
||||
"stable-diffusion-xl-base-1.0",
|
||||
"face_yolov8m",
|
||||
"RealESRGAN"
|
||||
],
|
||||
"custom_nodes": [
|
||||
"ComfyUI-Impact-Pack"
|
||||
],
|
||||
"vram_min": "14GB"
|
||||
},
|
||||
"performance": {"avg_generation_time": "30-50 seconds", "vram_usage": "~12-16GB"},
|
||||
"use_cases": ["Portrait enhancement", "Professional headshots", "Face restoration", "ID photo upscaling"]
|
||||
"parameters": {
|
||||
"input_image": {
|
||||
"node_id": 1,
|
||||
"type": "image",
|
||||
"required": true
|
||||
},
|
||||
"detection_threshold": {
|
||||
"node_id": 3,
|
||||
"type": "float",
|
||||
"default": 0.5,
|
||||
"description": "Face detection confidence"
|
||||
},
|
||||
"detail_steps": {
|
||||
"node_id": 3,
|
||||
"type": "integer",
|
||||
"default": 20
|
||||
},
|
||||
"denoise": {
|
||||
"node_id": 3,
|
||||
"type": "float",
|
||||
"default": 0.35
|
||||
}
|
||||
},
|
||||
"performance": {
|
||||
"avg_generation_time": "30-50 seconds",
|
||||
"vram_usage": "~12-16GB"
|
||||
},
|
||||
"use_cases": [
|
||||
"Portrait enhancement",
|
||||
"Professional headshots",
|
||||
"Face restoration",
|
||||
"ID photo upscaling"
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user