place_in_scene takes two pictures (add_nodes' new scene argument, $scene in a block marked "scene"): the character is cut out (inspyrenet-rembg), the place scaled and cropped to its size (GetImageSize, ImageScale), the character pasted on (ImageCompositeMasked) and everything else redrawn at denoise 0.5 with the edge grown 6 px, so shadow and ground meet it while the place keeps its look. Tried on an RTX 4050 6 GB with SDXL (Illustrious) 832x1216: about 40 s. The blocks' short words are shorter so begin_task stays under 4000 characters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
133 lines
3.4 KiB
JSON
133 lines
3.4 KiB
JSON
{
|
||
"job": "upscale",
|
||
"rank": 2,
|
||
"short": "3 steps",
|
||
"title": {
|
||
"zh": "迭代放大",
|
||
"en": "Iterative upscale"
|
||
},
|
||
"about": {
|
||
"zh": "分 3 小步放大到 1.3 倍,每步轻轻重画一次,比一步到位更稳。另存一张,文件名以 upscaled 开头。 装了 KJNodes 时,还会把颜色对齐到原图,防止放大后颜色跑偏。",
|
||
"en": "Enlarges to 1.3× in 3 small steps, a light redraw each, steadier than one jump. Saved beside it, prefix upscaled. With KJNodes, its colours are matched to the original, so they don't drift."
|
||
},
|
||
"source": {
|
||
"zh": "参考工作流的「迭代放大」组(作者另加的噪声增强要 ComfyUI Noise,这里没用)",
|
||
"en": "The reference workflow's iterative upscale group (its noise boost needs ComfyUI Noise, left out)"
|
||
},
|
||
"packs": {
|
||
"PixelKSampleUpscalerProvider": "ComfyUI-Impact-Pack",
|
||
"IterativeImageUpscale": "ComfyUI-Impact-Pack"
|
||
},
|
||
"instead": "upscale",
|
||
"upscaler": true,
|
||
"after": "run_workflow saves the picture as before and the 1.3× one beside it (prefix upscaled): 3 steps, each redrawn at denoise 0.3 with the sampler's steps and cfg.",
|
||
"notes": "The source's values: factor 1.32, 3 steps, denoise 0.3, geometric; its noise injection (ComfyUI Noise) is left out. ColorMatch mkl after the redraw is the source's, optional (KJNodes).",
|
||
"extras": {
|
||
"ColorMatch": "ComfyUI-KJNodes"
|
||
},
|
||
"upscale_by": 1.3,
|
||
"nodes": {
|
||
"upscaler": {
|
||
"class_type": "UpscaleModelLoader",
|
||
"inputs": {
|
||
"model_name": "$upscaler"
|
||
}
|
||
},
|
||
"redraw": {
|
||
"class_type": "PixelKSampleUpscalerProvider",
|
||
"like": "$sampler",
|
||
"inputs": {
|
||
"scale_method": "lanczos",
|
||
"model": [
|
||
"$sampler.model",
|
||
"*"
|
||
],
|
||
"vae": [
|
||
"$decode.vae",
|
||
"*"
|
||
],
|
||
"positive": [
|
||
"$sampler.positive",
|
||
"*"
|
||
],
|
||
"negative": [
|
||
"$sampler.negative",
|
||
"*"
|
||
],
|
||
"denoise": 0.3,
|
||
"use_tiled_vae": false,
|
||
"tile_size": 1024,
|
||
"upscale_model_opt": [
|
||
"upscaler",
|
||
0
|
||
]
|
||
}
|
||
},
|
||
"steps": {
|
||
"class_type": "IterativeImageUpscale",
|
||
"inputs": {
|
||
"pixels": [
|
||
"$save.images",
|
||
"*"
|
||
],
|
||
"upscale_factor": 1.3,
|
||
"steps": 3,
|
||
"temp_prefix": "",
|
||
"upscaler": [
|
||
"redraw",
|
||
0
|
||
],
|
||
"vae": [
|
||
"$decode.vae",
|
||
"*"
|
||
],
|
||
"step_mode": "geometric",
|
||
"vae_compression": 8
|
||
}
|
||
},
|
||
"match": {
|
||
"class_type": "ColorMatch",
|
||
"optional": true,
|
||
"inputs": {
|
||
"image_ref": [
|
||
"$save.images",
|
||
"*"
|
||
],
|
||
"image_target": [
|
||
"steps",
|
||
0
|
||
],
|
||
"method": "mkl",
|
||
"strength": 1.0,
|
||
"multithread": true
|
||
}
|
||
},
|
||
"save": {
|
||
"class_type": "SaveImage",
|
||
"inputs": {
|
||
"images": [
|
||
"match|steps",
|
||
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 → 1.3×",
|
||
"seconds": 157
|
||
}
|
||
]
|
||
}
|
||
}
|