autoshade README

The project's README from github.com/skymanbp/autoshade. As one markdown file: README.md.

AutoShade icon

AutoShade

Describe the picture. Keep the RAW.

AI decides what to change — a deterministic Rust engine does it.
An editable, Lightroom-ready recipe instead of AI pixels.


Release Platforms Rust License

Download v1.18.5  ·  Website  ·  Manual  ·  Showcase  ·  In depth


Desert canyon at dusk: straight conversion, generated target, the recovered recipe rendered on the RAW, and the same recipe on the AI-denoised RAW, with a 1:1 detail row

Straight conversion → generated target → recovered recipe on the 61 MP RAW → same recipe after AI denoise. Bottom row: 1:1 crops.


[!TIP] The generated picture is a target, never the delivery. An image model paints the look you describe; AutoShade fits an editable develop recipe to it and renders that recipe on the full-resolution RAW. The recipe carries the look, the sensor carries the detail — and in the recipe path, the AI never touches a pixel.

Two AI paths, kept apart in the app, the command line and this page:


Highlights

🎯 Reverse-fit any look
reimagine generates the picture from your frame; match recovers a recipe from it — or from any finished rendition of the same shot. Look error 0.161 → 0.023.

🌌 A RAW denoiser trained here
Cleans the sensor mosaic before demosaic. Keeps 98.70 % of 17,817 faint stars on a real ISO 2500 frame.

📐 Every slider is a written law
Tone, Texture, Sharpening, masks and lens geometry are closed-form laws with named constants, each pinned by its own test.

🔁 Round-trips through Lightroom
An exported .xmp is merged byte for byte into Lightroom's own; the full develop survives a Lightroom rewrite and imports back exactly.

🖼️ Your library is the style guide
Point it at finished photos you love; each develop sees the 3 closest as a reference. Embeddings run locally.

🧩 Local AI masks, no API key
Subject, sky and point-prompted objects (BiRefNet, OneFormer, SAM 2.1), plus HDR, focus and noise stacking.

Showcase

Stone viaduct: straight conversion, generated target, and the recovered recipe rendered on the RAW, with a 1:1 detail row

Reverse-fit. Prompt: “a clearer afternoon, a little more contrast, a slightly deeper blue sky.” The recipe renders the look on the 9504 × 6336 RAW; the generated frame carries neither the detail nor the resolution.


Lakeside island town: straight conversion and three AI develops driven by three different direction texts

One RAW, four looks. Straight conversion, then moody, golden and vivid — only the direction text changes.


One 1:1 window of a 61 MP star field, two ways: AutoShade's neutral develop with no denoise and with its own denoiser at the 71 % default

ISO 2500 star field, 1:1. AutoShade with no denoise, then its own denoiser at 71 %. Clean colour, natural grain, faint stars intact.

Every number and prompt → Showcase

What is new here

Six techniques you will not find in another RAW developer. Each is written up in full — equations, figures, refused training runs — in AutoShade in depth.

Technique In one line
1 Generate, then reverse-fit An editable recipe from any finished look, solved at the distribution level
2 Evidence-gated local fit A divergence score D picks full solve or bounded mode; every local move must earn its place
3 Style by retrieval SigLIP 2 search over your own finished photos, not a preset
4 Every slider is a written law Tone, Texture, Sharpening, masks and lens geometry as closed-form laws, each pinned by its own test
5 A denoiser with pre-written pass marks Trained on this project's data; two later runs failed their marks and were refused
6 The camera's own look A per-photo base curve read from the embedded preview, like with like

How it works

AutoShade architecture: three front ends over one Rust library with the reference library, reverse-fit, local producers and the local-field analyzer; local Python sidecars for embeddings, descriptions, correspondence, segmentation and two denoisers, plus the depth and face sidecars (eight in all); opt-in external AI services

Diagram generated from autoshade.architecture.json · zoom it online · full design in ARCHITECTURE.md

Measured numbers

What Measured
Automated test battery 2077 library / 30 CLI / 383 GUI / 2+2 contract tests
RAW coverage 24 extensions · 725 camera bodies · nine-camera zoo 9/9
Reverse-fit, stone viaduct look error 0.161 → 0.023 at confidence 0.63
Reverse-fit, desert canyon look error 0.129 → 0.048 · sky ΔE 3.8
Faint stars kept through the denoiser 98.70 % of 17,817 stars on an ISO 2500 frame

The full table — 20+ rows with conditions and sources — is in AutoShade in depth; scripts/check_docs.py re-derives the pinned claims.

Install and quickstart

Platform Get it
Windows AutoShade-Setup-1.18.5.exe — per-user, no admin. Or the portable autoshade-1.18.5-windows-x64.zip
macOS AutoShade-1.18.5-macos-universal.zip (Apple silicon + Intel), or -macos-cli.zip
Linux AutoShade-1.18.5-linux-x64.zip — command line only

All on the v1.18.5 release page. Python 3 is needed only for the local AI sidecars; model weights download on first use.

