Repository navigation
Releases
v1.2.0
RustMatte v1.2.0
Offline, privacy-first AI background remover for desktop and CLI (GPL-3.0-or-later).
v1.2.0 is Windows-first. macOS and Linux support are out of scope for this release (their artifacts are provided as experimental/best-effort only); GPU CoreML verification on Apple hardware is deferred.
RustMatte v1.2.0 is prepared from the main branch after the release-gate fixes (RAW/HEIC verification, GPU OFF-by-default, release CI guard, dirs stability). This release is published after owner authorization (2026-12-04). Assets are built and attached by CI.
What's New in v1.2.0
- Camera RAW & Apple HEIC/HEIF decoding: Pure-Rust HEIC/HEIF decode (
heic-rs) and embedded-JPEG preview extraction for Camera RAW (.CR2,.NEF,.ARW,.DNG). Verified in CI against real sample files (Gate G-4): 6/6 HEIC decoded, 3/4 RAW decoded (NEF, ARW, CR2); one DNG whose embedded preview stores raw sensor data is cleanly rejected with a typed error rather than crashing. RAW output dimensions equal the embedded JPEG preview size, not the camera's full sensor resolution. - GPU execution providers OFF by default:
ort/directml(Windows) andort/coreml(macOS) are now gated behind the cargo featuregpu(disabled in default/release builds). Runtime migratesauto/directml/coremltocpuwhen the feature is unavailable and errors clearly on explicit GPU selection without it. - Release workflow CI guard (G-17): the release workflow now requires a successful CI run for the tagged commit before building release artifacts.
- Path stability verified (G-13/G-19):
dirs 6.0.0and7.0.0produce identicaldata_local_dir/config_dirresults;dirsstays pinned at=6.0.0.
What Works
- Desktop App (Windows x64 primary): Drop photos or folders, preview before/after cutouts with zoom/pan, choose Fast (
U-2-Netp) or Balanced (BiRefNet Lite 512) tiers, refine edges, and export transparent or solid-background PNGs (Save/Save all). - 100% Offline After Setup: Zero telemetry, analytics, or uploads. Models download once on consent (verified by SHA-256) or can be imported locally from
.onnx, and"Never use the network"enforces strict offline mode. - CLI (
rustmatte): Single-image and folder batch mode (--recursive,--skip-existing,--max-side,--device cpu), plusmodels list | download | delete | verify.
What Does Not / Known Limitations
- Experimental platforms: macOS (
aarch64.dmg, Apple Silicon only; no Intel build) and Linux (.AppImage,.deb) are built in CI and have not been manually tested on physical macOS/Linux machines. - GPU (DirectML/CoreML): Disabled by default in v1.2.0 (
gpufeature). DirectML was exercised locally by the owner during development; CoreML runtime behavior remains UNVERIFIED on physical Apple hardware. - RAW coverage: One DNG sample is cleanly rejected (embedded preview holds raw sensor data, not a decodable JPEG). Behavior on other cameras/RAW variants remains UNVERIFIED.
- Glass & translucent objects: Dichotomous foreground segmentation treats transparent glass/bottles as solid objects.
- Fast tier caveat:
U-2-Netpis fast but best for people/products on clean backgrounds; may leave smears on fur or busy backgrounds. - Maximum tier (
BEN2 Base FP32): Present in the code but hidden in the model manifest — it cannot be downloaded, imported, or selected until its source is public and hash-verified.
Unsigned App Warnings
- Windows (SmartScreen): Unsigned executable. Verify SHA-256 first, then click More info -> Run anyway if prompted.
- macOS (Gatekeeper): Unsigned
.dmg/.app. Verify SHA-256 first, then use System Settings -> Privacy & Security -> Open Anyway (orxattr -dr com.apple.quarantine /Applications/RustMatte.app). - Linux: Requires system
libwebkit2gtk-4.1-0,libgtk-3-0,libayatana-appindicator3-1,librsvg2-2(pluslibfuse2on some distros for AppImage).
Assets
| Asset | Bytes |
|---|---|
RustMatte_1.2.0_x64-setup.exe (Windows NSIS) |
10,464,264 |
RustMatte_1.2.0_aarch64.dmg (macOS Apple Silicon) |
13,526,692 |
RustMatte_1.2.0_amd64.AppImage (Linux) |
92,551,672 |
RustMatte_1.2.0_amd64.deb (Debian/Ubuntu) |
15,420,720 |
rustmatte-cli-v1.2.0-x86_64-pc-windows-msvc.zip |
9,376,380 |
rustmatte-cli-v1.2.0-aarch64-apple-darwin.tar.gz |
10,602,243 |
rustmatte-cli-v1.2.0-x86_64-unknown-linux-gnu.tar.gz |
12,245,499 |
SHA256SUMS.txt |
727 |
Verify Checksums
Compare downloaded files against SHA256SUMS.txt:
- Windows:
Get-FileHash .\RustMatte_1.2.0_x64-setup.exe -Algorithm SHA256 - macOS:
shasum -a 256 -c SHA256SUMS.txt --ignore-missing - Linux:
sha256sum -c SHA256SUMS.txt --ignore-missing
Reporting Problems
Open a Bug Report at https://github.com/yehudaaadev/RustMatte/issues/new/choose and attach the output of About & Licenses -> Copy diagnostic info (contains no file paths). For security issues, report privately via https://github.com/yehudaaadev/RustMatte/security/advisories/new.
RustMatte v1.0.0
RustMatte v1.0.0
Offline, privacy-first AI background remover for desktop (Windows, macOS, Linux) and CLI, built with a Rust core, ONNX Runtime, and Tauri 2.
Highlights
- 100% Offline & Private: Zero telemetry, tracking, or cloud uploads. Models are downloaded on demand on first run with explicit user consent or imported locally from
.onnxfiles. - Mandatory 5-Step Guided Setup Wizard: Automatically detects local RAM via
sysinfo, asks two simple questions about photo workflow, and recommends the optimal model without storing answers. - Two Verified Model Tiers:
- Fast Tier (
U-2-Netp, 4.36 MB, Apache-2.0): ultra-fast CPU inference (~0.15–0.3s) for products and clean subjects. - Balanced Tier (
BiRefNet Lite 512, 183 MB, MIT): high-accuracy segmentation (~1.5–3s) for portraits, hair, and pet fur.
- Fast Tier (
- Dedicated Settings & Model Management: Inspect model cache, verify SHA-256 integrity, delete cached weights with freed disk space confirmation, re-run setup wizard, and lock network access.
- Side-by-Side Model Retry: Re-process individual photos with another model while preserving existing batch results.
- Visual Design System: Refined Light and Dark themes strictly tuned for WCAG AA (>= 4.5:1) contrast, collapsed advanced panel, and clean inline SVG dropzone.
- Bilingual Interface: 100% complete English and Indonesian dictionaries.
Downloads and Checksums
Installers for Windows (.exe), macOS (.dmg), and Linux (.AppImage, .deb) as well as standalone CLI binaries are available below. Verify downloads using SHA256SUMS.txt.
v0.1.0-rc1
Added
- Tauri 2 Desktop Application (
crates/app):- Native standalone executable
rustmatte-app.exe(34.5 MB). - Modern Svelte 5 frontend with runes (
$state,$derived). - Interactive Before/After split comparison slider with touch and mouse drag handles.
- Background color preview picker (Transparent checkerboard, Solid White, Solid Black, Custom HEX color).
- Drag-and-drop file queue supporting single and batch image additions.
- Real-time output settings (Quality vs Fast tier, CPU vs DirectML GPU device, early downscaling slider, edge refinement toggle).
- Model status detection and on-demand background model downloader in UI.
- Bilingual localization (English and Bahasa Indonesia) with instant reactive switching.
- Dark and Light theme toggle with localStorage persistence.
- Per-stage latency breakdown display (Decode, Preprocess, Inference, Refinement).
- Native standalone executable
- Hardware execution providers for ONNX Runtime:
- Added
--device <cpu|directml|coreml|auto>CLI argument (default:cpu). - Added
directmlcargo feature enabling DirectX 12 hardware acceleration on Windows. - Added
coremlcargo feature for Apple Silicon / Neural Engine on macOS. - Multi-stage graceful fallback to CPU during session creation and runtime inference (e.g., when GPU memory is exhausted on large models).
- Explicit hardware session deallocation before CPU fallback to prevent dual-session memory exhaustion.
- Active execution provider reporting in verbose output and batch summary reports.
- Added
- Advanced edge refinement pipeline (
crates/core::refine):- Fast Guided Filter with separable 2D box filtering (
$O(N)$ runtime) using original grayscale luminance guidance. - Selective transition zone feathering: locks interior foreground (
$\ge 0.95$ ) to full opacity and background ($\le 0.05$ ) to full transparency, preventing blurry boundaries while refining uncertain edges. - Boundary color defringing:
$5 \times 5$ neighborhood decontamination extrapolating solid foreground RGB into semi-transparent edge pixels ($\alpha < 235$ ) to eliminate colored halos.
- Fast Guided Filter with separable 2D box filtering (
-
--no-refineCLI flag to disable postprocessing edge refinement and export raw segmentation masks. - Batch processing mode in
rustmatteCLI: support directory inputs with automatic detection of supported image formats (.jpg,.jpeg,.png,.webp,.bmp). -
--out <DIR>output directory option (defaults torustmatte-outputadjacent to input directory). -
--recursive/-rflag for recursive directory scanning with symlink traversal guards. - Deterministic collision handling: automatically formats conflicting output filenames as
<stem>_<ext>.png. -
--skip-existingflag to resume interrupted batches without reprocessing existing outputs. -
--max-side <N>early downscaling to bound processing time and peak RAM on high-resolution images. - Batch progress reporting to
stderr:[index/total] filename: status (elapsed). - Batch summary report: processed count, skipped count, failure count, warnings, total execution time, and average per-image duration.
- Tri-state exit codes:
0(all ok),1(total failure or invalid arguments),2(partial failure). - Automated model downloader (
crates/core::download) with one-time user consent prompt, progress indicator, SHA-256 verification, and atomic rename. - Hierarchical model lookup chain:
--model-path>RUSTMATTE_MODEL_DIR> OS cache directory >./models/. -
models listandmodels downloadCLI subcommands for offline model weight management. - License and security auditing via
cargo-deny(deny.toml) integrated into CI. - Multi-platform GitHub Actions release workflow (
.github/workflows/release.yml) for Windows, macOS, and Linux.
Changed
- Standardized image decoding limits:
MAX_IMAGE_DIMENSION = 16384andMAX_ALLOCATION_BYTES = 512 MB. - EXIF orientation handling with automatic image rotation.
- Pinned ONNX Runtime session configuration adhering to Decision D-015.
Fixed
- Fixed MSVC
link.exeout-of-memory errors by restricting concurrent build jobs (-j 2). - Fixed Linux/macOS build failures by gating Windows-specific
psapilinkage in test examples behind#[cfg(windows)].
Full Changelog: https://github.com/yehudaaadev/RustMatte/commits/v0.1.0-rc1
Model Weights (v1)
Pinned ONNX model weights for RustMatte first-run download. Verify SHA-256 against MODELS.md.