rembg

rembg

rembg is a tool to remove image background. It provides a CLI.

Installation

uv tool install "rembg[cpu,cli]"

CPU cause I can’t run ROCm on my iGPU lmfao.

Usage

rembg i input.jpg output.jpg

bria-rmbg is the default model. it’s slow on my CPU, but it yields the best results when compared to models like u2netp, silueta, isnet-general-use etc.