More images
Screenshot from the project's website. All rights belong to the original creator. Contact us if you would like it removed.
What it is
rembg is an image background removal tool by Daniel Gatis that uses image models. It handles individual images or folders in batches and can run as a command-line tool, Python library, HTTP server, or Docker container.
Highlights:
- Uses BRIA's background removal model by default, with other models available.
- Handles local files and remote images, and can receive uploaded images through its server.
- Supports CPU, NVIDIA CUDA, and AMD ROCm.
How to use:
First, install rembg with the command-line component for your setup. For CPU use, run `pip install "rembg[cpu,cli]"`. Then provide images through the command line, Python library, or another supported interface.
Who it's for:
Developers who want to add background removal to an application or process images in batches.
Before you start:
- Python 3.11 or later and below 3.14 is required; Docker is also supported.
- Local models download automatically on first use. The withoutBG and Atlas Cloud backends send images to their respective servers and require API keys.
- If cloud models are enabled on the HTTP server, requests without their own API key are billed to the key in the server environment.
- rembg uses the MIT license, while model weights have separate licenses. Commercial use of the default RMBG-2.0 model requires a paid agreement.
Based on the project's public documentation. Not tested by AI Inspiration World.
