Files
DemonGatanjieu-Anomalous_Mo…/api/blocks/remove_background.json
T
DemonGatanjieuandClaude Opus 5.5 ce4b8a8a49 Ways: put a character into a given picture
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>
2026-10-28 23:08:16 +08:00

64 lines
1.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": "process",
"rank": 1,
"short": "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).",
"models": [],
"tested": {
"gpu": "RTX 4050 Laptop",
"vram_gb": 6,
"date": "2026-10-27",
"runs": [
{
"model": "—",
"size": "1280×832",
"seconds": 8
}
]
}
}