Skip to content
scornikPublic

About

Real-time AI background removal, blur and replacement for OBS Studio. Runs entirely offline on Windows, Linux and macOS, with GPU acceleration and automatic CPU fallback.

Topics

Resources

Stars

18 stars

Watchers

0 watching

Forks

Repository files navigation

ProMatte

AI background removal for OBS Studio.
Real time, professional edges, and entirely on your own machine.

Build Latest release Platforms License


ProMatte is a professional, fully local, real-time AI background removal and replacement filter for OBS Studio. Add it to your webcam and choose Remove, Blur, Replace (colour / image / video / another OBS source) or Dim.

  • Runs entirely on your PC — no cloud, no account, no telemetry, no frames ever leave the machine.
  • GPU acceleration on NVIDIA, AMD and Intel (DirectML); automatic CPU fallback.
  • Never lags OBS: inference runs on its own thread with a latest-frame-wins mailbox; the render thread only ever uses the newest matte.
  • Professional edges: joint-bilateral upsampling, feathering, motion-adaptive temporal stabilisation, edge decontamination and halo removal.
  • Adaptive quality: an Auto mode picks the model and AI resolution for your hardware and steps down gracefully when the machine is busy.
  • Model Manager with licence-checked models, checksums and offline operation.

Downloads: latest release — Windows installer, Linux .deb/.tar.gz, macOS bundle archive.

Quick start

Install the package for your platform (below), then on every platform:

  1. Start OBS and right-click your camera source → Filters → + → ProMatte AI Background Removal.
  2. Leave Background on Remove (transparent) — or pick Blur / Replace / Dim — and Quality on Auto. Done.
  3. Optional: in the Model manager section download Robust Video Matting for the best hair detail on GPUs (15 MB, one-time download).

Note that the presets tune matte quality and cost only. None of them crops or zooms — "Tutorial / Talking head" does not frame your head for you. Use OBS' own Crop/Pad filter or the source transform for that.

See docs/troubleshooting.md if something looks wrong.

Windows

For OBS Studio 33, run ProMatte-Setup-1.0.3-OBS33.exe (Windows 10/11 64-bit). The installer finds your OBS directory and removes any older copy for you. Close OBS before installing, then restart it.

For OBS 30–32, use the Windows installer from release 1.0.2. The OBS 33 build uses a new image API and cannot load on earlier OBS versions. See OBS 33 compatibility for build details. The Linux and macOS packages below also target OBS 33.

Linux — Ubuntu 26.04 x86_64, OBS 33

Install the official OBS Studio 33.0.1 Ubuntu 26.04 .deb first, then:

sudo apt install ./promatte_1.0.3_ubuntu26.04-amd64-OBS33.deb

The alternative promatte_1.0.3_ubuntu26.04-x86_64-OBS33.tar.gz contains the same installation tree. It targets Ubuntu 26.04 and compatible systems; it is not a portable binary for older distributions.

The module installs to /usr/local/lib/x86_64-linux-gnu/obs-plugins/promatte.so, data to /usr/local/share/obs/obs-plugins/promatte, and ONNX Runtime beside the module in obs-plugins/promatte/. Check its dependencies before starting OBS:

ldd /usr/local/lib/x86_64-linux-gnu/obs-plugins/promatte.so

No library should report not found. These packages do not install into Flatpak or Snap sandboxes. For OBS 30–32 use release 1.0.2.

macOS — Apple Silicon (M1/M2/M3/M4) and Intel

For OBS 33 on macOS 13 or newer, one universal bundle covers Intel and Apple Silicon. Quit OBS and remove the old promatte.plugin before installing.

# 1. unpack (the archive contains a versioned folder)
unzip ProMatte-1.0.3-macos-universal-OBS33.zip

# 2. install for the current user
mkdir -p ~/Library/Application\ Support/obs-studio/plugins
mv ProMatte-1.0.3-macos-universal-OBS33/promatte.plugin \
   ~/Library/Application\ Support/obs-studio/plugins/

# 3. the bundle is ad-hoc signed, not notarized; clear download quarantine
xattr -dr com.apple.quarantine \
   ~/Library/Application\ Support/obs-studio/plugins/promatte.plugin

Then quit OBS completely — ⌘Q, not just closing the window — and start it again. The bundle carries its own ONNX Runtime in Contents/Frameworks, so there is nothing else to install.

The 1.0.2 macOS binary uses image APIs removed in OBS 33 and cannot load there. For OBS 30–32, keep 1.0.2. Clearing quarantine does not fix missing symbols or every macOS signing-policy error; see the user-issue verification report.

If the filter does not appear in the list, open Help → Log Files → View Current Log and search for promatte: the module logs its version and the backends it found as soon as OBS loads it, and dyld prints the exact unresolved library if it did not.

Requirements

Minimum Recommended
OS (1.0.3 packages) Windows 10 1903 64-bit, Ubuntu 26.04 x86_64, or macOS 13 (Intel or Apple Silicon) Windows 11
OBS (1.0.3 packages) 33.0 33.0.1
GPU any D3D12-capable GPU, or CPU only NVIDIA GTX 1050 / AMD RX 560 / Intel Arc or newer
CPU (CPU-only mode) 4 threads 8 threads
Camera 720p 1080p 30 fps

Platform support

