Metadata-Version: 2.4
Name: unbg
Version: 0.1.2
Summary: Ultra-lightweight, airgapped AI background removal CLI
Author-email: Brian McCollum <brian@mcco.dev>
Requires-Python: >=3.13
Requires-Dist: numpy>=2.0.0
Requires-Dist: onnxruntime>=1.18.0
Requires-Dist: pillow>=10.0.0
Requires-Dist: pytest>=8.0.0
Requires-Dist: typer>=0.12.0
Description-Content-Type: text/markdown

# unbg

A command-line tool for image background removal using the RMBG-2.0 model via ONNX Runtime. Runs locally and offline once weights are downloaded.

## Installation

Install using `pipx`:

```bash
pipx install unbg
```

## Usage

### 1. Download Model Weights

Download the RMBG-2.0 ONNX weights to your local cache (`~/.cache/unbg/`):

```bash
unbg download-weights
```

### 2. Remove Backgrounds

Single image:
```bash
unbg input.jpg -o output.png
```

Directory of images:
```bash
unbg ./images -o ./output
```
