Files
DemonGatanjieu-Anomalous_Mo…/api/blocks/upscale_tiled.json
T
DemonGatanjieuandClaude Opus 5.5 8ecc261949 Let ready-made blocks say what they hand the next one, and build them as a chain
Every block in api/blocks names what it gives a block after it ("gives": its sampler and its
output node; {} for one that changes the step it is put on) and its own model loader
("own_model"). api/block_chain.py builds a list of steps on a new tab: the picture first, each
next block anchored to what the step before gave, by near_node_id and a new page-only
save_node_id (canvas_roles.js findRoles pins the output node), so a canvas with several
samplers and outputs is no guess. add_nodes' answer names the block it built.

Redraw with another model and face/hand detailing now take the step before's picture
("$save.images") instead of the sampler's decode, which after an enlargement is the older
picture. The two-model routes are built as two-step chains; routes.json no longer names the
loaders.

Checked through the real page on the test ComfyUI: the Tile route on two Anima models (base on
Harem 1.5, Tile redraw on Kirazuri v4, from the base's picture and prompts), then face and hand
detailing after it took the Tile step's colour-matched picture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 00:42:56 +08:00

118 lines
2.5 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"job": "upscale",
"want": "2x",
"rank": 4,
"short": "2×, in tiles",
"title": {
"zh": "分块放大",
"en": "Tiled upscale"
},
"about": {
"zh": "放大 2 倍,按小块逐块重画,多大的图都放得下。",
"en": "2×, redrawn tile by tile, for any size."
},
"source": {
"zh": "节点包 UltimateSDUpscale 自带的示例",
"en": "UltimateSDUpscale's own example"
},
"packs": {
"UltimateSDUpscale": "ComfyUI_UltimateSDUpscale"
},
"instead": "upscale",
"upscaler": true,
"after": "run_workflow saves the picture as before and the 2× one beside it (prefix upscaled); each tile is redrawn with the sampler's steps and cfg at denoise 0.3 (higher adds more detail, and may add seams).",
"gives": {
"save": "save"
},
"extras": {
"ColorMatch": "ComfyUI-KJNodes"
},
"notes": "ColorMatch mkl after the redraw is the source's, optional (KJNodes).",
"upscale_by": 2.0,
"nodes": {
"upscaler": {
"class_type": "UpscaleModelLoader",
"inputs": {
"model_name": "$upscaler"
}
},
"tiles": {
"class_type": "UltimateSDUpscale",
"like": "$sampler",
"inputs": {
"image": [
"$save.images",
"*"
],
"model": [
"$sampler.model",
"*"
],
"positive": [
"$sampler.positive",
"*"
],
"negative": [
"$sampler.negative",
"*"
],
"vae": [
"$decode.vae",
"*"
],
"upscale_model": [
"upscaler",
0
],
"upscale_by": 2.0,
"denoise": 0.3,
"tile_width": 1024,
"tile_height": 1024
}
},
"match": {
"class_type": "ColorMatch",
"optional": true,
"inputs": {
"image_ref": [
"$save.images",
"*"
],
"image_target": [
"tiles",
0
],
"method": "mkl",
"strength": 1.0,
"multithread": true
}
},
"save": {
"class_type": "SaveImage",
"inputs": {
"images": [
"match|tiles",
0
],
"filename_prefix": "upscaled"
}
}
},
"models": [
"2x_animesharp_v4",
"4x_ultrasharp"
],
"tested": {
"gpu": "RTX 4050 Laptop",
"vram_gb": 6,
"date": "2026-10-27",
"runs": [
{
"model": "SDXL (Illustrious)",
"size": "832×1216 → 2×",
"seconds": 167
}
]
}
}