remove-bg · Background Removal

remove-bg

Extract subjects from any image with AI semantic segmentation: output a transparent PNG, or swap in a solid color (e-commerce white) or a new scene background. No green screen needed.

Local inference via rembg (u2net family); model tiers for general, portrait, and fine detail — --alpha-matting refines hair edges on portraits. Cutout quality depends on subject-background contrast.

Example invocation: "Cut this product out and put it on a white background."

Full brief

Positioning

remove-bg is a cutout tool for arbitrary images: AI semantic segmentation extracts the subject for transparent output or background replacement. It works on any existing image — no green screen required.

Core capabilities

Workflow

  1. Provide the image; run check to verify the model first
  2. Pick a model (u2net_human_seg for portraits, u2net for products/general) and output background (transparent/solid/swap)
  3. Run remove_bg.py remove into outputs/<topic>/, with a model/background report
  4. For rough edges, switch to a finer model or add --alpha-matting and re-run

Inputs & outputs

Input Required Notes
Image Yes The image to cut out
Output background No Transparent (default) / solid color / new image
Model No General / portrait / fine — see model table

Output: cut-out image (transparent → .png) + report (model used, background type).

Boundaries with adjacent skills

Skill Lane
remove-bg (this) Cutout for arbitrary images (AI segmentation)
green-screen Green-screen video keying (ffmpeg chroma key)
ecom-details-image E-commerce visual plans; more than cutouts
image-editing Standard resize/crop/watermark; no cutout

Fit

Before you start


remove-bg is part of the Aiglade Skill library. Invoke it from the Aiglade chat box in plain language.

← All 155 skills