Files
DemonGatanjieu-Anomalous_Mo…/api/blocks/inpaint_basic.json
T
DemonGatanjieuandClaude Opus 5.5 dd9c3ee2f5 Tags from a picture, run words to the AI, colour matching after upscales
- tags_from_picture: WD14 tagger (the source's model and thresholds) on a
  picture the user handed; run_status now carries what nodes showed as words
  (texts: a tagger's tags), with a summary and next step for a run that made
  words but no pictures.
- Optional nodes: a block node marked optional goes when its pack is missing,
  and a link "match|decode" takes the first one there. The four upscales end in
  KJNodes' ColorMatch (mkl, the source's) when it is installed; the panel says
  "better with" it otherwise.
- LanPaint's next step keeps the prompt about the whole picture; Follow a pose
  says OpenPose misreads anime (use control_depth), as the source's author did.
- The directory has a size cap: past it, block names alone, so collected ways
  never make begin_task long; shorter headings and few-word lines.

Live-tested on the isolated 8199 ComfyUI: LanPaint (area changed 14.6, outside
0.0, 82 s), tiled 2x (167 s), depth ControlNet (follows the layout), OpenPose
(misreads an anime picture), background removal (8 s), tags (166 s with the
model download), upscale with ColorMatch (73 s).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 03:31:04 +08:00

71 lines
1.5 KiB
JSON

{
"job": "repaint",
"rank": 3,
"short": "built-in nodes",
"title": {
"zh": "局部重绘·官方节点",
"en": "Repaint: built-in nodes"
},
"about": {
"zh": "只用 ComfyUI 自带的节点:整张图一起采样,只有圈出的地方变。没装上面两个包时用。",
"en": "ComfyUI's own nodes only: the whole picture is sampled, only the area changes. For when neither pack above is installed."
},
"source": {
"zh": "ComfyUI 官方的局部重绘做法",
"en": "ComfyUI's own way to inpaint"
},
"packs": {},
"takes": "inpaint",
"nodes": {
"picture": {
"class_type": "LoadImage",
"inputs": {
"image": "$image"
}
},
"soft": {
"class_type": "DifferentialDiffusion",
"inputs": {
"model": [
"$sampler.model",
"*"
]
},
"wire_to": "$sampler"
},
"encode": {
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"picture",
0
],
"vae": [
"$decode.vae",
"*"
]
}
},
"area": {
"class_type": "SetLatentNoiseMask",
"inputs": {
"samples": [
"encode",
0
],
"mask": [
"picture",
1
]
},
"wire_to": "$sampler"
}
},
"roles": {
"sampler": {
"denoise": 0.7
}
},
"after": "The sampler repaints only the area, at denoise 0.7 so it keeps the picture's look (higher changes more). Then run_workflow."
}