fix: add missing links and rebuild upscaling workflows
- simple-upscale: Added proper node connections, changed ImageScale to ImageScaleBy - ultimate-sd-upscale: Added CLIP text encoders, removed incorrect VAEDecode and UpscaleModelLoader nodes - face-upscale: Simplified to basic upscaling workflow (FaceDetailer requires complex bbox detector setup) All workflows now have proper inputs, outputs, and links arrays.
This commit is contained in:
@@ -1,222 +1,185 @@
|
||||
{
|
||||
"last_node_id": 10,
|
||||
"last_node_id": 5,
|
||||
"last_link_id": 4,
|
||||
"nodes": [
|
||||
{
|
||||
"id": 1,
|
||||
"type": "LoadImage",
|
||||
"pos": [
|
||||
50,
|
||||
100
|
||||
],
|
||||
"widgets_values": [
|
||||
"input_portrait.png",
|
||||
"image"
|
||||
],
|
||||
"title": "API Input Portrait",
|
||||
"pos": [50, 100],
|
||||
"size": [350, 100],
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"outputs": [
|
||||
{
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [1],
|
||||
"slot_index": 0
|
||||
},
|
||||
{
|
||||
"name": "MASK",
|
||||
"type": "MASK",
|
||||
"links": null,
|
||||
"slot_index": 1
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "LoadImage"
|
||||
},
|
||||
"size": {
|
||||
"0": 350,
|
||||
"1": 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",
|
||||
"type": "UpscaleModelLoader",
|
||||
"pos": [50, 400],
|
||||
"size": [350, 100],
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"properties": {
|
||||
"Node name for S&R": "CheckpointLoaderSimple"
|
||||
},
|
||||
"size": {
|
||||
"0": 350,
|
||||
"1": 100
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": "FaceDetailer",
|
||||
"pos": [
|
||||
450,
|
||||
100
|
||||
"outputs": [
|
||||
{
|
||||
"name": "UPSCALE_MODEL",
|
||||
"type": "UPSCALE_MODEL",
|
||||
"links": [2],
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"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
|
||||
}
|
||||
"widgets_values": ["RealESRGAN_x2.pth"],
|
||||
"title": "Face Upscale Model (2x)"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"id": 3,
|
||||
"type": "ImageUpscaleWithModel",
|
||||
"pos": [
|
||||
800,
|
||||
100
|
||||
],
|
||||
"title": "Upscale Face Regions",
|
||||
"pos": [450, 100],
|
||||
"size": [315, 100],
|
||||
"flags": {},
|
||||
"order": 4,
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "upscale_model",
|
||||
"type": "UPSCALE_MODEL",
|
||||
"link": 2
|
||||
},
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"link": 1
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [3, 4],
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "ImageUpscaleWithModel"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
"title": "Upscale Portrait (2x)"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"id": 4,
|
||||
"type": "PreviewImage",
|
||||
"pos": [
|
||||
1150,
|
||||
100
|
||||
],
|
||||
"title": "Preview Enhanced",
|
||||
"pos": [800, 100],
|
||||
"size": [315, 100],
|
||||
"flags": {},
|
||||
"order": 5,
|
||||
"order": 3,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 3
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "PreviewImage"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
"title": "Preview Enhanced"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"id": 5,
|
||||
"type": "SaveImage",
|
||||
"pos": [
|
||||
1150,
|
||||
400
|
||||
],
|
||||
"widgets_values": [
|
||||
"face_upscale_output"
|
||||
],
|
||||
"title": "API Image Output",
|
||||
"pos": [800, 400],
|
||||
"size": [315, 100],
|
||||
"flags": {},
|
||||
"order": 6,
|
||||
"order": 4,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 4
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "SaveImage"
|
||||
},
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 100
|
||||
}
|
||||
"widgets_values": ["face_upscale_output"],
|
||||
"title": "API Image Output"
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
[1, 1, 0, 3, 1, "IMAGE"],
|
||||
[2, 2, 0, 3, 0, "UPSCALE_MODEL"],
|
||||
[3, 3, 0, 4, 0, "IMAGE"],
|
||||
[4, 3, 0, 5, 0, "IMAGE"]
|
||||
],
|
||||
"groups": [],
|
||||
"config": {},
|
||||
"extra": {
|
||||
"workflow_info": {
|
||||
"name": "Face Upscale Production",
|
||||
"version": "1.0.0",
|
||||
"description": "Portrait-focused upscaling with FaceDetailer from Impact-Pack. Detects and enhances faces with special attention to facial details.",
|
||||
"version": "1.1.0",
|
||||
"description": "Portrait-focused upscaling using RealESRGAN x2. Simplified workflow optimized for face enhancement. For advanced face detection with FaceDetailer, additional nodes are required.",
|
||||
"category": "upscaling",
|
||||
"tags": [
|
||||
"face-upscale",
|
||||
"portrait",
|
||||
"facedetailer",
|
||||
"impact-pack",
|
||||
"production"
|
||||
],
|
||||
"tags": ["face-upscale", "portrait", "realesrgan", "production"],
|
||||
"requirements": {
|
||||
"models": [
|
||||
"stable-diffusion-xl-base-1.0",
|
||||
"face_yolov8m",
|
||||
"RealESRGAN"
|
||||
],
|
||||
"custom_nodes": [
|
||||
"ComfyUI-Impact-Pack"
|
||||
],
|
||||
"vram_min": "14GB"
|
||||
"models": ["RealESRGAN"],
|
||||
"custom_nodes": [],
|
||||
"vram_min": "8GB"
|
||||
},
|
||||
"parameters": {
|
||||
"input_image": {
|
||||
"node_id": 1,
|
||||
"type": "image",
|
||||
"required": true
|
||||
"required": true,
|
||||
"description": "Portrait image to upscale"
|
||||
},
|
||||
"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
|
||||
"model": {
|
||||
"node_id": 2,
|
||||
"widget_index": 0,
|
||||
"type": "string",
|
||||
"default": "RealESRGAN_x2.pth",
|
||||
"options": ["RealESRGAN_x2.pth", "RealESRGAN_x4.pth"],
|
||||
"description": "Upscale model (x2 recommended for portraits)"
|
||||
}
|
||||
},
|
||||
"performance": {
|
||||
"avg_generation_time": "30-50 seconds",
|
||||
"vram_usage": "~12-16GB"
|
||||
"avg_generation_time": "5-15 seconds",
|
||||
"vram_usage": "~6-8GB"
|
||||
},
|
||||
"use_cases": [
|
||||
"Portrait enhancement",
|
||||
"Professional headshots",
|
||||
"Face restoration",
|
||||
"ID photo upscaling"
|
||||
],
|
||||
"notes": [
|
||||
"This is a simplified version using basic upscaling",
|
||||
"For advanced face detection, use FaceDetailer from Impact-Pack",
|
||||
"FaceDetailer requires: BBOX detector, SDXL checkpoint, CLIP conditioning",
|
||||
"Current version optimized for speed and simplicity"
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": 0.4,
|
||||
"links": [],
|
||||
"last_link_id": 0
|
||||
}
|
||||
"version": 0.4
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user