[!NOTE] macOS: the app is ad-hoc signed, not notarised — on first launch use System Settings → Privacy & Security → Open Anyway (once per machine).

Desktop app — it starts on a mode page (Landscape, Portraits, Normal; see Choosing a mode); then open a photo (Ctrl+O), move a slider, export with Ctrl+Shift+E. The original is never touched. Normal is a short one-click panel for phone and jpg photos (Normal mode).

CLI

# manual develop
autoshade apply photo.ARW recipe.json -o developed.tif

# AI develop, end to end
autoshade auto photo.ARW --guidance "natural color; protect highlights" -o developed.tif

# describe a look, then recover it as an editable recipe on the RAW
autoshade reimagine photo.ARW --prompt "a clearer afternoon, deeper blue sky"
autoshade match photo.ARW out/photo.reimagine.png --render

Upgrades, silent installs and every command: User manual.

Release assets and checksums

Built by GitHub Actions from the tag; checksums.txt carries every SHA-256. The RAW denoiser weights are uploaded by hand to the release the sidecar pins — releases/download/v1.6.0/autoshade-raw-denoise-v2.pth, mirrored byte-exact on Hugging Face — and refused unless size and SHA-256 match the pin in python/denoise_raw.py.

File Size SHA-256
autoshade.exe (CLI) 26,305,024 bytes 02b8c5b59140568b7c181fd74d39734a921f777ec8bebaaa3b93821c170adf9e
autoshade-gui.exe (desktop app) 33,923,072 bytes 3ffcc73d93ca987fd829d001430fe67aa01a6fbb6bd400a9e5b65249656d8068
AutoShade-Setup-1.18.5.exe (installer) 17,001,002 bytes b133f5b03f2b5e3581d2fb8af33a1d3ed42a1b07de594ef006853e5d0de5fff0
autoshade-1.18.5-windows-x64.zip (portable archive) 23,123,635 bytes 90501b97a9ea819ebdedd207ed4774599f0ecd7abc3db331810a744e3027e9e9
AutoShade-1.18.5-macos-universal.zip (macOS app bundle) 46,321,055 bytes 70db2d469e6751ac9f0b4bef4569b76d79b76a101a085ac535f01379fdf3374a
AutoShade-1.18.5-linux-x64.zip (Linux command line only) 11,092,943 bytes 5ca35b82ae55a284056e03596cdf70ec149bfc90449d2f566e12d1b0f664494f
AutoShade-1.18.5-macos-cli.zip (macOS command line only) 20,137,259 bytes a1b158500cf51812dc87ba120b228a89a8814cc75e70ffaa1a50eb822eba0a12
autoshade-raw-denoise-v2.pth (RAW denoiser weights, fetched on demand from the v1.6.0 release) 130,590,559 bytes ffafa40a53f52092149db2fcf03636117ad6855e1068142d4f6b03b634e9f9c4
Build from source

Rust edition 2024, rustc/cargo 1.94.

cargo build --release                                   # CLI
cargo build --release --features gui --bin autoshade-gui  # desktop app

Local AI tools need Python packages (weights download on first use):

Tool Packages
Subject mask (BiRefNet) torchvision timm einops
Subject fallback (U²-Net) rembg
Sky / objects (OneFormer, SAM 2.1) transformers torch
AI denoise torch opencv-python numpy einops requests

Supported formats

Canon CR2 develop
.cr2 · Canon EOS 40D
Canon CR3 develop
.cr3 · Canon EOS R6
Nikon NEF develop
.nef · Nikon D700
Sony ARW develop
.arw · Sony α7 III
Olympus ORF develop
.orf · Olympus E-M5
Panasonic RW2 develop
.rw2 · Panasonic DMC-GX85
Pentax PEF develop
.pef · Pentax K-5
Ricoh DNG develop
.dng · Ricoh GR II
Fujifilm RAF X-Trans develop
.raf · Fujifilm X-S10 — X-Trans, approximate

Nine real CC0 files, fully decoded and neutral-rendered — not embedded previews.

Camera RAW — 24 extensions

arw, dng, raw, raf, nef, cr2, cr3, orf, rw2, pef, srw, 3fr,
fff, iiq, mef, mos, erf, kdc, dcr, dcs, crw, nrw, mrw, ari

Decoded by rawler 0.7.2, which carries 725 camera models. No embedded preview: 12 of the 24 formats store none. They are orf, srw, nrw, mef, mos, kdc, dcr, dcs, erf, iiq, crw, and ari; AutoShade renders its own neutral version instead.

Baked rasters — 8 extensions: jpg jpeg png tif tiff bmp webp gif, with ICC conversion.

Tech stack

Rust (rustc/cargo 1.94, edition 2024) · rawler · image · qcms · rayon · egui/eframe · tiny_http — Python sidecars on PyTorch.

