mirror of
https://github.com/storytold/lightcraft.git
synced 2026-12-03 04:26:03 -05:00
Merge main into #4969
This commit is contained in:
commit
a746f7da2e
57 files changed
+2267
-294
No files matched your search
@@ -57,7 +57,8 @@ mode ([mcp.md](mcp.md)) is a thin layer over this channel. Implementation:
|
||||
Set `LIGHTCRAFT_CONFIG_DIR` to a fresh directory to isolate UI preferences, app logs, the emergency
|
||||
panic log, the GPU initialization marker, camera profiles and default model folders. The nonempty
|
||||
value is used as the complete settings directory. Unset retains the normal platform paths; an explicit
|
||||
empty value disables the settings directory, while the emergency panic log retains its system-temp path.
|
||||
empty value disables the settings directory, and with it the emergency panic log (panics then go to
|
||||
standard error only).
|
||||
Explicit model-directory environment variables still take precedence over their defaults.
|
||||
Also pass `--library DIR` with a separate scratch library: the configuration override does not change
|
||||
the default photo-library location. Do not use `--memory` or `LIGHTCRAFT_NO_PREFS` when testing persistence.
|
||||
|
||||
+14
-3
@@ -6,6 +6,17 @@ preserves Amount and mixes none of the cleaned picture. It affects only the requ
|
||||
photo, independently of Auto Sync, and is undoable. Manual luminance and colour noise
|
||||
reduction remain separate controls.
|
||||
|
||||
**Denoise Method** chooses the built-in denoiser or an installed model for the active photo.
|
||||
You can choose a method with AI Denoise switched off. The first time you use AI
|
||||
Denoise on a photo, it remembers the current default. The choice travels with its
|
||||
edit history and saved versions. Changing the default later leaves those edits
|
||||
alone. If the chosen model is missing, reinstall that version or choose another
|
||||
method for the photo before exporting with AI Denoise. On an older library's
|
||||
first upgrade, previous denoise edits are assigned the denoiser that the old
|
||||
version would use. Existing built-in products can be reused. External models
|
||||
rebuild their cached pictures on demand because older products did not identify
|
||||
the manifest version or processing parameters.
|
||||
|
||||
## The built-in denoiser
|
||||
|
||||
AI Denoise needs no set-up. Unless you choose a model of your own (below), it runs the
|
||||
@@ -132,8 +143,7 @@ ISO 6400 up.
|
||||
|
||||
## Models and terms (optional)
|
||||
|
||||
**No model weights are bundled.** Choosing a model replaces the built-in denoiser; **Stop using**
|
||||
(or removing the model) goes back to it. Models live in the per-user `denoise-models` folder
|
||||
**No model weights are bundled.** Choosing a model in Settings makes it the default for new edits. Models live in the per-user `denoise-models` folder
|
||||
(override with `LIGHTCRAFT_DENOISE_MODELS`). Settings provides **Install from file…**
|
||||
for a user-supplied ONNX file with a `denoise-model.json` beside it. The default build
|
||||
offers no model downloads. The separate `rawnind-model` Cargo feature enables the
|
||||
@@ -287,7 +297,8 @@ the tile's samples as little-endian half floats, byte-shuffled (low bytes, then
|
||||
|
||||
## Commands and limits
|
||||
|
||||
UI, CLI, control channel and MCP dispatch `denoise.toggle`, `denoise.settings`,
|
||||
UI, CLI, control channel and MCP dispatch `denoise.toggle`, `denoise.photo.info`,
|
||||
`denoise.photo.model`, `denoise.settings`,
|
||||
`denoise.queue`, `.cancel`, `.status`, `.pump`, `.clear`, and `denoise.models.*`
|
||||
(`list`, `install`, `download`, `downloads`, `downloadCancel`, `test`, `remove`,
|
||||
`select`). The develop control is `enhance.denoise`.
|
||||
|
||||
+3
-1
@@ -42,6 +42,7 @@ Hours are Opus 5.5 agent wall-clock hours (see [target-app-parity.md](target-app
|
||||
| 25 | **File writes**: AVIF import; Render to DNG as a catalog command (lossy DNG and the Render to DNG export format landed) (PSD export landed with Edit in PhotoCraft, #953) | file-format-parity.md | interchange edge cases | 19–34 | [file-format-parity](file-format-parity.md) |
|
||||
| 26 | **Performance at scale**: flags, ratings and edits are written and synced to the catalog log by a thread of its own, so a key never waits for a busy drive (a 300 ms sync: 0.2 ms per flag, was 305 ms), and a write that fails is held, retried and counted as unsaved, never dropped (PERF-STEP-STALL); 85k-photo library opens in 1.7–4.7 s; 100k grid test pending; colour NR at half resolution; at 100k photos stack and album lookups are indexed (an "In a Stack" or "Album" smart album counts in ~14 ms, was 0.6–2.7 s); culling a wedding: first photos of a 2,933-raw folder in 0.9 s and camera JPEGs ready ahead of each step, but a full-size 45 MP camera JPEG still takes ~150 ms to decode (held-arrow stepping at a 2,560 px loupe can outrun it), the 100 % view of the raw itself still takes ~5 s to render (the camera JPEG is shown at 100 % meanwhile, ~0.9 s), and browsing or importing still reads and hashes every raw whole (~10 ms a file on SSD, ~1 s a 25 MB file from a NAS); the loupe uses built previews and photos are prepared ahead and the whole view in the background (face detection, AI masks and denoise are not yet part of that preparation) | ROADMAP log, gpu-pipeline.md | large-catalog users | 15–30 | [target-app-parity](target-app-parity.md#by-dimension) |
|
||||
| 27 | **Windows / Linux runtime coverage**: the Windows x64 installer is verified on Windows 11 (0.9.1: install and upgrade end on the completion page, a custom folder is kept, Launch works, removal is clean), but uninstalling from Settings → Apps ends with no confirmation (#892, #931); GPU path proven on Apple and on one AMD GPU on Linux (Radeon 8060S, Vulkan); NVIDIA, Intel and DX12 unverified; Windows DirectComposition VRR workaround implemented, monitor verification pending; the Linux riscv64 tarball (new in 0.6.0, #844) is cross-compiled and never run beyond a QEMU smoke test | ROADMAP, issues, `release.yml` | non-Mac users find bugs first | 13–27 | [hardware-parity](hardware-parity.md) |
|
||||
| 32 | **Panorama verification in moving scenes** (LR-MERGE-PANO, LR-MERGE-HDRPANO): genuine overlaps can fail the inlier-fraction gate; omitted source photos are now reported | #1765; original procedural known-homography and parallax tests in `crates/merge/tests/pair_verification.rs`; the [waterfall raws](https://github.com/storytold/lightcraft/issues/1765#issuecomment-7026674014) still register as two groups | panoramas may omit part of the scene | not estimated | [merge](merge.md#panorama-inclusion-diagnostics) |
|
||||
| 29 | **HDR merge leftovers** (LR-MERGE-HDR): AI Denoise doesn't run on merged (linear) DNGs; JPEG brackets are treated as linear (no camera response curve); every frame is held as 32-bit float, ~0.86 GB per 67 MP frame (half-float frames would halve it) | tested on Sony A7R VI brackets 2026-10-14 ([merge.md](merge.md)); Lightroom's Denoise supports HDR DNGs | HDR shooters who denoise their merges, merge JPEGs, or merge 7+ frames of high-resolution raws on 16 GB machines | 10–20 (+ denoise linear-RGB contract, gap 11) | [merge](merge.md) |
|
||||
| 28 | **Small Classic shortcuts and keys**: Tab (hide the side panels; Tab moves the keyboard focus here) and F5. Rating `[` `]`, flag cycling (`` ` ``), `\` (Filter Bar), ⌘L (Enable Filters), ⌘⌥⇧C / ⌘⌥⇧V (Copy / Paste Metadata), F1 help, F6 / F7 / F8 (filmstrip, left panel, right panel) and ⇧Tab (all panels) are bound; the grid-cycle key is shown beside both grid rows in View (#2500) | [ui-parity](ui-parity.md#shortcuts) | Classic muscle memory | 2–4 | [ui-parity](ui-parity.md) |
|
||||
| 30 | **Multi-select metadata editing in the UI**: `photo.setMeta` already iterates all selected photos, so the engine applies changes to every target. The Info panel's Show Metadata For choice (Target Photo / Selected Photos) shows the values the selected photos share and marks each field where they differ as Mixed; the All Metadata dialog still shows one photo's values with no "mixed" indication | standard in Lightroom Classic's multi-select Info panel | anyone editing metadata on a batch (copyright, keywords, custom fields) | 1–3 | [ui-parity](ui-parity.md) |
|
||||
@@ -57,7 +58,7 @@ Beta-blocking gaps (B) total **~230–430 h**; with the stability and platform w
|
||||
- **File format:** 2, 6, 7, 10, 13, 20, 25 (raw ones in [raw-parity.md](raw-parity.md))
|
||||
- **Hardware:** 14, 17, 22, 27
|
||||
- **Localization:** 21
|
||||
- **Quality / fidelity:** 1, 3
|
||||
- **Quality / fidelity:** 1, 3, 32
|
||||
- **Stability and platforms:** 9, 26, 27
|
||||
|
||||
## Closed recently (kept for calibration)
|
||||
@@ -143,6 +144,7 @@ Beta-blocking gaps (B) total **~230–430 h**; with the stability and platform w
|
||||
| 2026-10-19 | minor | Gap 9 shrinks: `.github/workflows/ci.yml` runs `cargo xtask ci` on Linux x64 for every PR and push to main; macOS and Windows remain |
|
||||
| 2026-10-19 | minor | Gap 21: Indonesian (`id`) shipped with every catalog message but What's New; four new languages left (Hindi, Arabic, Korean, Vietnamese), 135–239 h |
|
||||
| 2026-10-19 | minor | Gap 27: the released 0.9.1 x64 MSI is tested on Windows 11 Pro 24H2 (a fresh install and an upgrade from 0.8.0 end on the completion page, so #790 is fixed; the upgrade keeps a custom folder; Launch starts the app; removal leaves nothing behind); uninstalling from Settings → Apps still ends with no confirmation (#892, #931); hours unchanged |
|
||||
| 2026-10-21 | minor | Gap 32 records unresolved panorama verification (#1765); included counts and omitted filenames are now reported |
|
||||
| 2026-10-18 | patch | Gap 1: six X-Trans CMOS 4 Fujifilm bodies (X-T30 …) take the X-T3's spectral matrices instead of the neutral matrix |
|
||||
| 2026-10-15 | minor | Gap 15 shrinks: the Page panel's Page Options (Page Numbers, Page Info, Crop Marks) print on Single Image and Contact Sheet pages; identity plate, watermark, photo info, Cut Guides, direct printing and JPEG output remain |
|
||||
| 2026-10-14 | minor | Gap 4 follow-up: the diagnostic overlays (Visualize Spots, Point Color range, HDR range) render zoom windows too; soft proofing runs on the GPU |
|
||||
|
||||
@@ -24,6 +24,41 @@ All algorithms are our own implementations from published papers (cited in the m
|
||||
among the files, e.g. a whole folder);
|
||||
`lightcraft-cli synth-merge hdr|panorama -o DIR` writes synthetic inputs (procedural scene).
|
||||
|
||||
## Panorama inclusion diagnostics
|
||||
|
||||
Panorama and HDR panorama results include `used` (source photo IDs, in source order),
|
||||
`omitted` (`{id, path, reason: "notRegistered"}`), and `pairs`. Each pair has `a` and `b`
|
||||
(source photo ID arrays), `matches`, `inliers` (null if no fit was returned), and `status`:
|
||||
`insufficientMatches`, `noModel`, `rejected`, or `accepted`. HDR panorama expands each
|
||||
stitched bracket to all of its source photos. The result keeps the first 1,024 pairs in
|
||||
input order. `pairsTruncated` is true when there are more pairs. All pairs are still
|
||||
verified, and the `used` and `omitted` lists cover every source photo. A preview and a full
|
||||
merge can use different photos because they run at different resolutions.
|
||||
|
||||
The preview lists omitted filenames and the included count. The completion message uses
|
||||
the final merge's count. When the final merge omits photos, a Photo Merge Result dialog lists
|
||||
the final result's omitted filenames, because they can differ from the preview's: the preview
|
||||
registers copies at most 1,024 pixels on the long side, and the final merge registers the
|
||||
full-size photos again. Pair measurements also appear at debug log level, including when
|
||||
registration fails entirely. An accepted pair can belong to a component that is not used.
|
||||
`notRegistered` means the photo has no camera in the final registered set. It does not
|
||||
establish missing overlap, moving water, or parallax as the cause.
|
||||
|
||||
Issue [#1765](https://github.com/storytold/lightcraft/issues/1765) and @aterveus's
|
||||
[logging prototype](https://github.com/aterveus/lightcraft/commit/49054c2b94) prompted these
|
||||
diagnostics. Their [lower-slope experiment](https://github.com/aterveus/lightcraft/commit/e7ed794c72)
|
||||
identified a useful test regime. The verification threshold remains `inliers > 8 + 0.3 * matches`:
|
||||
original procedural correspondence tests recover known homographies with 30 to 36 inliers
|
||||
among 100 to 140 matches, then reproduce their rejection. A slope of 0.15 also accepts the
|
||||
tests' coherent wrong panel match and translated-camera parallax. Spatial spread and a
|
||||
small reprojection error alone do not distinguish all of these cases.
|
||||
|
||||
The [waterfall registration report](https://github.com/storytold/lightcraft/issues/1765#issuecomment-7026674014)
|
||||
found two groups in the original raws. No pair between the groups reached the minimum
|
||||
inlier count for a model, so changing the verification slope would leave those groups
|
||||
apart. A separate three-frame moving-texture experiment fails registration, while its
|
||||
clean control registers all three frames.
|
||||
|
||||
## What it does
|
||||
|
||||
**HDR** (`hdr.rs`): frames ordered by EXIF exposure (or median luminance); the middle one is the
|
||||
@@ -76,6 +111,9 @@ RGB space.
|
||||
|
||||
## Limits (known gaps)
|
||||
|
||||
- Pair verification can reject genuine overlaps in moving scenes (#1765). Omitted photos are
|
||||
reported, but a safer acceptance policy still needs validation on real inputs.
|
||||
|
||||
- No lens-distortion model in the panorama bundle adjustment (rectilinear lenses assumed); no
|
||||
360° wrap-around; flat (translating-camera) scans are fitted with the rotation model. Panoramas and HDR
|
||||
panoramas carry no lens corrections, nor does an HDR whose frames don't share an orientation (they are turned
|
||||
|
||||
@@ -12,7 +12,7 @@ have their own documents: [raw-parity.md](raw-parity.md), [file-format-parity.md
|
||||
|
||||
| Number | Value | Kind |
|
||||
|---|---:|---|
|
||||
| **Feature breadth**, checklist | **83.2%** of 543 in-scope rows (P0 97.5%, P1 94.4%, P2 56.7%) | **measured**: recount of [parity-checklist.md](parity-checklist.md) rows (✅ 1, 🟡 ½, 🚫 left out), the same rule `cargo xtask parity` uses |
|
||||
| **Feature breadth**, checklist | **83.2%** of 546 in-scope rows (P0 97.5%, P1 94.2%, P2 56.7%) | **measured**: recount of [parity-checklist.md](parity-checklist.md) rows (✅ 1, 🟡 ½, 🚫 left out), the same rule `cargo xtask parity` uses |
|
||||
| **Feature breadth**, weighted by use | **~77%** | estimated: feature-area table below |
|
||||
| **Ready for real work** (full target) | **~62%** (range 57–67%) | estimated: weighted sum over the dimensions with written weights, see [below](#ready-for-real-work-mainstream-practitioner-and-essentials-user) |
|
||||
| **Mainstream practitioner** | **~51%** (range 46–56%) | estimated: weekly areas of a working photographer, depth 74.5% × 0.804 × colour 0.85 |
|
||||
@@ -75,7 +75,7 @@ from the checklist sections and the deep-dive documents.
|
||||
| Remove, heal, Enhance (denoise, Raw Details, Super Resolution, Lens Blur) | 7% | 45% | 30% | 70–130 h | checklist I 75%, P 0% |
|
||||
| Presets, profiles, versions, history, sync | 5% | 95% | 85% | 8–15 h | |
|
||||
| Export | 6% | 89% | 75% | 15–30 h | checklist S 88.9% |
|
||||
| Merge and HDR | 3% | 85% | 60% | 20–35 h | merge 88% (HDR merge 🟡: AI Denoise on merged DNGs, JPEG response, memory; gap 29), HDR 70% (no HDR display) |
|
||||
| Merge and HDR | 3% | 85% | 60% | 20–35 h | merge 63% (HDR limitations, gap 29; panorama and HDR panorama verification in moving scenes, gap 31), HDR 70% (no HDR display) |
|
||||
| Views, compare, zoom, culling | 5% | 90% | 70% | 15–30 h | zoom detail P0 gap |
|
||||
| Classic output modules (Map, Book, Slideshow, Print, Web, publish, tethering) | 4% | 15% | 10% | 90–150 h | Classic extras 48% counts many small keys; the modules themselves are mostly ⬜ |
|
||||
| Video | 1% | 0% | 0% | 25–45 h | catalogued only |
|
||||
@@ -310,6 +310,7 @@ P2 items 12–25 h; look tuning, performance, packaging, hardening 25–45 h.
|
||||
| 2026-10-22 | minor | Tone Curve input histogram (#987); headline counts and readiness estimates unchanged. See [the stage contract](tone-curve-input.md). |
|
||||
| 2026-10-19 | minor | Localization ~55% → ~64% (mean of the 12 key languages): Indonesian (`id`) catalog, every message but What's New; full target 61.2% → 61.5% (still ~61%) |
|
||||
| 2026-10-19 | patch | Platforms: the Windows installer is no longer listed as unverified (the 0.9.1 x64 MSI is tested on Windows 11; a confirmation after uninstalling from Settings → Apps, #892, remains); #790 noted as fixed in 0.9.1; percentages and hours unchanged |
|
||||
| 2026-10-21 | minor | Panorama and HDR panorama marked partial (#1765): omitted photos are reported; verification remains unresolved. Checklist recount 83.5% to 83.3% (543 rows); refreshed the stale headline from the checklist. Readiness estimates unchanged |
|
||||
| 2026-10-17 | minor | Object / Describe masks: SAM 3's text detector mask decoder also on the GPU outside macOS; status unchanged |
|
||||
| 2026-10-17 | minor | Object / Describe masks: SAM 3's necks and text detector's encoder also on the GPU outside macOS; status unchanged |
|
||||
| 2026-10-17 | minor | Object / Describe masks: SAM 3's image encoder runs on the GPU through wgpu on Windows and Linux (CPU fallback); status and numbers unchanged |
|
||||
|
||||
@@ -1000,6 +1000,16 @@
|
||||
|
||||
## 2026-10-22
|
||||
|
||||
### The crash log moved to the settings folder
|
||||
- The desktop app keeps `lightcraft-panics.log` in its settings folder now, next to `logs/`, instead of the system
|
||||
temp folder (issue #2572). On Linux and FreeBSD every user shares that folder, so someone else could create the
|
||||
file first to read what LightCraft wrote there, or plant a link that made it write into another file. A `--memory`
|
||||
session, `LIGHTCRAFT_NO_PREFS` and an empty `LIGHTCRAFT_CONFIG_DIR` keep no crash log; panics still go to standard
|
||||
error.
|
||||
- An empty or relative `HOME`, `APPDATA` or `XDG_CONFIG_HOME` no longer puts the settings folder (and the crash log
|
||||
and logs in it) under the folder LightCraft was started from: it is ignored (`XDG_CONFIG_HOME` then gives way to
|
||||
`HOME`), and with no usable one there is no settings folder: panics then go to standard error only.
|
||||
|
||||
### Exports don't create a photo's sidecar
|
||||
- Saving an export, a preset or any other file as `IMG_1.xmp` or `IMG_1.jpg.xmp` in the folder of the library photo
|
||||
`IMG_1.jpg` is now refused when no sidecar is there yet, as writing over an existing one already was. The library
|
||||
|
||||
Reference in new issue
Block a user