Skip to content

Releases

PAINITE v1.2

Choose a tag to compare

@github-actions github-actions released this 23 Nov 23:15
da6a191

The PAINITE server now runs on a Mac with Apple silicon, so you no longer need an NVIDIA machine to try PAINITE. Face restoration now changes only the face, and previews are much faster.

User guide: https://yuanlin2004.github.io/PAINITE/ · Server on a Mac: https://yuanlin2004.github.io/PAINITE/install.html#mac-server

What's new

Run the server on your Mac

The server tarball now includes install-mac.sh. It runs the same models on the Mac's GPU (PyTorch with Metal), with no Docker. Run it as yourself, not with sudo:

curl -LO https://github.com/yuanlin2004/PAINITE/releases/download/v1.2.0/painite-server_1.2.0.tar.gz
tar xzf painite-server_1.2.0.tar.gz
cd painite-server_1.2.0
./install-mac.sh

It needs uv (brew install uv) or Python 3.11 or newer. It installs the painite-server command in ~/.local/bin, keeps its data in ~/Library/Application Support/painite-server, and starts the server at login on https://localhost:8443. Add --lan to let other computers use it too, and --uninstall to remove it.

On an M2 Pro with 16 GB, previews take 3 to 5 seconds, and a full 24 MP photo takes 1.2 to 2.1 minutes depending on the enhancement (a DGX Spark takes about 30 seconds). The server uses up to about 9 GB of memory. The Mac app, Lightroom Edit in and the command line work with it the same way as with a Spark.

Face restoration changes only the face

The face model (face/gpen-bfr-1024@1.1.0) now finds the face's own pixels with face parsing (BiSeNet) and pastes back only those. Hands, fingers, arms, hair, scarves and background near a face keep their original pixels, and there's no more bright halo around hair against the sky.

Faster previews

  • The server renders only the tiles under the preview, so a first preview is several times faster: about 4 seconds instead of 17 on a DGX Spark, and instead of 20 to 30 on a Mac.
  • It keeps recent model output in memory, so changing only the strength updates the preview in under a second (about 0.5 s on a DGX Spark, 0.1 s on a Mac). PAINITE_TILE_CACHE_MB sets the cache size (512 MB by default).
  • The 1.2 Mac app asks for previews that line up with the server's tiles, so its preview area is slightly smaller than before. Older apps still work and get faster previews too.

Previews still match the full export pixel for pixel.

Upgrading

  • Server on a DGX Spark or Linux PC: unpack the new release and run sudo ./install.sh again. When it asks, accept the model licenses so it downloads the new face model. Or, after upgrading, run sudo painite-server models pull face/gpen-bfr-1024@1.1.0 --accept-license and sudo systemctl restart painite-server. Until the new face model is installed, the server keeps using the old one. Once it is, you can free about 450 MB with sudo painite-server models remove face/gpen-bfr-1024@1.0.0.
  • Server on a Mac: new in this release; see above.
  • Mac app: replace it in Applications.
  • Command line: unchanged apart from its version number, so updating it is optional.

Downloads

File For
painite-server_1.2.0.tar.gz Server: sudo ./install.sh on a DGX Spark or Linux PC with an NVIDIA GPU, or ./install-mac.sh on a Mac with Apple silicon
PAINITE_1.2.0_macos_arm64.zip Mac app
painite_1.2.0_amd64.deb, painite_1.2.0_arm64.deb Command line and MCP server for Ubuntu 24.04+
painite_1.2.0_darwin_arm64.tar.gz Command line and MCP server for macOS
painite_1.2.0_linux_amd64.tar.gz, painite_1.2.0_linux_arm64.tar.gz Command line and MCP server for other Linux

SHA-256 checksums: SHA256SUMS for the command line packages, and a .sha256 file next to the app and the server.

Before you start

  • The downloads aren't notarized yet, so macOS blocks files downloaded in a browser. Download with curl as shown above and in the install guide, or run xattr -d com.apple.quarantine <file>. For the app, click Open Anyway in System Settings › Privacy & Security.
  • Model licenses are separate from PAINITE's. Motion unblur (Stripformer) is for non-commercial use only, and Focus unblur (LaKDNet) is AGPL-3.0. See Licenses.

