Featured Tool

Rembg

Removes image backgrounds locally with a choice of segmentation models, via CLI, Python, HTTP or Docker.

Open SourceSelf HostedOffline Capable
0.0 (0)

About

Daniel Gatis's cutout tool hides a catalogue of segmentation models behind one interface: call it from a shell, import it in Python, run it as an HTTP server that also serves a Gradio page, or start the published Docker image. The CLI processes single images, whole folders (with a watch mode for new files), and raw RGB24 frames piped from FFmpeg for video. Models download on first use: the default BRIA RMBG-2.0 checkpoint is around a gigabyte, slower but sharp, while U2-Net variants, ISNet (including an anime version), BiRefNet checkpoints and Segment Anything with point prompts trade speed against edge quality; custom ONNX files and a paid cloud backend are options too. Hair and other soft edges can be cleaned with colour decontamination, alpha matting or a ViTMatte network. Install with pip using a cpu, gpu (CUDA) or rocm extra on Python 3.11 to 3.13. The code is MIT, but each model keeps its own license, and BRIA requires a commercial contract for its weights, so businesses should choose BiRefNet (MIT) or U2-Net (Apache-2.0). Handy for e-commerce photo batches, thumbnail pipelines and compositing prep.

Should you use Rembg?

Pick it when

You need to strip backgrounds from product shots or portraits in bulk inside a Python app, CLI script, HTTP service, or Docker container, on plain CPUs, under the MIT license.

Look elsewhere when

You need the subject relit to match a new scene, which IC-Light handles, or you prefer fixing single images by hand in an editor: IOPaint includes background removal in a browser UI.

Alternatives to Rembg

  • IC-Light

    Relights the cut-out subject to match a new background, the step after removal, but needs a CUDA GPU and SD 1.5 diffusion.

  • IOPaint (Lama Cleaner)

    Offers background removal as a plugin inside an inpainting web UI, better for hand-checked single images than headless batches.

  • Inpaint Anything

    Click-to-segment with SAM selects any object rather than just the foreground subject, at the cost of a 6GB GPU.

  • Grounded SAM 2

    Segments objects named in a text prompt across images and video, more flexible targeting than rembg but heavier, with an 8GB GPU listed.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!