- 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>
51 lines
1.3 KiB
JSON
51 lines
1.3 KiB
JSON
{
|
|
"job": "process",
|
|
"rank": 1,
|
|
"short": "transparent cut-out",
|
|
"title": {
|
|
"zh": "背景移除",
|
|
"en": "Remove the background"
|
|
},
|
|
"about": {
|
|
"zh": "把一张图的背景抠掉,存成透明背景的 PNG(文件名以 nobg 开头)。",
|
|
"en": "Cuts a picture's background away and saves it as a transparent PNG (prefix nobg)."
|
|
},
|
|
"source": {
|
|
"zh": "参考工作流的「背景移除」组,换成你装的 inspyrenet-rembg",
|
|
"en": "The reference workflow's background removal, with your inspyrenet-rembg"
|
|
},
|
|
"packs": {
|
|
"InspyrenetRembg": "comfyui-inspyrenet-rembg"
|
|
},
|
|
"takes": "picture",
|
|
"nodes": {
|
|
"picture": {
|
|
"class_type": "LoadImage",
|
|
"inputs": {
|
|
"image": "$image"
|
|
}
|
|
},
|
|
"cut": {
|
|
"class_type": "InspyrenetRembg",
|
|
"inputs": {
|
|
"image": [
|
|
"picture",
|
|
0
|
|
],
|
|
"torchscript_jit": "default"
|
|
}
|
|
},
|
|
"save": {
|
|
"class_type": "SaveImage",
|
|
"inputs": {
|
|
"images": [
|
|
"cut",
|
|
0
|
|
],
|
|
"filename_prefix": "nobg"
|
|
}
|
|
}
|
|
},
|
|
"after": "run_workflow saves it with the background cut away (transparent PNG, prefix nobg). On a canvas that makes pictures those are made too: to cut this one out alone, add the block on a blank tab (new_workflow)."
|
|
}
|