| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| backgroundremover-0.4.1-py3-none-any.whl | 2026-02-17 | 29.5 kB | |
| backgroundremover-0.4.1.tar.gz | 2026-02-17 | 40.1 kB | |
| BackgroundRemover v0.4.1 source code.tar.gz | 2026-02-17 | 342.1 MB | |
| BackgroundRemover v0.4.1 source code.zip | 2026-02-17 | 342.1 MB | |
| README.md | 2026-02-17 | 1.7 kB | |
| Totals: 5 Items | 684.3 MB | 7 | |
Highlights
-
ProRes 4444 default: Transparent video output now defaults to
prores_kswithyuva444p10le(10-bit color with alpha) instead ofqtrle. Much better compression, color fidelity, and NLE compatibility (DaVinci Resolve, Premiere, Final Cut Pro). The oldqtrlecodec is still available via--alpha-codec qtrle. -
Smart worker scaling: Worker count (
-wn) is now dynamically capped based on your actual GPU VRAM rather than a hard limit. The tool calculates per-worker memory (CUDA context + model + JIT trace + batch tensors) and prevents over-allocation that caused hangs. -
Mask threshold for sharp edges: New
-mt/--mask-thresholdoption binarizes the alpha mask at a given threshold (0-255) for hard/crisp cutouts — ideal for cartoonish images, logos, and illustrations. -
Device diagnostics: Prints detected device, GPU name, and VRAM at startup so you can verify GPU acceleration is working.
New CLI Flags
| Flag | Description |
|---|---|
-mt 128 / --mask-threshold 128 |
Binarize mask for sharp edges (0-255) |
Fixes
- [#181]: Video processing hanging with high worker counts — workers now dynamically capped to what GPU VRAM can support.
- [#122]: Soft/blurry edges on cartoonish images — new
--mask-thresholdoption for hard cutouts. - [#145]: No indication of GPU usage — now prints device info (CUDA/MPS/CPU) with GPU name and VRAM at startup.
Breaking Changes
- Default transparent video codec changed from
qtrletoprores_ks. Output files will be smaller with better color but require ProRes-compatible playback. Use--alpha-codec qtrlefor the old behavior.
Upgrade
:::bash
pip install --upgrade backgroundremover