#166 · Primary category: Computer Vision

withoutbg-python

ai-background-removal background-removal background-removal-open-source background-removal-toolkit background-remover background-remover-onnx-model computer-vision computer-vision-ai image-background-removal image-matting image-processing open-source-background-removal open-source-background-remover python-background-removal

Python SDK for local and cloud background removal (pip install withoutbg)

Project last updated:07/23/26

GitHub Stars

1.3K

Forks

62

Contributors

3

License

Other

Why we included this project

The withoutBG Python SDK strips backgrounds in a few lines of Python and gives you two execution paths behind one API. The same remove_background() call runs open weights locally on CPU via ONNX, staying fully private and offline after a one-time ~455 MB download, or hits a managed cloud API when you swap in an API key. The cloud path exists for the hard cases, chiefly hair and fur, where the local model produces rougher edges, so you can upgrade quality without rewriting your pipeline. Output returns as a PIL RGBA image that composes naturally with the rest of the Python imaging ecosystem; the README notes that JPEG silently drops the alpha channel, so PNG or WebP is the safer choice.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category