Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Background Remover lets you Remove Background from images and video using AI with a simple command line interface that is free and open source.
| Date | Stars |
|---|---|
| 2026-07-24 | 7978 |
| 2026-07-25 | 7980 |
| 2026-07-28 | 7986 |
| 2026-07-30 | 7986 |
| 2026-08-08 | 8010 |
| 2026-08-16 | 8018 |
| 2026-08-18 | 8019 |
| 2026-08-19 | 8018 |
| 2026-08-20 | 8019 |
| 2026-08-21 | 8018 |
| 2026-08-23 | 8019 |
| 2026-08-25 | 8017 |
| 2026-08-26 | 8019 |
| 2026-08-27 | 8020 |
| 2026-08-28 | 8019 |
| 2026-08-29 | 8022 |
| 2026-08-30 | 8028 |
| 2026-08-31 | 8027 |
| 2026-09-01 | 8029 |
| 2026-09-03 | 8032 |
| 2026-09-04 | 8034 |
| 2026-09-05 | 8032 |
| 2026-09-06 | 8033 |
| 2026-09-07 | 8040 |
| 2026-09-08 | 8047 |
| 2026-09-09 | 8049 |
| 2026-09-10 | 8050 |
| 2026-09-11 | 8052 |
| 2026-09-12 | 8052 |
| 2026-09-13 | 8054 |
| 2026-09-14 | 8053 |
| 2026-09-15 | 8054 |
| 2026-09-16 | 8054 |
| 2026-09-17 | 8053 |
| 2026-09-18 | 8060 |
| 2026-09-19 | 8059 |
| 2026-09-20 | 8061 |
Today
+2 stars today
This week
+7 stars this week
This month
+43 stars this month
Momentum
15.0
growth rate 0.09%/day
# BackgroundRemover

<img alt="background remover video" src="https://raw.githubusercontent.com/nadermx/backgroundremover/main/examplefiles/backgroundremoverprocessed.gif" height="200" /><br>
BackgroundRemover is a command line tool to remove background from [image](https://github.com/nadermx/backgroundremover#image) and [video](https://github.com/nadermx/backgroundremover#video) using AI, made by [nadermx](https://john.nader.mx) to power [https://BackgroundRemoverAI.com](https://backgroundremoverai.com). If you wonder why it was made read this [short blog post](https://johnathannader.com/my-first-open-source-project/).<br>
### Requirements
* python >= 3.6
* python3.6-dev #or what ever version of python you use
* torch and torchvision stable version (https://pytorch.org)
* ffmpeg 4.4+
* To clarify, you must install both python and whatever dev version of python you installed. IE; python3.10-dev with python3.10 or python3.8-dev with python3.8
#### How to install torch and ffmpeg
Go to https://pytorch.org and scroll down to `INSTALL PYTORCH` section and follow the instructions.
**For CPU-only (default):**
```bash
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
```
**For GPU (CUDA) support:**
```bash
# For CUDA 11.8
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu118
# For CUDA 12.1
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121
```
Visit https://pytorch.org/get-started/locally/ to find the correct command for your CUDA version.
**To install ffmpeg and python-dev:**
```bash
sudo apt install ffmpeg python3.6-dev
```
### Installation
To Install backgroundremover, install it from pypi
```bash
pip install --upgrade pip
pip install backgroundremover
```
Please note that when you first run the program, it will check to see if you have the u2net models, if you do not, it will pull them from this repo
It is also possible to run this without installing it via pip, just clone the git to local start a virtual env and install requirements and run
```bash
python -m backgroundremover.cmd.cli -i "video.mp4" -mk -o "output.mov"
```
and for windows
```bash
python.exe -m backgroundremover.cmd.cli -i "video.mp4" -mk -o "output.mov"
```
### Installation using Docker
```bash
git clone https://github.com/nadermx/backgroundremover.git
cd backgroundremover
docker build -t bgremover .
# Basic usage (models will be downloaded on each run)
alias backgroundremover='docker run -it --rm -v "$(pwd):/tmp" bgremover:latest'
# Recommended: Persist models between runs to avoid re-downloading
mkdir -p ~/.u2net
alias backgroundremover='docker run -it --rm -v "$(pwd):/tmp" -v "$HOME/.u2net:/root/.u2net" bgremover:latest'
# For video processing: Increase shared memory to avoid multiprocessing errors
alias backgroundremover='docker run -it --rm --shm-size=2g -v "$(pwd):/tmp" -v "$HOME/.u2net:/root/.u2net" bgremover:latest'
```
**Note for Docker video processing:** Video processing uses multiprocessing which requires adequate shared memory. If you encounter errors like `OSError: [Errno 95] Operation not supported`, use `--shm-size=2g` (or higher) or `--ipc=host` when running the container.
### GPU Acceleration
BackgroundRemover automatically detects and uses your GPU if available, which provides significant speed improvements (typically 5-10x faster than CPU).
**To verify GPU is being used:**
```bash
python3 -c "import torch; print('GPU available:', torch.cuda.is_available()); print('GPU name:', torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'N/A')"
```
**Troubleshooting GPU issues:**
1. **GPU not detected**: Ensure you installed the CUDA-compatible version of PyTorch (see installation instructions above)
2. **Out of memory errors**: Reduce GPU batch size with `-gb 1` flag
3. **Slow performance on CPU**: IExcerpt of 21,753 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:52a42afcb993ceee, topic:pytorch
matched fp:52a42afcb993ceee, topic:video-editing