License

PAINITE is © 2026 Yuan Lin, licensed under the Apache License 2.0. Redistributions must include the NOTICE file.

PAINITE v1.1.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 06:00
d61a461

PAINITE now works with AI agents. The painite command includes an MCP server, so Claude Code, Claude Desktop and other MCP clients can check your server, preview an enhancement and enhance photos on your computer for you.

User guide: https://yuanlin2004.github.io/PAINITE/ · AI agents: https://yuanlin2004.github.io/PAINITE/agents.html

What's new

painite mcp: an MCP server for AI agents

claude mcp add painite -- painite mcp

For Claude Desktop, add painite with the argument mcp to claude_desktop_config.json (see the guide). It uses your existing painite settings, certificate and token, so there's nothing else to set up. Photos still go only to your own server.

Agents get seven tools:

Tool What it does
server_status Server health, GPU and queue, the enhancements with their strength ranges and models, and limits
enhance_photos Enhances one or more photos with one step or a pipeline of up to four, and saves the results. Same checks and safe writes as painite enhance
preview_enhancement Renders one area of a photo and shows it to the agent as an image, so it can compare settings before a full run. Reports the faces found
submit_job, get_job, download_result, cancel_job Start long jobs, check on them, save results and cancel

Try asking: "Is my PAINITE server up?", "Preview denoise at 0.6 on ~/Pictures/night.jpg", or "Restore the faces in these old portraits into ~/Pictures/restored".

Also in this release

  • The guide lists the GeForce RTX 4070 (12 GB) on Ubuntu as a tested server, and explains the NVIDIA driver 580 requirement.
  • The guide's download links now always point at the latest release.

The Mac app and the server are unchanged apart from their version number. Updating them is optional.

Downloads

File For
painite_1.1.0_amd64.deb, painite_1.1.0_arm64.deb Command line and MCP server for Ubuntu 24.04+
painite_1.1.0_darwin_arm64.tar.gz Command line and MCP server for macOS
painite_1.1.0_linux_amd64.tar.gz, painite_1.1.0_linux_arm64.tar.gz Command line and MCP server for other Linux
PAINITE_1.1.0_macos_arm64.zip Mac app
painite-server_1.1.0.tar.gz Server: unpack and run sudo ./install.sh

SHA-256 checksums: SHA256SUMS for the command line packages, and a .sha256 file next to the app and the server.

Before you start

  • They aren't notarized yet, so macOS blocks files downloaded in a browser. Download the command with curl as the install guide shows, or run xattr -d com.apple.quarantine ./painite after unpacking. For the app, click Open Anyway in System Settings › Privacy & Security.
  • In Claude Desktop, use the full path to painite (from which painite), because Desktop doesn't use your shell's PATH.
  • Model licenses are separate from PAINITE's. Motion unblur (Stripformer) is for non-commercial use only, and Focus unblur (LaKDNet) is AGPL-3.0. See Licenses.

License

PAINITE is © 2026 Yuan Lin, licensed under the Apache License 2.0. Redistributions must include the NOTICE file.

PAINITE 1.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 02:09
6d6fec1

The first release of PAINITE: AI photo enhancement that runs on your own NVIDIA GPU server, with a Mac app, a Lightroom integration and a command line tool for macOS and Linux.

User guide: https://yuanlin2004.github.io/PAINITE/

What's in it

Six enhancements, each using the model that won side-by-side tests on real photos:

Enhancement What it does Model
Denoise Removes high-ISO grain and JPEG noise and keeps texture SCUNet
Sharpen Restores crisp edges to soft photos without halos Real-ESRGAN 2×
Unblur: Motion Removes camera shake and motion smear Stripformer (non-commercial)
Unblur: Focus Recovers missed focus LaKDNet
Face Restores faces from 128 to 1024 px and leaves the rest untouched GPEN-BFR-1024 + RetinaFace
Upscale 2× Doubles width and height with real detail 2× NomosUni ESRGAN

Run up to four of them in one pass, for example denoise, then sharpen, then upscale.

