Remove the background
Cuts the subject out of every frame and gives you a clip with a transparent background.
Made byDaniel Gatis
GitHubdanielgatis/rembg ↗
TestedmacOS 26 on Apple silicon (CPU), rembg 2.0.86 with u2net, Python 3.11. Not tested on Windows, Linux or a GPU.
Install
Python 3.10+, rembg with onnxruntime, and ffmpeg. The first run makes rembg download the chosen model from its own GitHub releases (u2net is about 176 MB); HAGGS does not ship or host it, and the model's licence is set by its authors, so read rembg's README before using results commercially. CPU is slow: about half a second a frame here. Output is limited to the first 8 seconds at up to 24 fps and 960 px wide.
uv venv --python 3.11 video-tools-env uv pip install --python video-tools-env/bin/python "rembg[cpu,cli]" export HAGGS_VIDEO_TOOLS_BIN="$PWD/video-tools-env/bin" export U2NET_HOME="$PWD/video-tools-env/models" # where rembg keeps its models
HAGGS does not bundle or redistribute Daniel Gatis's code; it runs the copy you installed. Then restart HAGGS with HAGGS_LOCAL_MEDIA pointing at a folder.