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.
11 lines
311 B
Plaintext
11 lines
311 B
Plaintext
# For the CUDA build of torch, install it first from the PyTorch index, e.g.
|
|
# pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128
|
|
torch
|
|
torchvision
|
|
onnxruntime-gpu # or onnxruntime for CPU only
|
|
numpy
|
|
pillow
|
|
piq
|
|
open_clip_torch
|
|
imagecodecs # compare_codecs.py: JPEG XL and AVIF
|