Platform Package GPU acceleration State
Windows x64 ProMatte-Setup-<version>.exe DirectML on any D3D12 GPU (NVIDIA / AMD / Intel); CUDA and TensorRT when an ONNX Runtime build providing them is installed released and verified on real hardware, see docs/final-verification.md
Linux x86_64 Ubuntu 26.04 .deb / .tar.gz for the official OBS 33 package CPU; CUDA when a compatible provider is available Native unit/inference tests, package installation, dependency resolution, and module registration passed. See verification.
macOS (Intel + Apple Silicon) Universal .zip / .tar.gz of promatte.plugin CPU and CoreML Native Intel and Apple Silicon unit/inference, module-load, signature, and rebuild checks passed for OBS 33; Intel camera operation is also community-reported. See verification.

Packages for Linux and macOS are produced by the OBS 33 release workflow, tested on native runners, and attached to the 1.0.3 release.

Building from source

Windows

Prerequisites: Visual Studio 2022/2026 Build Tools (C++ workload), CMake ≥ 3.28, Python 3.12 (for model conversion only), Inno Setup 6 (installer only).

# 1. legacy OBS 30–32 dependencies (the default SDK is OBS 31.1.1)
powershell -ExecutionPolicy Bypass -File tools/setup-deps.ps1

# 2. convert the bundled models (one-time; needs Python + tf2onnx/paddle2onnx)
py -3.12 -m pip install -r tools/models/requirements.txt
py -3.12 tools/models/convert_models.py
py -3.12 tools/models/update_manifest.py

# 3. configure and build
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release --parallel

# 4. run the tests
build\bin\Release\promatte-unit-tests.exe
build\bin\Release\promatte-integration-tests.exe      # headless libobs

# 5. install into OBS for development (no admin: %ProgramData%\obs-studio\plugins)
cmake --build build --config Release --target deploy-user

# 6. build the installer
powershell -ExecutionPolicy Bypass -File installer/build-installer.ps1

The default setup above targets OBS 30–32. For OBS 33, supply a matching OBS 33 SDK as described in compatibility notes; the 31.1.1 default cannot produce an OBS 33 binary. The staged plugin tree is in build/stage/ and mirrors the OBS install layout.

Linux and macOS — OBS 33 release builds

The reproducible platform commands are in the OBS 33 release workflow. It uses matching OBS 33.0.1 headers plus the official Linux .deb or macOS .dmg runtime, rather than rebuilding libobs or using an older distribution SDK.

  • Linux builds on Ubuntu 26.04 x86_64 against the official OBS package under /usr/local, with ONNX Runtime 1.24.4 from Microsoft's NuGet package.
  • Mac builds run natively on Intel and Apple Silicon, use ONNX Runtime 1.23.0 NuGet headers/libraries, and combine the verified slices into a universal distribution targeting macOS 13+.
  • Both run the unit/inference suite, unsupported/missing runtime API tests, and actual OBS 33 module registration. Linux supplies Xvfb for OBS startup; Mac additionally verifies signatures, install-name rewrites, and the final packed/unpacked bundle.

Run it from the repository's Actions → OBS 33 release packages page, or:

gh workflow run obs33-release.yml --repo scornik/ProMatte
# Linux only:
gh workflow run obs33-release.yml --repo scornik/ProMatte -f platforms=linux

For a local build, follow the dependency preparation commands for your platform in that workflow. tools/release-sdk/ generates an imported OBS::libobs target from the matching source headers and installed library. Pass its output as -Dlibobs_DIR=... and the prepared runtime as -DPROMATTE_ORT_ROOT=... when configuring ProMatte. Keep the SDK and runtime headers/libraries paired.

The normal build workflow reuses these same native checks. Publication is a separate manually dispatched workflow that requires a successful main build at an explicit commit and verifies every archive checksum before uploading.

Repository layout

CMakeLists.txt             build system (core library, plugin, tools, tests)
assets/                    project logo (light and dark SVG)
src/plugin/                module entry point
src/obs/                   OBS filter, settings, presets, background sources
src/rendering/             GPU pipeline (effects: downscale, refine, blur, composite), debug overlay
src/inference/             SegmentationBackend abstraction, model descriptors, worker thread
src/backends/              ONNX Runtime backend (DirectML / CUDA / TensorRT / CoreML / CPU providers)
src/preprocessing/         BGRA → tensor conversion, resizing
src/postprocessing/        CPU matte refinement (confidence curve, morphology, components)
src/temporal/              motion-adaptive temporal stabiliser
src/performance/           adaptive quality controller and statistics
src/models/                model manager + downloader (WinHTTP on Windows, libcurl elsewhere)
src/ui/                    OBS properties panel
data/                      effects, locale, model manifest (+ bundled models after conversion)
models/                    model documentation and conversion outputs
tools/benchmark/           promatte-bench (JSON benchmark utility)
tools/models/              conversion + manifest scripts
tests/unit, tests/integration, tests/visual
installer/                 Inno Setup script + build script
docs/                      research, architecture, performance, model evaluation, troubleshooting, verification

Documentation

Privacy

ProMatte processes camera frames in memory on the local machine only. It does not upload, save or transmit frames, does not collect usage data and does not require an account. The only outgoing network request is the model download that the user starts explicitly from the Model Manager (HTTPS to the model authors' release pages, verified by SHA-256).

License

GPL-2.0-or-later. Third-party components are listed in THIRD_PARTY_LICENSES.md.

About

Real-time AI background removal, blur and replacement for OBS Studio. Runs entirely offline on Windows, Linux and macOS, with GPU acceleration and automatic CPU fallback.

Topics

Resources

Stars

18 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages