Skip to content

Commit ee3865e

Browse files
AlexChambersclaude
andcommitted
LR-BEHAV-RENDER-FIDELITY: tools/render_fidelity.py measures LightCraft's single-slider responses against Lightroom exports
A shareable render-fidelity measurement for gap 3 (docs/render-fidelity.md). It compares a user's own Lightroom TIFF exports with LightCraft renders of the same recipes from the same raws. It reads no Adobe application file, profile, preset or table, keeps only the names of an export's profile and look, and the Lightroom presets it writes are generated from the recipe values. It needs numpy and tifffile (tools/requirements-render-fidelity.txt) and the standard library. - plan: Lightroom develop presets for Basic-slider recipes (default: the Neutral and every Basic slider at two amounts) and export instructions: one export operation into one new folder per session, 16-bit sRGB TIFF, All Metadata. - pair: reads each export's embedded XMP and checks the clean recipe affirmatively (the settings the measurement depends on stated, everything else neutral, identity curves, Adobe Standard / Adobe Color, no crop or local edits). Finds the raw by crs:RawFileName and identifies photos by the raw's sha256; refuses a raw whose own XMP, read where LightCraft's reader reads it, carries develop settings. Pairs each single-slider export with a Neutral, else the same slider's smallest other amount, from the same session (export folder and time segment) and size. Photos split into tune and check by hash. - render: measures a private copy of the given lightcraft-cli. Each raw is first checked with LightCraft's own importer (run --import, develop.get, develop.reset, develop.get: any changed field refuses it). Renders the Basic panel from the export's XMP with sharpening, noise reduction and lens-profile corrections off, from a sidecar-free symlink, 16-bit sRGB at the export's long edge, registers every reference export by a consensus shift search and samples both engines on a grid. Every sample and registration carries its provenance (the run's binding id, CLI and tool hashes, the raw, the recipe or export, frame and shift); a run-folder lock, exclusive manifest creation and identity checks before each write keep concurrent renders apart. CLI calls have time limits; any failure is recorded for its photo and retried on resume. - score: per band of Lightroom's reference luminance, LightCraft's share of Lightroom's log-luminance response, the signed bias, the per-position error, CIE76 dE, the colour-change error, clipping and black transitions both ways, support retention and out-of-support errors, with contributor counts, tune and check apart. A pair is scored only when its raw passed the importer check, its samples' and registration's provenance matches the manifest and the pair, and its two Lightroom exports are framed alike; every other pair is listed with its reason. - report: a Markdown summary to paste into an issue: numbers only, photos under per-run salted labels, and a CSV appendix of every band and transition. - selftest: the XMP, clean-recipe and pairing rules, registration, the scoring maths, the raw guard, run-state validation and a 20-mode CLI fault matrix on synthetic data; with --cli, the raw guard and the importer check against that build's own XMP reader. On three of the maintainers' photos with main 76b5377, it pairs the 34 pairs their private scripts scored identically and reproduces all 7158 statistics exactly. docs/gaps.md gap 3 and the LR-BEHAV-RENDER-FIDELITY row in docs/parity-checklist.md say what exists and what is still missing; gap 3 no longer says only process V1 exists (V2 landed in storytold#645). cargo xtask assets and parity pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 77c0a6a commit ee3865e

5 files changed

Lines changed: 4017 additions & 2 deletions

File tree

