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": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"type": "LoadImage",
|
"type": "LoadImage",
|
||||||
"pos": [
|
"pos": [50, 100],
|
||||||
50,
|
"size": [350, 100],
|
||||||
100
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"input_portrait.png",
|
|
||||||
"image"
|
|
||||||
],
|
|
||||||
"title": "API Input Portrait",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "IMAGE",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"links": [1],
|
||||||
|
"slot_index": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "MASK",
|
||||||
|
"type": "MASK",
|
||||||
|
"links": null,
|
||||||
|
"slot_index": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "LoadImage"
|
"Node name for S&R": "LoadImage"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": ["input_portrait.png", "image"],
|
||||||
"0": 350,
|
"title": "API Input Portrait"
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 2,
|
"id": 2,
|
||||||
"type": "CheckpointLoaderSimple",
|
"type": "UpscaleModelLoader",
|
||||||
"pos": [
|
"pos": [50, 400],
|
||||||
50,
|
"size": [350, 100],
|
||||||
400
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"diffusers/stable-diffusion-xl-base-1.0"
|
|
||||||
],
|
|
||||||
"title": "SDXL Checkpoint Loader",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 1,
|
"order": 1,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
"properties": {
|
"outputs": [
|
||||||
"Node name for S&R": "CheckpointLoaderSimple"
|
{
|
||||||
},
|
"name": "UPSCALE_MODEL",
|
||||||
"size": {
|
"type": "UPSCALE_MODEL",
|
||||||
"0": 350,
|
"links": [2],
|
||||||
"1": 100
|
"slot_index": 0
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"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": {
|
"properties": {
|
||||||
"Node name for S&R": "UpscaleModelLoader"
|
"Node name for S&R": "UpscaleModelLoader"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": ["RealESRGAN_x2.pth"],
|
||||||
"0": 350,
|
"title": "Face Upscale Model (2x)"
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 5,
|
"id": 3,
|
||||||
"type": "ImageUpscaleWithModel",
|
"type": "ImageUpscaleWithModel",
|
||||||
"pos": [
|
"pos": [450, 100],
|
||||||
800,
|
"size": [315, 100],
|
||||||
100
|
|
||||||
],
|
|
||||||
"title": "Upscale Face Regions",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 4,
|
"order": 2,
|
||||||
"mode": 0,
|
"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": {
|
"properties": {
|
||||||
"Node name for S&R": "ImageUpscaleWithModel"
|
"Node name for S&R": "ImageUpscaleWithModel"
|
||||||
},
|
},
|
||||||
"size": {
|
"title": "Upscale Portrait (2x)"
|
||||||
"0": 315,
|
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 6,
|
"id": 4,
|
||||||
"type": "PreviewImage",
|
"type": "PreviewImage",
|
||||||
"pos": [
|
"pos": [800, 100],
|
||||||
1150,
|
"size": [315, 100],
|
||||||
100
|
|
||||||
],
|
|
||||||
"title": "Preview Enhanced",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 5,
|
"order": 3,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"name": "images",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"link": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "PreviewImage"
|
"Node name for S&R": "PreviewImage"
|
||||||
},
|
},
|
||||||
"size": {
|
"title": "Preview Enhanced"
|
||||||
"0": 315,
|
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 7,
|
"id": 5,
|
||||||
"type": "SaveImage",
|
"type": "SaveImage",
|
||||||
"pos": [
|
"pos": [800, 400],
|
||||||
1150,
|
"size": [315, 100],
|
||||||
400
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"face_upscale_output"
|
|
||||||
],
|
|
||||||
"title": "API Image Output",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 6,
|
"order": 4,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"name": "images",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"link": 4
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "SaveImage"
|
"Node name for S&R": "SaveImage"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": ["face_upscale_output"],
|
||||||
"0": 315,
|
"title": "API Image Output"
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"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": {
|
"extra": {
|
||||||
"workflow_info": {
|
"workflow_info": {
|
||||||
"name": "Face Upscale Production",
|
"name": "Face Upscale Production",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"description": "Portrait-focused upscaling with FaceDetailer from Impact-Pack. Detects and enhances faces with special attention to facial details.",
|
"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",
|
"category": "upscaling",
|
||||||
"tags": [
|
"tags": ["face-upscale", "portrait", "realesrgan", "production"],
|
||||||
"face-upscale",
|
|
||||||
"portrait",
|
|
||||||
"facedetailer",
|
|
||||||
"impact-pack",
|
|
||||||
"production"
|
|
||||||
],
|
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"models": [
|
"models": ["RealESRGAN"],
|
||||||
"stable-diffusion-xl-base-1.0",
|
"custom_nodes": [],
|
||||||
"face_yolov8m",
|
"vram_min": "8GB"
|
||||||
"RealESRGAN"
|
|
||||||
],
|
|
||||||
"custom_nodes": [
|
|
||||||
"ComfyUI-Impact-Pack"
|
|
||||||
],
|
|
||||||
"vram_min": "14GB"
|
|
||||||
},
|
},
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"input_image": {
|
"input_image": {
|
||||||
"node_id": 1,
|
"node_id": 1,
|
||||||
"type": "image",
|
"type": "image",
|
||||||
"required": true
|
"required": true,
|
||||||
|
"description": "Portrait image to upscale"
|
||||||
},
|
},
|
||||||
"detection_threshold": {
|
"model": {
|
||||||
"node_id": 3,
|
"node_id": 2,
|
||||||
"type": "float",
|
"widget_index": 0,
|
||||||
"default": 0.5,
|
"type": "string",
|
||||||
"description": "Face detection confidence"
|
"default": "RealESRGAN_x2.pth",
|
||||||
},
|
"options": ["RealESRGAN_x2.pth", "RealESRGAN_x4.pth"],
|
||||||
"detail_steps": {
|
"description": "Upscale model (x2 recommended for portraits)"
|
||||||
"node_id": 3,
|
|
||||||
"type": "integer",
|
|
||||||
"default": 20
|
|
||||||
},
|
|
||||||
"denoise": {
|
|
||||||
"node_id": 3,
|
|
||||||
"type": "float",
|
|
||||||
"default": 0.35
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"performance": {
|
"performance": {
|
||||||
"avg_generation_time": "30-50 seconds",
|
"avg_generation_time": "5-15 seconds",
|
||||||
"vram_usage": "~12-16GB"
|
"vram_usage": "~6-8GB"
|
||||||
},
|
},
|
||||||
"use_cases": [
|
"use_cases": [
|
||||||
"Portrait enhancement",
|
"Portrait enhancement",
|
||||||
"Professional headshots",
|
"Professional headshots",
|
||||||
"Face restoration",
|
"Face restoration",
|
||||||
"ID photo upscaling"
|
"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,
|
"version": 0.4
|
||||||
"links": [],
|
}
|
||||||
"last_link_id": 0
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,151 +1,179 @@
|
|||||||
{
|
{
|
||||||
"last_node_id": 6,
|
"last_node_id": 6,
|
||||||
|
"last_link_id": 5,
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"type": "LoadImage",
|
"type": "LoadImage",
|
||||||
"pos": [
|
"pos": [50, 100],
|
||||||
50,
|
"size": [350, 100],
|
||||||
100
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"input_image.png",
|
|
||||||
"image"
|
|
||||||
],
|
|
||||||
"title": "API Input Image",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "IMAGE",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"links": [1],
|
||||||
|
"slot_index": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "MASK",
|
||||||
|
"type": "MASK",
|
||||||
|
"links": null,
|
||||||
|
"slot_index": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "LoadImage"
|
"Node name for S&R": "LoadImage"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": ["input_image.png", "image"],
|
||||||
"0": 350,
|
"title": "API Input Image"
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 2,
|
"id": 2,
|
||||||
"type": "UpscaleModelLoader",
|
"type": "UpscaleModelLoader",
|
||||||
"pos": [
|
"pos": [50, 400],
|
||||||
50,
|
"size": [350, 100],
|
||||||
400
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"RealESRGAN_x4.pth"
|
|
||||||
],
|
|
||||||
"title": "Upscale Model Loader",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 1,
|
"order": 1,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "UPSCALE_MODEL",
|
||||||
|
"type": "UPSCALE_MODEL",
|
||||||
|
"links": [2],
|
||||||
|
"slot_index": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "UpscaleModelLoader"
|
"Node name for S&R": "UpscaleModelLoader"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": ["RealESRGAN_x4.pth"],
|
||||||
"0": 350,
|
"title": "Upscale Model Loader"
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 3,
|
"id": 3,
|
||||||
"type": "ImageUpscaleWithModel",
|
"type": "ImageUpscaleWithModel",
|
||||||
"pos": [
|
"pos": [450, 100],
|
||||||
450,
|
"size": [315, 100],
|
||||||
100
|
|
||||||
],
|
|
||||||
"title": "Upscale with Model (4x)",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 2,
|
"order": 2,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"name": "upscale_model",
|
||||||
|
"type": "UPSCALE_MODEL",
|
||||||
|
"link": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "image",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"link": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "IMAGE",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"links": [3],
|
||||||
|
"slot_index": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "ImageUpscaleWithModel"
|
"Node name for S&R": "ImageUpscaleWithModel"
|
||||||
},
|
},
|
||||||
"size": {
|
"title": "Upscale with Model (4x)"
|
||||||
"0": 315,
|
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 4,
|
"id": 4,
|
||||||
"type": "ImageScale",
|
"type": "ImageScaleBy",
|
||||||
"pos": [
|
"pos": [800, 100],
|
||||||
800,
|
"size": [315, 100],
|
||||||
100
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"lanczos",
|
|
||||||
2
|
|
||||||
],
|
|
||||||
"title": "Optional Downscale to 2x",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 3,
|
"order": 3,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"name": "image",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"link": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "IMAGE",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"links": [4, 5],
|
||||||
|
"slot_index": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "ImageScale"
|
"Node name for S&R": "ImageScaleBy"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": ["lanczos", 0.5],
|
||||||
"0": 315,
|
"title": "Optional Downscale to 2x"
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 5,
|
"id": 5,
|
||||||
"type": "PreviewImage",
|
"type": "PreviewImage",
|
||||||
"pos": [
|
"pos": [1150, 100],
|
||||||
1150,
|
"size": [315, 100],
|
||||||
100
|
|
||||||
],
|
|
||||||
"title": "Preview Output",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 4,
|
"order": 4,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"name": "images",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"link": 4
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "PreviewImage"
|
"Node name for S&R": "PreviewImage"
|
||||||
},
|
},
|
||||||
"size": {
|
"title": "Preview Output"
|
||||||
"0": 315,
|
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 6,
|
"id": 6,
|
||||||
"type": "SaveImage",
|
"type": "SaveImage",
|
||||||
"pos": [
|
"pos": [1150, 400],
|
||||||
1150,
|
"size": [315, 100],
|
||||||
400
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"simple_upscale_output"
|
|
||||||
],
|
|
||||||
"title": "API Image Output",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 5,
|
"order": 5,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"name": "images",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"link": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "SaveImage"
|
"Node name for S&R": "SaveImage"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": ["simple_upscale_output"],
|
||||||
"0": 315,
|
"title": "API Image Output"
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"links": [
|
||||||
|
[1, 1, 0, 3, 1, "IMAGE"],
|
||||||
|
[2, 2, 0, 3, 0, "UPSCALE_MODEL"],
|
||||||
|
[3, 3, 0, 4, 0, "IMAGE"],
|
||||||
|
[4, 4, 0, 5, 0, "IMAGE"],
|
||||||
|
[5, 4, 0, 6, 0, "IMAGE"]
|
||||||
|
],
|
||||||
|
"groups": [],
|
||||||
|
"config": {},
|
||||||
"extra": {
|
"extra": {
|
||||||
"workflow_info": {
|
"workflow_info": {
|
||||||
"name": "Simple Upscale Production",
|
"name": "Simple Upscale Production",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Fast, straightforward upscaling using RealESRGAN. No diffusion refinement, optimized for speed.",
|
"description": "Fast, straightforward upscaling using RealESRGAN. No diffusion refinement, optimized for speed.",
|
||||||
"category": "upscaling",
|
"category": "upscaling",
|
||||||
"tags": [
|
"tags": ["simple-upscale", "fast", "realesrgan", "production"],
|
||||||
"simple-upscale",
|
|
||||||
"fast",
|
|
||||||
"realesrgan",
|
|
||||||
"production"
|
|
||||||
],
|
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"models": [
|
"models": ["RealESRGAN"],
|
||||||
"RealESRGAN"
|
|
||||||
],
|
|
||||||
"custom_nodes": [],
|
"custom_nodes": [],
|
||||||
"vram_min": "8GB"
|
"vram_min": "8GB"
|
||||||
},
|
},
|
||||||
@@ -159,15 +187,14 @@
|
|||||||
"node_id": 2,
|
"node_id": 2,
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "RealESRGAN_x4.pth",
|
"default": "RealESRGAN_x4.pth",
|
||||||
"options": [
|
"options": ["RealESRGAN_x2.pth", "RealESRGAN_x4.pth"]
|
||||||
"RealESRGAN_x2.pth",
|
|
||||||
"RealESRGAN_x4.pth"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"final_scale": {
|
"final_scale": {
|
||||||
"node_id": 4,
|
"node_id": 4,
|
||||||
"type": "integer",
|
"widget_index": 1,
|
||||||
"default": 2
|
"type": "float",
|
||||||
|
"default": 0.5,
|
||||||
|
"description": "Scale factor after 4x upscale (0.5 = final 2x, 1.0 = keep 4x)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"performance": {
|
"performance": {
|
||||||
@@ -176,7 +203,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": 0.4,
|
"version": 0.4
|
||||||
"links": [],
|
}
|
||||||
"last_link_id": 0
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,227 +1,241 @@
|
|||||||
{
|
{
|
||||||
"last_node_id": 12,
|
"last_node_id": 7,
|
||||||
|
"last_link_id": 8,
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"type": "LoadImage",
|
"type": "LoadImage",
|
||||||
"pos": [
|
"pos": [50, 100],
|
||||||
50,
|
"size": [350, 100],
|
||||||
100
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"input_image.png",
|
|
||||||
"image"
|
|
||||||
],
|
|
||||||
"title": "API Input Image",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "IMAGE",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"links": [1],
|
||||||
|
"slot_index": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "MASK",
|
||||||
|
"type": "MASK",
|
||||||
|
"links": null,
|
||||||
|
"slot_index": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "LoadImage"
|
"Node name for S&R": "LoadImage"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": ["input_image.png", "image"],
|
||||||
"0": 350,
|
"title": "API Input Image"
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 2,
|
"id": 2,
|
||||||
"type": "CheckpointLoaderSimple",
|
"type": "CheckpointLoaderSimple",
|
||||||
"pos": [
|
"pos": [50, 400],
|
||||||
50,
|
"size": [350, 100],
|
||||||
400
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"diffusers/stable-diffusion-xl-base-1.0"
|
|
||||||
],
|
|
||||||
"title": "SDXL Checkpoint Loader",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 1,
|
"order": 1,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "MODEL",
|
||||||
|
"type": "MODEL",
|
||||||
|
"links": [2],
|
||||||
|
"slot_index": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "CLIP",
|
||||||
|
"type": "CLIP",
|
||||||
|
"links": [3, 4],
|
||||||
|
"slot_index": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "VAE",
|
||||||
|
"type": "VAE",
|
||||||
|
"links": [5],
|
||||||
|
"slot_index": 2
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "CheckpointLoaderSimple"
|
"Node name for S&R": "CheckpointLoaderSimple"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": ["sd_xl_base_1.0.safetensors"],
|
||||||
"0": 350,
|
"title": "SDXL Checkpoint Loader"
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 3,
|
"id": 3,
|
||||||
"type": "UpscaleModelLoader",
|
"type": "CLIPTextEncode",
|
||||||
"pos": [
|
"pos": [450, 100],
|
||||||
50,
|
"size": [400, 200],
|
||||||
600
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"RealESRGAN_x2.pth"
|
|
||||||
],
|
|
||||||
"title": "Upscale Model Loader",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 2,
|
"order": 2,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"name": "clip",
|
||||||
|
"type": "CLIP",
|
||||||
|
"link": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "CONDITIONING",
|
||||||
|
"type": "CONDITIONING",
|
||||||
|
"links": [6],
|
||||||
|
"slot_index": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "UpscaleModelLoader"
|
"Node name for S&R": "CLIPTextEncode"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": ["high quality, detailed, sharp"],
|
||||||
"0": 350,
|
"title": "API Positive Prompt"
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 4,
|
"id": 4,
|
||||||
"type": "CLIPTextEncode",
|
"type": "CLIPTextEncode",
|
||||||
"pos": [
|
"pos": [450, 350],
|
||||||
450,
|
"size": [400, 200],
|
||||||
100
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"high quality, detailed, sharp"
|
|
||||||
],
|
|
||||||
"title": "API Positive Prompt",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 3,
|
"order": 3,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"name": "clip",
|
||||||
|
"type": "CLIP",
|
||||||
|
"link": 4
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "CONDITIONING",
|
||||||
|
"type": "CONDITIONING",
|
||||||
|
"links": [7],
|
||||||
|
"slot_index": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "CLIPTextEncode"
|
"Node name for S&R": "CLIPTextEncode"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": ["blurry, low quality"],
|
||||||
"0": 400,
|
"title": "API Negative Prompt"
|
||||||
"1": 200
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 5,
|
"id": 5,
|
||||||
"type": "CLIPTextEncode",
|
"type": "UltimateSDUpscale",
|
||||||
"pos": [
|
"pos": [900, 100],
|
||||||
450,
|
"size": [315, 100],
|
||||||
300
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"blurry, low quality"
|
|
||||||
],
|
|
||||||
"title": "API Negative Prompt",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 4,
|
"order": 4,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
"properties": {
|
"inputs": [
|
||||||
"Node name for S&R": "CLIPTextEncode"
|
{
|
||||||
},
|
"name": "image",
|
||||||
"size": {
|
"type": "IMAGE",
|
||||||
"0": 400,
|
"link": 1
|
||||||
"1": 200
|
},
|
||||||
}
|
{
|
||||||
},
|
"name": "model",
|
||||||
{
|
"type": "MODEL",
|
||||||
"id": 6,
|
"link": 2
|
||||||
"type": "UltimateSDUpscale",
|
},
|
||||||
"pos": [
|
{
|
||||||
800,
|
"name": "positive",
|
||||||
100
|
"type": "CONDITIONING",
|
||||||
|
"link": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "negative",
|
||||||
|
"type": "CONDITIONING",
|
||||||
|
"link": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vae",
|
||||||
|
"type": "VAE",
|
||||||
|
"link": 5
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"widgets_values": [
|
"outputs": [
|
||||||
2,
|
{
|
||||||
42,
|
"name": "IMAGE",
|
||||||
20,
|
"type": "IMAGE",
|
||||||
8.0,
|
"links": [8, 9],
|
||||||
"dpmpp_2m",
|
"slot_index": 0
|
||||||
"karras",
|
}
|
||||||
0.3,
|
|
||||||
"Linear",
|
|
||||||
512,
|
|
||||||
64
|
|
||||||
],
|
],
|
||||||
"title": "Ultimate SD Upscale (2x)",
|
|
||||||
"flags": {},
|
|
||||||
"order": 5,
|
|
||||||
"mode": 0,
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "UltimateSDUpscale"
|
"Node name for S&R": "UltimateSDUpscale"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": [2, 42, 20, 8.0, "dpmpp_2m", "karras", 0.3, "Linear", 512, 64],
|
||||||
"0": 315,
|
"title": "Ultimate SD Upscale (2x)"
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 7,
|
"id": 6,
|
||||||
"type": "VAEDecode",
|
|
||||||
"pos": [
|
|
||||||
1150,
|
|
||||||
100
|
|
||||||
],
|
|
||||||
"title": "VAE Decode",
|
|
||||||
"flags": {},
|
|
||||||
"order": 6,
|
|
||||||
"mode": 0,
|
|
||||||
"properties": {
|
|
||||||
"Node name for S&R": "VAEDecode"
|
|
||||||
},
|
|
||||||
"size": {
|
|
||||||
"0": 315,
|
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 8,
|
|
||||||
"type": "PreviewImage",
|
"type": "PreviewImage",
|
||||||
"pos": [
|
"pos": [1270, 100],
|
||||||
1450,
|
"size": [315, 100],
|
||||||
100
|
|
||||||
],
|
|
||||||
"title": "Preview Output",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 7,
|
"order": 5,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"name": "images",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"link": 8
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "PreviewImage"
|
"Node name for S&R": "PreviewImage"
|
||||||
},
|
},
|
||||||
"size": {
|
"title": "Preview Output"
|
||||||
"0": 315,
|
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 9,
|
"id": 7,
|
||||||
"type": "SaveImage",
|
"type": "SaveImage",
|
||||||
"pos": [
|
"pos": [1270, 400],
|
||||||
1450,
|
"size": [315, 100],
|
||||||
550
|
|
||||||
],
|
|
||||||
"widgets_values": [
|
|
||||||
"ultimate_upscale_output"
|
|
||||||
],
|
|
||||||
"title": "API Image Output",
|
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"order": 8,
|
"order": 6,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"name": "images",
|
||||||
|
"type": "IMAGE",
|
||||||
|
"link": 9
|
||||||
|
}
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Node name for S&R": "SaveImage"
|
"Node name for S&R": "SaveImage"
|
||||||
},
|
},
|
||||||
"size": {
|
"widgets_values": ["ultimate_upscale_output"],
|
||||||
"0": 315,
|
"title": "API Image Output"
|
||||||
"1": 100
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"links": [
|
||||||
|
[1, 1, 0, 5, 0, "IMAGE"],
|
||||||
|
[2, 2, 0, 5, 1, "MODEL"],
|
||||||
|
[3, 2, 1, 3, 0, "CLIP"],
|
||||||
|
[4, 2, 1, 4, 0, "CLIP"],
|
||||||
|
[5, 2, 2, 5, 4, "VAE"],
|
||||||
|
[6, 3, 0, 5, 2, "CONDITIONING"],
|
||||||
|
[7, 4, 0, 5, 3, "CONDITIONING"],
|
||||||
|
[8, 5, 0, 6, 0, "IMAGE"],
|
||||||
|
[9, 5, 0, 7, 0, "IMAGE"]
|
||||||
|
],
|
||||||
|
"groups": [],
|
||||||
|
"config": {},
|
||||||
"extra": {
|
"extra": {
|
||||||
"workflow_info": {
|
"workflow_info": {
|
||||||
"name": "Ultimate SD Upscale Production",
|
"name": "Ultimate SD Upscale Production",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Professional upscaling with Ultimate SD Upscale. Combines AI upscaling with diffusion refinement for superior detail and quality.",
|
"description": "Professional upscaling with Ultimate SD Upscale. Combines AI upscaling with diffusion refinement for superior detail and quality.",
|
||||||
"category": "upscaling",
|
"category": "upscaling",
|
||||||
"tags": [
|
"tags": ["ultimate-sd-upscale", "upscaling", "enhancement", "production"],
|
||||||
"ultimate-sd-upscale",
|
|
||||||
"upscaling",
|
|
||||||
"enhancement",
|
|
||||||
"production"
|
|
||||||
],
|
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"models": [
|
"models": ["stable-diffusion-xl-base-1.0"],
|
||||||
"stable-diffusion-xl-base-1.0",
|
"custom_nodes": ["ComfyUI_UltimateSDUpscale"],
|
||||||
"RealESRGAN"
|
|
||||||
],
|
|
||||||
"custom_nodes": [],
|
|
||||||
"vram_min": "18GB"
|
"vram_min": "18GB"
|
||||||
},
|
},
|
||||||
"parameters": {
|
"parameters": {
|
||||||
@@ -230,26 +244,42 @@
|
|||||||
"type": "image",
|
"type": "image",
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
"scale": {
|
"positive_prompt": {
|
||||||
"node_id": 6,
|
"node_id": 3,
|
||||||
"type": "integer",
|
"widget_index": 0,
|
||||||
"default": 2,
|
"type": "string",
|
||||||
"options": [
|
"default": "high quality, detailed, sharp",
|
||||||
2,
|
"description": "Enhancement prompt"
|
||||||
4
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"tile_size": {
|
"negative_prompt": {
|
||||||
"node_id": 6,
|
"node_id": 4,
|
||||||
"type": "integer",
|
"widget_index": 0,
|
||||||
"default": 512,
|
"type": "string",
|
||||||
"description": "Processing tile size"
|
"default": "blurry, low quality",
|
||||||
|
"description": "Qualities to avoid"
|
||||||
|
},
|
||||||
|
"upscale_by": {
|
||||||
|
"node_id": 5,
|
||||||
|
"widget_index": 0,
|
||||||
|
"type": "float",
|
||||||
|
"default": 2,
|
||||||
|
"min": 0.05,
|
||||||
|
"max": 4,
|
||||||
|
"description": "Upscale factor"
|
||||||
},
|
},
|
||||||
"denoise": {
|
"denoise": {
|
||||||
"node_id": 6,
|
"node_id": 5,
|
||||||
|
"widget_index": 6,
|
||||||
"type": "float",
|
"type": "float",
|
||||||
"default": 0.3,
|
"default": 0.3,
|
||||||
"description": "Refinement strength"
|
"description": "Refinement strength"
|
||||||
|
},
|
||||||
|
"tile_size": {
|
||||||
|
"node_id": 5,
|
||||||
|
"widget_index": 8,
|
||||||
|
"type": "integer",
|
||||||
|
"default": 512,
|
||||||
|
"description": "Processing tile size"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"performance": {
|
"performance": {
|
||||||
@@ -258,7 +288,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": 0.4,
|
"version": 0.4
|
||||||
"links": [],
|
}
|
||||||
"last_link_id": 0
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user