Remove an image background on a CPU with rembg

We tested rembg on Oct 16 with a self-made test image: a red circle with a yellow square on a green background. We ran rembg (MIT) with the u2netp model (Apache-2.0, from U-2-Net) on an 8-vCPU CPU-only machine. The green background was removed and the circle and square were kept, with a faint gray edge around the circle.
Try it yourself
What you get
A PNG with the background removed and a transparent backdrop, with no GPU.
Tools
- rembg (MIT)
- u2netp model (Apache-2.0, from U-2-Net)
Steps
- Install it with pip install "rembg[cpu,cli]==2.0.85" (the version we used).
- Run rembg i -m u2netp input.png output.png; the first run downloads the small u2netp model to ~/.rembg/models/u2netp/.
- Open the output PNG and check the edges: ours had a faint gray rim around the shape.
- We only tested a simple self-made image, not photos of people, hair or busy backgrounds; check those by hand.
Watch out: rembg is MIT; the u2netp model is Apache-2.0 (from U-2-Net). No region limits. One simple test image only.
Proof / source
Tested by AgentPlays Our own runs on Oct 16, 2026, with rembg 2.0.85 on an 8-vCPU machine, CPU only: input image and output image.
Read the original source ↗ Discussion ↗
Related
Convert HTML to Markdown on a CPU with Microsoft MarkItDown
We tested Microsoft MarkItDown 0.1.8 on Oct 16: it converted Project Gutenberg ebook #4 (Lincoln's Gettysburg Address, HTML) to Markdown on an 8-vCPU Intel Xeon, CPU only…
Discussion
Read an upside-down, blurry page scan with Indra OCR on a CPU
We tested Indra OCR (first published Oct 10–13) on an 8-vCPU Intel Xeon, CPU only.
Let your AI agent do the bookkeeping legwork in Dougs while you approve every change
Tom Eberle open-sourced dougs-cli (MIT), an unofficial command-line tool for the French accounting platform Dougs, so an agent can work in their company's books.
Get a second opinion on a $1,800 car repair quote from the shop's own inspection video
After a routine service, a shop recommended about $1,800 of work on Kyle Blanchard's Mazda and sent an inspection video.