withoutBG: Open-Weights Background Removal Model

An open-weights background removal model that outperforms several open-source and commercial models on our evaluation benchmarks.

Apache-2.0 · Python · Docker · macOS · GIMP

withoutBG open-weights background removal model quality examples

How to run it#

Self-host with a Mac app, GIMP plugin, Python package, or Docker. Same open weights across the stack. See also self-hosted background removal.

withoutBG for Mac: desktop app and local HTTP server

macOS App

  • Native desktop app with drag-and-drop batch processing
  • Optional Local API for GIMP, Blender, and scripts on localhost
  • On-device Apple Silicon inference, works offline after install
GIMP 3 plugin for local background removal

GIMP Plugin

  • Remove backgrounds from the GIMP 3.0 Tools menu
  • Calls a local withoutBG server on localhost
  • Attaches the alpha matte as an unapplied layer mask
withoutBG Docker web UI and API for self-hosted background removal

Docker

  • Web UI: one docker run command, inference on port 80
  • Headless API: same /v1.0/image-without-background schema as cloud
  • Images stay on your network, nothing leaves the container

New in v4: Smart Brush#

Missed a strand, or kept a chair you did not want? Paint Keep over what went missing and Remove over what should go. A small stroke-edit network (2.5 MB, open weights like the rest) fixes the cutout. One stroke on an object is enough; pixels away from your strokes do not change. It works in the Mac app (Smart Brush), the Docker web app, the Python package (model.edit(image, keep=..., remove=..., matte=...)) and the Hugging Face Space. On our frozen validation set, one round of strokes cuts the error inside the edited region by 83% on matte fixes and 96% on unwanted or missing objects. More about Smart Brush.

Coming next: one gateway, two specialist models#

The next community release automatically routes each image to the model suited to its edges. withoutBG trains and maintains the matting branch for hair, fur, soft detail, and transparency. BiRefNet handles segmentation for opaque objects, flat scenes, and vehicles.

Matting → withoutBG

Fine strands, soft boundaries, and partially transparent regions.

Segmentation → BiRefNet

Solid subjects and clearly defined object boundaries.

This pipeline is being prepared for Python, the Mac app, Docker, and Hugging Face. GIMP uses the gateway in its connected Mac or Docker server. Routing runs wherever inference runs; local installations keep images on your device. Existing downloads and benchmark results still refer to the released model until the new bundles ship.

Examples#

Sample outputs from the open-weights model. Switch between transparency, chroma key, and alpha matte on each result.

Original photo: hasan almasi BIrL2bdlMa4
Original
Open Model background removed: hasan almasi BIrL2bdlMa4
Transparency
Open Model

See all 51 examples

Compare to other open models#

Same Bench images and ground-truth metrics against rembg sessions (u2net, IS-Net, BiRefNet, and more). The directory is the evaluation surface; this page is where you install and ship.

Get notified about new releases#

New weights, versions and integrations, by email. No account needed, and every email has a one-click unsubscribe.

Get open-weights model updates