ComfyUI Node
π¬ Studio42 Background Remover Enhanced
A ComfyUI node in π¬ Studio42/Background Removal with 35 inputs and 4 outputs.
π¬ Studio42 Background Remover Enhanced
- images
- guidance_mask
- depth_map
- reference_background
- result_rgb
- result_rgba
- result_mask
- processing_info
βmethodbirefnet-generalβΊ
βprocessing_resolution1024βΊ
βuse_gputrueβΊ
βmodel_precisionfp16βΊ
βuse_guidance_masktrueβΊ
βguidance_mask_strength0.70βΊ
βuse_depth_guidancetrueβΊ
βdepth_threshold0.50βΊ
βdepth_falloff0.20βΊ
βcombine_depth_with_aitrueβΊ
βchroma_colorgreenβΊ
βprimary_threshold0.12βΊ
βsecondary_threshold0.03βΊ
βsaturation_threshold0.40βΊ
βbrightness_min0.15βΊ
βbrightness_max0.95βΊ
βmulti_pass_keyingtrueβΊ
βspill_suppression0.85βΊ
βspill_preserve_luminancetrueβΊ
βedge_softness1.50βΊ
βcore_matte_choke0.00βΊ
βluma_key_modeshadows_highlightsβΊ
βshadow_threshold0.08βΊ
βhighlight_threshold0.92βΊ
βluma_softness0.05βΊ
βdifference_threshold0.08βΊ
βcolor_space_modehsvβΊ
βgarbage_matte_enabledfalseβΊ
βremove_small_objectstrueβΊ
βsmall_object_threshold300βΊ
βmask_blur0.8βΊ
Category㪠Studio42/Background Removal
Inputs (35)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | β | |
| method | COMBO | birefnet-general | Background removal method. BiRefNet models are state-of-the-art and working great with FP16! |
| guidance_maskopt | MASK | β | |
| depth_mapopt | IMAGE | β | |
| reference_backgroundopt | IMAGE | β | |
| processing_resolutionopt | INT | 1024256β4096 | Processing resolution. Higher = better quality but slower. |
| use_gpuopt | BOOLEAN | true | Use GPU acceleration. Highly recommended for AI methods. |
| model_precisionopt | COMBO | fp16 | FP16 uses 50% less memory and is 2x faster with great quality! |
| use_guidance_maskopt | BOOLEAN | true | Use guidance mask if provided. White areas = keep, black areas = remove. |
| guidance_mask_strengthopt | FLOAT | 0.700β1 | Strength of guidance mask influence. |
| use_depth_guidanceopt | BOOLEAN | true | Use depth map if provided. Closer objects (brighter) = foreground. |
| depth_thresholdopt | FLOAT | 0.500β1 | Depth threshold. Objects closer than this are considered foreground. |
| depth_falloffopt | FLOAT | 0.200.05β0.5 | Smooth transition distance around depth threshold. |
| combine_depth_with_aiopt | BOOLEAN | true | Combine depth guidance with AI predictions for best results. |
| chroma_coloropt | COMBO | green | Chroma key background color. Green is most common for LED walls. |
| primary_thresholdopt | FLOAT | 0.120.01β0.5 | Primary color tolerance. Lower = more precise. 0.12 optimal for LED walls. |
| secondary_thresholdopt | FLOAT | 0.030.01β0.3 | Secondary refinement for edges. Lower = cleaner edges. |
| saturation_thresholdopt | FLOAT | 0.400.1β1 | Minimum saturation. 0.4 optimal for modern LED screens. |
| brightness_minopt | FLOAT | 0.150β1 | Minimum brightness for chroma key detection. |
| brightness_maxopt | FLOAT | 0.950β1 | Maximum brightness for chroma key detection. |
| multi_pass_keyingopt | BOOLEAN | true | Multi-stage processing for professional edge quality. |
| spill_suppressionopt | FLOAT | 0.850β1 | Remove color bleeding on subject edges. 0.85 optimal for most scenarios. |
| spill_preserve_luminanceopt | BOOLEAN | true | Preserve brightness during spill removal for natural results. |
| edge_softnessopt | FLOAT | 1.500β10 | Edge blur for smooth transitions. 1.5 optimal for most images. |
| core_matte_chokeopt | FLOAT | 0.00-0.5β0.5 | Expand (negative) or contract (positive) the matte core. |
| luma_key_modeopt | COMBO | shadows_highlights | Luma key removal mode. |
| shadow_thresholdopt | FLOAT | 0.080β0.5 | Shadow removal threshold. Lower = more shadows removed. |
| highlight_thresholdopt | FLOAT | 0.920.5β1 | Highlight removal threshold. Higher = more highlights removed. |
| luma_softnessopt | FLOAT | 0.050β0.5 | Luma key soft transition distance. |
| difference_thresholdopt | FLOAT | 0.080.01β0.5 | Difference key sensitivity. Lower = more sensitive. |
| color_space_modeopt | COMBO | hsv | Color space for processing. HSV recommended for chroma key, LAB for quality. |
| garbage_matte_enabledopt | BOOLEAN | false | Automatically remove obvious background areas. |
| remove_small_objectsopt | BOOLEAN | true | Remove small noise objects from mask. |
| small_object_thresholdopt | INT | 30050β2000 | Size threshold for small object removal (pixels). |
| mask_bluropt | FLOAT | 0.80β5 | Final mask blur for smoother edges. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| result_rgb | IMAGE | β |
| result_rgba | IMAGE | β |
| result_mask | MASK | β |
| processing_info | STRING | β |