From d12c868e657ebc0ed351476d8ef2afcd689cf968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 23 Nov 2025 11:45:28 +0100 Subject: [PATCH] fix: add UpscaleModelLoader and correct widget order in UltimateSDUpscale workflow - Added UpscaleModelLoader node (node 8) for RealESRGAN model - Connected upscale_model input to UltimateSDUpscale - Fixed widgets_values array to match correct parameter order: upscale_by, seed, steps, cfg, sampler_name, scheduler, denoise, mode_type, tile_width, tile_height, mask_blur, tile_padding, seam_fix_mode, seam_fix_denoise, seam_fix_width, seam_fix_mask_blur, seam_fix_padding, force_uniform_tiles, tiled_decode - Updated version to 1.1.0 --- .../ultimate-sd-upscale-production-v1.json | 67 +++++++++++++++---- 1 file changed, 55 insertions(+), 12 deletions(-) diff --git a/comfyui/workflows/upscaling/ultimate-sd-upscale-production-v1.json b/comfyui/workflows/upscaling/ultimate-sd-upscale-production-v1.json index 0f7fa1e..20285fa 100644 --- a/comfyui/workflows/upscaling/ultimate-sd-upscale-production-v1.json +++ b/comfyui/workflows/upscaling/ultimate-sd-upscale-production-v1.json @@ -1,6 +1,6 @@ { - "last_node_id": 7, - "last_link_id": 8, + "last_node_id": 8, + "last_link_id": 10, "nodes": [ { "id": 1, @@ -33,7 +33,7 @@ { "id": 2, "type": "CheckpointLoaderSimple", - "pos": [50, 400], + "pos": [50, 250], "size": [350, 100], "flags": {}, "order": 1, @@ -122,13 +122,35 @@ "widgets_values": ["blurry, low quality"], "title": "API Negative Prompt" }, + { + "id": 8, + "type": "UpscaleModelLoader", + "pos": [50, 400], + "size": [350, 100], + "flags": {}, + "order": 4, + "mode": 0, + "outputs": [ + { + "name": "UPSCALE_MODEL", + "type": "UPSCALE_MODEL", + "links": [10], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "UpscaleModelLoader" + }, + "widgets_values": ["RealESRGAN_x2.pth"], + "title": "Upscale Model Loader" + }, { "id": 5, "type": "UltimateSDUpscale", "pos": [900, 100], "size": [315, 100], "flags": {}, - "order": 4, + "order": 5, "mode": 0, "inputs": [ { @@ -155,6 +177,11 @@ "name": "vae", "type": "VAE", "link": 5 + }, + { + "name": "upscale_model", + "type": "UPSCALE_MODEL", + "link": 10 } ], "outputs": [ @@ -168,7 +195,7 @@ "properties": { "Node name for S&R": "UltimateSDUpscale" }, - "widgets_values": [2, 42, 20, 8.0, "dpmpp_2m", "karras", 0.3, "Linear", 512, 64], + "widgets_values": [2, 42, 20, 8.0, "dpmpp_2m", "karras", 0.3, "Linear", 512, 512, 8, 32, "None", 1.0, 64, 8, 16, true, false], "title": "Ultimate SD Upscale (2x)" }, { @@ -177,7 +204,7 @@ "pos": [1270, 100], "size": [315, 100], "flags": {}, - "order": 5, + "order": 6, "mode": 0, "inputs": [ { @@ -197,7 +224,7 @@ "pos": [1270, 400], "size": [315, 100], "flags": {}, - "order": 6, + "order": 7, "mode": 0, "inputs": [ { @@ -222,19 +249,20 @@ [6, 3, 0, 5, 2, "CONDITIONING"], [7, 4, 0, 5, 3, "CONDITIONING"], [8, 5, 0, 6, 0, "IMAGE"], - [9, 5, 0, 7, 0, "IMAGE"] + [9, 5, 0, 7, 0, "IMAGE"], + [10, 8, 0, 5, 5, "UPSCALE_MODEL"] ], "groups": [], "config": {}, "extra": { "workflow_info": { "name": "Ultimate SD Upscale Production", - "version": "1.0.0", + "version": "1.1.0", "description": "Professional upscaling with Ultimate SD Upscale. Combines AI upscaling with diffusion refinement for superior detail and quality.", "category": "upscaling", "tags": ["ultimate-sd-upscale", "upscaling", "enhancement", "production"], "requirements": { - "models": ["stable-diffusion-xl-base-1.0"], + "models": ["stable-diffusion-xl-base-1.0", "RealESRGAN"], "custom_nodes": ["ComfyUI_UltimateSDUpscale"], "vram_min": "18GB" }, @@ -258,6 +286,14 @@ "default": "blurry, low quality", "description": "Qualities to avoid" }, + "upscale_model": { + "node_id": 8, + "widget_index": 0, + "type": "string", + "default": "RealESRGAN_x2.pth", + "options": ["RealESRGAN_x2.pth", "RealESRGAN_x4.pth"], + "description": "Upscale model to use" + }, "upscale_by": { "node_id": 5, "widget_index": 0, @@ -274,12 +310,19 @@ "default": 0.3, "description": "Refinement strength" }, - "tile_size": { + "tile_width": { "node_id": 5, "widget_index": 8, "type": "integer", "default": 512, - "description": "Processing tile size" + "description": "Tile width for processing" + }, + "tile_height": { + "node_id": 5, + "widget_index": 9, + "type": "integer", + "default": 512, + "description": "Tile height for processing" } }, "performance": {