Tags: utilitybackgroundremovalsegmentationcutoutmask
Inputs (13)#
The typed parameter surface callers bind when they request this workflow. Enum options and numeric bounds are the values the workflow document declares.
input_imageimagerequiredremoval_methodenumdefault autoautorembgsamu2netisnetoutput_modeenumdefault transparenttransparentsolid_colorgradientblur_originalreplace_imagesolid_colorstringdefault #FFFFFFgradient_colorsstringdefault #000000,#333333gradient_directionenumdefault verticalverticalhorizontalradialdiagonalblur_strengthintegerdefault 25replacement_imageimageedge_refinementenumdefault mediumnonelightmediumheavyfeather_edgesbooleandefault truefeather_amountintegerdefault 3preserve_shadowsbooleandefault falseoutput_formatenumdefault pngpngwebpComfyUI node graph (10)#
The executable ComfyUI prompt graph: 10 nodes across 8 distinct node classes, wired by 12 data dependencies. Nodes tinted green come from a custom node pack this workflow declares; the rest are ComfyUI core / baked-community classes.
Nodes (10)#
1LoadImagecoreimage = {{input_image}} tmplIMAGEMASK2LoadImagecoreimage = {{replacement_image}} tmplIMAGEMASK3RemoveBackgroundcustom packimage = ◂ node 1 · out[0]method = {{removal_method}} tmplthreshold = 0.5IMAGEMASK4MaskRefinementcustom packmask = ◂ node 3 · out[1]iterations = {{refinement_configs[edge_refinement].iterations}} tmplthreshold_adjust = {{refinement_configs[edge_refinement].threshold_adjust}} tmplMASK5MaskFeathercustom packmask = ◂ node 4 · out[0]amount = {{feather_amount}} tmplenabled = {{feather_edges}} tmplMASK6ShadowPreservationcustom packimage = ◂ node 1 · out[0]mask = ◂ node 5 · out[0]enabled = {{preserve_shadows}} tmplIMAGEMASK7BackgroundGeneratorcustom packmode = {{output_mode}} tmploriginal_image = ◂ node 1 · out[0]replacement_image = ◂ node 2 · out[0]solid_color = {{solid_color}} tmplgradient_colors = {{gradient_colors}} tmplgradient_direction = {{gradient_direction}} tmplblur_strength = {{blur_strength}} tmplIMAGE8CompositeImagecustom packforeground = ◂ node 3 · out[0]background = ◂ node 7 · out[0]mask = ◂ node 6 · out[1]IMAGE9SaveImagecoreimages = ◂ node 8 · out[0]filename_prefix = bg_removed10SaveImagecoreimages = ◂ node 6 · out[0]filename_prefix = mask_outputParameter banks (2)#
The prompt / configuration lookup tables this workflow keys into from its inputs — the vocabulary that turns a style / palette / preset selection into graph parameters.
method_configs (5)#
auto{"description": "Automatically select best method"}rembg{"description": "Fast general-purpose removal"}sam{"description": "Segment Anything Model - precise segmentation"}u2net{"description": "U2-Net - good for people and products"}isnet{"description": "IS-Net - excellent edge detection"}refinement_configs (4)#
none{"iterations": 0, "threshold_adjust": 0}light{"iterations": 1, "threshold_adjust": 0.1}medium{"iterations": 2, "threshold_adjust": 0.15}heavy{"iterations": 3, "threshold_adjust": 0.2}Models & dependencies#
Custom node packs (6)#
The non-core ComfyUI node classes this graph requires; the RunPod worker image the workflow runs on must bake or install a pack that provides every one of them.
BackgroundGeneratorCompositeImageMaskFeatherMaskRefinementRemoveBackgroundShadowPreservationOutput contract#
What a successful run of this workflow returns.
primary{"type": "image", "format": "png", "channels": 4, "description": "Image with new/removed background"}mask{"type": "image", "format": "png", "description": "Extracted mask"}Taxonomy & routing#
How the control plane classifies this workflow — from the committed workflow-taxonomy-registry.json. It drives the consistency / control surface the agentic director can exercise over the workflow.
assetFamilymkt-product-packshot-suiteoutputPackageProfileimage-single-profilecontrolModalitiescamera-lockcolor-script-lockcontrolnet-inpaintcontrolnet-segmentationdepth-constraintidentity-adapterlatent-reusemodel-lockpalette-lockpose-constraintprompt-template-lockreference-ensemblesampler-scheduler-lockscene-lockseed-lockstyle-anchor +3 moreconsistencyDimensionsenvironmentcolor-scriptnotesAuto-mapped from utility defaults