Add an AEIC quality and rate evaluation harness

tools/aeic/eval runs a folder of photos through the same ONNX graphs the
app downloads, counts exact bytes with the app's own entropy layer and
rANS coder (aeic_bytes.dart, checked byte-for-byte against the golden
recordings with --selftest), and scores what the receiver sees with
LPIPS, DISTS, CLIP, MS-SSIM and PSNR.

Variants cover preprocessing (stretch, crops, letterbox), subject
selection, the send sheet's re-roll tweaks, quantisation-step rate
control (fixed steps and per-image byte budgets) and two-part encodes.
compare_codecs.py compares AEIC with JPEG XL and AVIF at the same byte
budgets.
This commit is contained in:
zjs81 committed 2026-11-14 20:58:43 -07:00
1 parent c0702806de
commit aafd541b0f
7 files changed
+1476

No files matched your search

+4
View File
@@ -9,6 +9,10 @@ Dart side is checked against.
They are committed here so `test/services/golden/` is reproducible. Nothing in
the app runs them.
To measure reconstruction quality and byte cost instead, use the
[evaluation harness](eval/README.md), which runs on the downloaded model bundle
and needs no research checkout.
| script | produces | used by |
|---|---|---|
| `export_golden.py` | `golden/aeic_cdf_ft32.bin`, `golden/vectors/*.gv` | `rans_coder_test.dart`, `entropy_tables_test.dart` |