Mac app (macOS 14+, Apple silicon)

  • Open a JPEG or TIFF and pick steps or a preset (Clean Up, High ISO, Portrait, Rescue Blur, Print 2×). Drag step cards to reorder them.
  • A live preview of the area you choose. It's exactly what the export produces. Compare in Split or Side by Side, and hold \ to see the original.
  • Show faces outlines the faces the Face step found.
  • Exports keep the color profile and EXIF/XMP/IPTC metadata. Results are checked before they're written, and the original is never overwritten.
  • Works as a Lightroom desktop "Edit in" editor: Save to Lightroom, then Finish.
  • Help › PAINITE User Guide and About PAINITE link to the guide.

Command line (painite, macOS Apple silicon, Linux x86-64 and ARM64)

  • painite enhance --op denoise:0.6,sharpen:0.3,upscale2x -o out/ *.jpg: batches run four photos at a time. Everything is checked before upload, results are written atomically, and downloads resume.
  • --json output and clear exit codes for scripts. painite version and painite help link to the guide.

Server (NVIDIA DGX Spark)

  • install.sh builds the Docker image, sets up a private TLS certificate, downloads the models after you accept their licenses, and installs a systemd service.
  • Per-computer access tokens, a content-addressed upload cache, a job queue with progress, and automatic cleanup of photos and results.
  • Black-and-white (grayscale) photos are accepted and come back as RGB.

Downloads

File For
painite-server_1.0.0.tar.gz Server: unpack on the DGX Spark and run sudo ./install.sh
PAINITE_1.0.0_macos_arm64.zip Mac app
painite_1.0.0_amd64.deb, painite_1.0.0_arm64.deb Command line for Ubuntu 24.04+
painite_1.0.0_darwin_arm64.tar.gz Command line for macOS
painite_1.0.0_linux_amd64.tar.gz, painite_1.0.0_linux_arm64.tar.gz Command line for other Linux

SHA-256 checksums: SHA256SUMS for the command line packages, and a .sha256 file next to the app and the server. Setup takes about 15 minutes. See Install.

Before you start

  • The Mac app isn't notarized yet. The first time you open it, macOS blocks it. Click Open Anyway in System Settings › Privacy & Security, or run xattr -dr com.apple.quarantine /Applications/PAINITE.app.
  • Model licenses are separate from PAINITE's. No weights are bundled. The server downloads them from their authors (or from PAINITE's unchanged mirror in the models-v1 release) after you accept each license. Motion unblur (Stripformer) is for non-commercial use only, and Focus unblur (LaKDNet) is AGPL-3.0. See Licenses.
  • The server is tested on the NVIDIA DGX Spark. Other Linux machines with an NVIDIA GPU and Docker should work but haven't been tested.

License

PAINITE is © 2026 Yuan Lin, licensed under the Apache License 2.0. Redistributions must include the NOTICE file.

Model mirror (models-v1)

Choose a tag to compare

@github-actions github-actions released this 22 Nov 20:37
c59c1a0

Copies of the model files that painite-server models pull installs, kept so PAINITE keeps
working if an upstream download goes away. The server downloads from here first and falls
back to the upstream URL; every file is checked against the SHA-256 in its manifest.

These files are not part of PAINITE and are not covered by its Apache-2.0 license. Each
is redistributed unchanged under its authors' license, below. Some allow only
non-commercial use. The LICENSE-* files here are full license texts: Stripformer and
LaKDNet for their network definitions, and facexlib (MIT) for the RetinaFace detection and
BiSeNet face-parsing weights used by the face model.

Model License Upstream
denoise/scunet-real-gan@1.0.0 Apache-2.0 source
face/gpen-bfr-1024@1.1.0 Apache-2.0 for GPEN-BFR-1024 (ModelScope model card; no license file in yangxy/GPEN); MIT for the facexlib RetinaFace and BiSeNet parsing weights source, source, source
sharpen/realesrgan-x2-down@1.0.0 BSD-3-Clause source
unblur_focus/lakdnet-defocus-lfdpdd-s@1.0.0 AGPL-3.0 source, source
unblur_motion/stripformer-realblurj@1.0.0 Non-commercial MIT-style (Stripformer license) source, source
upscale2x/nomosuni-esrgan-multijpg@1.0.0 CC-BY-4.0 source