‎docs/gaps.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Hours are Opus 5.5 agent wall-clock hours (see [target-app-parity.md](target-app
1717
|---:|---|---|---|---:|---|
1818
| 1 B | **Camera colour is estimated, not measured** (LR-PROF-CAMERACOLOR). Raws start from a per-file fit to the camera JPEG, 5 bundled profiles or 52 spectral matrices (plus same-sensor bodies, e.g. the X-T30 through the X-T3); others use a neutral matrix (a black-and-white camera JPEG gives its tone curve only, #577; dark JPEG tones also guide the toe, #1307) | ΔE vs camera JPEG 2.9–10 after fitting (raw-parity.md); 0 chart-calibrated models vs 1,500 Adobe Standard profiles | every raw shooter sees colour that is close but not Lightroom's; some get neutral-matrix colour | 50–90 | [raw-parity](raw-parity.md#colour) |
1919
| 2 B | **CR3 variants no public file uses** (LR-IMP-FORMATS): `crx.rs` refuses vertical-tile C-RAW, partial-subband and other plane coding, multi-tile 0x200 and adaptive low-frequency gains, and those files fall back to the preview. All 110 CC0 CR3s on raw.pixls.us (31 folders) decode from sensor data, so none of these variants has a public sample; 26 CR3 bodies are verified (M50 / R100 / R8 exact, R5 Mark II pinned, 22 more pinned on one CC0 file each and checked against the camera JPEG, [cr3.md](cr3.md#further-bodies-one-cc0-file-each)). HEIF stills are `.HIF` files, not CR3; no CR3 sRAW / mRAW sample exists | measured: Canon's share whose camera fully works 73% → 94% (raw-parity.md); 18 of 22 popular Canon bodies write CR3, all 18 now verified | +0.3 points of photographers; the variants surface only as user files that open as a preview | 10–25 | [raw-parity](raw-parity.md#remaining-work-ranked-by-photographers-unlocked-per-hour) |
20-
| 3 B | **Render fidelity unmeasured** (LR-BEHAV-RENDER-FIDELITY): tone, highlights, texture / clarity / dehaze, NR and sharpening are tuned by eye | no side-by-side suite; a retune needs a new process version (only V1 exists) | edits imported from Lightroom look different; the look "isn't Lightroom's" | 30–60 | [raw-parity](raw-parity.md), [process-versions](process-versions.md) |
20+
| 3 B | **Render fidelity unmeasured** (LR-BEHAV-RENDER-FIDELITY): tone, highlights, texture / clarity / dehaze, NR and sharpening are tuned by eye. Single-slider Basic-panel responses can now be measured per tone band against a user's own Lightroom exports (`tools/render_fidelity.py`), but no results are recorded and nothing has been tuned from them | no side-by-side suite for combined edits, presets, NR, sharpening or lens corrections, and no recorded single-slider results; a retune needs a new process version (V1 and V2 exist, V2 the latest: [process-versions](process-versions.md)) | edits imported from Lightroom look different; the look "isn't Lightroom's" | 30–60 | [render-fidelity](render-fidelity.md), [raw-parity](raw-parity.md), [process-versions](process-versions.md) |
2121
| 4 | ~~Original-pixel detail at 100%~~ (LR-VIEW-ZOOM): closed 2026-10-12, see Closed recently | checklist row ✅ | — | 0 | [ui-parity](ui-parity.md) |
2222
| 5 B | **AI masks: Subject, Sky, People, Background, Landscape** are heuristics; Object / Describe run SAM 3 but its download has no mirror configured | `crates/segment`; ai-masks.md; MASK rows 67% | masking is how most Lightroom users edit today | 40–70 + model decision | [target-app-parity](target-app-parity.md#ai) |
2323
| 6 B | **Compressed ORF** (every Olympus / OM body since ~2008) | measured: 66 of 78 Olympus / OM models preview-only; `orf.rs` refuses; OM bucket 3% of photographers, 3% of them fully work | +2.6 points; best gain per hour of any raw gap (~0.2) | 8–15 | [raw-parity](raw-parity.md#compressed-orf-a-clean-room-starting-point) (the two Olympus patents that describe the method) |
@@ -105,6 +105,7 @@ Beta-blocking gaps (B) total **~230–430 h**; with the stability and platform w
105105
| 2026-10-12 | minor | Gap 10: SR2/SRF folder discovery fixed; F828 imports as preview-only. Sensor decoding remains a gap; readiness scores unchanged |
106106
| 2026-10-23 | minor | Gap 28: ⌘L / Ctrl+L (Library ▸ Enable Filters) puts the filter aside and brings it back as it was; the entry drops ⌘L; hours unchanged |
107107
| 2026-10-15 | minor | Gap 28: `\` shows / hides the Filter Bar in the grids; the entry drops `[` `]` (#509), flag cycling (#1490) and F1 (Help), already on main; ⌘L is the filter-bar key left; hours unchanged |
108+
| 2026-10-12 | minor | Gap 3: `tools/render_fidelity.py` ([render-fidelity.md](render-fidelity.md)) measures single-slider Basic-panel responses against a user's own Lightroom exports; the entry now says what is still missing (a suite for combined edits, presets, NR, sharpening and lens corrections, recorded results, tuning), and no longer says only process V1 exists (V2 landed in #645); hours unchanged |
108109
| 2026-10-14 | minor | Gap 26: at 100k photos stack and album lookups are indexed, so an "In a Stack" or "Album" smart album counts in ~14 ms (was 0.6–2.7 s); open time unchanged |
109110
| 2026-10-14 | minor | Gap 10: Camera-coverage sweep (#1327): 30 models verified on 40 CC0 files (coverage.py 515 → 545 verified); sensor verification does not establish colour parity (#1277) |
110111
| 2026-10-14 | minor | Gap 21: de, es, fr, ja and uk catalogs filled (97–99%); 55–90 h → 40–70 h |

‎docs/parity-checklist.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts).
465465
| LR-BEHAV-OFFLINE | Offline editing | P1 | ✅ | | local-first: everything works offline |
466466
| LR-BEHAV-WEB-SAFETY | Library safety in the browser build | P1 | 🟡 | `cmd:file.backupLibrary`, `cmd:file.restoreLibrary`, `apps/lightcraft-web/src/safety.rs`, `apps/lightcraft-web/src/backup.rs`, `apps/lightcraft-web/src/files.rs` | web only (experimental): Back Up Library (zip of the catalog and every stored original) and a non-destructive Restore; failed saves show as unsaved and are retried; a photo that can't be stored isn't added; one tab per library (Web Locks); notices for storage that isn't persistent and for a library that can't open; `?reset` asks first; a panic shows a message. Missing: `?safe` start, deleting originals of removed photos, zip64 (backups > 4 GB) |
467467
| LR-BEHAV-GPU | GPU acceleration | P0 | ✅ | `crates/gpu/src/render.rs`, `cmd:app.gpu`, `docs/gpu-pipeline.md`, `crates/ui-egui/src/panels/notices.rs` | CPU fallback per render on device limits, out of memory, device errors / loss, incomplete or black results (`perf.gpuReason`, `perf.gpuFallback`; each render reports its own reason — `lightcraft_gpu::try_render`, `gpuFallback` per exported file — issue #675); short submissions for slow iGPUs; backend choice (DX12 only on Windows, `LIGHTCRAFT_GPU_BACKEND` / `WGPU_BACKEND`), device created after the window opens, crash sentinel (issue #136); a GPU lost while LightCraft runs (driver reset) stops it with that message and turns GPU rendering off for the next start, which says why (issue #1337; the window's renderer can't survive the lost device); quitting waits (up to 2 s) for renders in flight and starts no new GPU work, so none is inside the driver when the process exits (`crates/gpu/src/exit.rs`, issue #620; seen crashing only on Linux + NVIDIA, other drivers unverified); with GPU rendering on and no adapter found at all (e.g. no Vulkan loader on NixOS outside `nix develop`), the desktop app says once per session that it renders on the CPU and points to Help ▸ System Info (`gpu_notice`; not when the GPU is turned off or only a software adapter exists); no tiling beyond the buffer limit (CPU) |
468-
| LR-BEHAV-RENDER-FIDELITY | Rendering matches Lightroom | P1 | 🟡 | `crates/pipeline/src/lib.rs`, `crates/pipeline/src/tone.rs` | every slider exists and works, but the character of the result (tone curve shape, highlight recovery, texture / clarity / dehaze, noise reduction, sharpening, default look) is tuned by eye; there is no systematic side-by-side comparison against Lightroom on the same CC0 raws. Needs a fidelity suite: Lightroom reference renders kept only in the local `plan/` (never committed), compared per slider and preset with a perceptual metric. Tuning that changes how existing settings render ships as a new process version (LRC-DEV-PROCESS, `docs/process-versions.md`) |
468+
| LR-BEHAV-RENDER-FIDELITY | Rendering matches Lightroom | P1 | 🟡 | `crates/pipeline/src/lib.rs`, `crates/pipeline/src/tone.rs`, `tools/render_fidelity.py`, `docs/render-fidelity.md` | every slider exists and works, but the character of the result (tone curve shape, highlight recovery, texture / clarity / dehaze, noise reduction, sharpening, default look) is tuned by eye. `tools/render_fidelity.py` measures single-slider Basic-panel responses per tone band against a user's own Lightroom exports (same-session pairs, the clean recipe checked from each export's XMP, registered, tune / check split; docs/render-fidelity.md); no results are recorded and nothing is tuned from it yet. Still needed: a suite for combined edits, presets, noise reduction, sharpening and lens corrections, with its exports kept out of the repository. Tuning that changes how existing settings render ships as a new process version (LRC-DEV-PROCESS, `docs/process-versions.md`) |
469469
| LR-BEHAV-DRAGDROP | Drag and drop | P1 | ✅ | `crates/ui-egui/src/lib.rs`, `crates/ui-egui/src/panels/grid.rs` (`drag_feedback`), `crates/ui-egui/src/panels/left.rs` (`drop_target`, `album_drag_over`, `top_level_drop_target`, `drag_auto_scroll`) | files → app (a drop-target card while they hover, then the import review); grid photos → an album row (adds the selection, with a count badge while dragging); sidebar album / folder rows → a folder (moves it; its name follows the pointer); a drag of albums or grid photos near the top or bottom edge of the sidebar scrolls it (faster nearer the edge, only while the pointer is over the sidebar) |
470470
| LR-BEHAV-TOAST | Toast notifications | P1 | ✅ | `crates/ui-egui/src/panels.rs` | |
471471
| LR-BEHAV-DIALOGS | Dialogs fit the window | P1 | ✅ | `crates/ui-egui/src/dialogs.rs` (`dialog_body`, `list_height`), `crates/ui-egui/src/tests/dialog_fit.rs`, `crates/ui-egui/src/tests/dialogs.rs` (`a_click_outside_closes_the_dialog_when_settings_allow_it`) | a dialog taller than the window (Export on a 1366×768 screen, issue #781) never runs off it: its options scroll while the title bar and the Cancel / OK row stay on screen; lists that scroll on their own (What's New, All Metadata, shortcuts, smart-album rules, credits) get shorter first; dialogs that fit look as before; Import keeps its own resizable, scrolling window; Settings → Dialogs → Close a dialog by clicking outside it (off by default, so a stray click never throws away a dialog's choices): a click pressed and released on the dimmed backdrop closes the dialog like Esc and doesn't reach the panels below, while a drag that ends outside (a slider pulled past the edge) or a click that closes a dropdown keeps it; the import review never closes this way (`clicked_backdrop`) |
@@ -846,6 +846,7 @@ Latin stays upright. Advanced Japanese composition remains open. Regression cove
846846
| 2026-10-13 | minor | LRC-LIB-KEYWORDS: the Keyword List marks a keyword that has an applied keyword inside it (a dot in its box); status unchanged |
847847
| 2026-10-12 | minor | LR-IMP-FORMATS: folder discovery includes SR2/SRF; MCP and CLI reuse the engine extension list. DSC-F828 remains preview-only; decoder support and row status unchanged |
848848
| 2026-10-15 | patch | KEYC-RATING: `\` shows / hides the Filter Bar in Photo Grid and Square Grid (Show Original in Detail); status unchanged (🟡) |
849+
| 2026-10-12 | minor | LR-BEHAV-RENDER-FIDELITY: `tools/render_fidelity.py` and `docs/render-fidelity.md` (single-slider responses against the user's own Lightroom exports); status unchanged (🟡) |
849850
| 2026-10-12 | minor | LR-EDIT-OPTICS-PROFILE: Sony ARW shading, CA and distortion tables decoded with settings and provenance (raw IFD, `SR2SubIFD` fallback); applied corrections unchanged (ILCE-7RM4A and ILCE-7RM6 distortion); status unchanged (🟡) |
850851
| 2026-10-14 | minor | LR-IMP-CAMERA-COVERAGE: Camera-coverage sweep (#1327): 30 models verified on 40 CC0 files (coverage.py 515 → 545 verified); sensor verification does not establish colour parity (#1277); status unchanged (🟡) |
851852
| 2026-10-13 | minor | LR-MERGE-PANO: a panorama's DNG takes its `AsShotNeutral` from the median of its frames' vendor white-balance multipliers (CR2, NEF, ARW…) instead of the first frame's tags, and frames now carry the multipliers (issue #1144); status unchanged (✅) |

0 commit comments

Comments
 (0)