RAW decode, 24 formats, 725 bodies · deterministic f32 develop engine · hand-rolled XMP layer (no XML crate) for byte-exact Lightroom merges. The current battery is 2077 library (2054 pass + 23 #[ignore]d forensic probes) / 30 CLI / 383 GUI / 2+2 contract tests. Per-subsystem notes: In depth → Implementation · equations and provenance: TECH_STACK.md.

Status and limitations

License

MIT — see LICENSE. Showcase photographs © 2026 skymanbp, all rights reserved (not MIT).

Models, fonts and samples

Model weights download separately and remain their authors' property; every pinned model also has a byte-exact mirror on Hugging Face (Azng0/autoshade-mirror-*), checksum-verified either way — table in python/_mirror.py.

Model Purpose License
SCUNet AI denoise (baked sources) Apache-2.0
DRUNet-colour (DPIR), fine-tuned here as autoshade-raw-denoise-v2.pth AI denoise (RAW mosaic) MIT; fine-tuning pairs from RawNIND, CC BY-SA 4.0
BiRefNet Subject segmentation MIT
U²-Net Subject fallback Apache-2.0
OneFormer ADE20K Sky segmentation MIT
SAM 2.1 Point-prompted object masks Apache-2.0
MoGe-2 ViT-L (code in python/_moge/) AI lens blur depth map MIT (DINOv2 backbone code Apache-2.0)
MediaPipe Face Landmarker (BlazeFace + Face Mesh V2) Portraits mode face and eye outlines Apache-2.0
SigLIP 2 Style embeddings Apache-2.0
Qwen3-VL-2B-Instruct Local look descriptions Apache-2.0
Stable Diffusion 2.1 DIFT correspondence field CreativeML Open RAIL++-M

Fonts: subset Noto faces (SIL OFL) and a Lucide icon face (ISC) — texts in assets/fonts/. RAW samples: the nine format-grid files are from raw.pixls.us under CC0 1.0, SHA-256-verified.

Thanks to the rawler, image, qcms, rayon, clap, serde, ureq, egui/eframe, tiny_http and local-model communities.


Made for photographers who want to know what the AI changed — in numbers.

autoshade (skymanbp/autoshade)

Searching Database…

What is this?AutoShade is an AI-assisted RAW photo developer: you describe the look you want, a GPT-style vision step proposes an edit recipe, and a deterministic Rust engine renders that recipe onto the full-resolution RAW file — producing Lightroom-compatible XMP sidecars instead of AI-generated pixels.
Does the AI actually generate my final photo, or just guide an edit?The AI only generates a reference target image or reads your prompt; it never touches the delivered pixels. AutoShade fits an editable develop recipe to that target and renders it on your original RAW file, so the sensor data carries the detail.
How do I get it running?Download the prebuilt release for your platform: a Windows installer or portable zip, a macOS universal app bundle or CLI-only zip, or a Linux x64 CLI zip, all from the v1.9.0 release page; then open a photo in the desktop app (Ctrl+O), adjust, and export (Ctrl+Shift+E).
Do I need Python or an API key to use it?Python 3 is only needed for the local AI sidecars (masks, denoise, embeddings, descriptions); model weights download automatically on first use and no API key is required since everything runs locally.
Any install pitfalls or missing platform support?The macOS build is ad-hoc signed, not notarised, so you must manually allow it via System Settings on first launch; also there is no notarised macOS build, no Linux desktop GUI (CLI only on Linux), and X-Trans RAW demosaic plus bit-exact Adobe rendering are explicitly out of scope.
Which operating systems and interfaces does it support?It ships as a desktop app, CLI, and local loopback web UI sharing one Rust library, with builds for Windows, macOS (Apple silicon and Intel), and Linux (Linux is CLI-only).
Does my photo library or pixel data leave my machine?Your library stays local and read-only; the only time pixels leave your machine is if you explicitly trigger an AI operation that needs a remote call, and all embeddings and masks otherwise run locally.
What RAW formats and cameras does it support?It decodes 24 RAW extensions across 725 camera bodies via the rawler library (e.g. CR2, CR3, NEF, ARW, ORF, RW2, PEF, DNG, RAF), plus 8 baked raster formats like JPG, PNG and TIFF with ICC conversion.
How accurate is the Lightroom compatibility?AutoShade measures parity directly: Texture anchors match within ±0.02 on 45/45 points, radial masks within 1px on 41/41, and the produced XMP sidecar merges byte-for-byte so edits survive a Lightroom rewrite and reopen exactly.
What can the local AI do besides generating a look?Local sidecars provide subject/sky/point-prompted object segmentation (BiRefNet, OneFormer, SAM 2.1), a custom-trained RAW denoiser that keeps 98.70% of faint stars versus Lightroom's 98.80%, HDR/focus/noise stacking, and style retrieval via SigLIP 2 embeddings against your own photo library.
Why build a custom RAW denoiser instead of using Lightroom's?The author trained a denoiser specifically on this project's data with pre-written pass marks; two later training runs failed those marks and were refused, so only a run that met the bar shipped, reaching near-parity with Lightroom Denoise on star-field tests.
Creator
skymanbp
Size
26.9 MB
Stars
1.1K
Age
5mo
Commits · 90 Days