wai-rs: e2e — recover the hyper-latent z from the real codestream (byte-exact) #20
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/jpegai-e2e-z"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First stage chained straight off the bitstream rather than a fixture: parse the container → take SOZ’s bytes → run the byte-exact mANS
facdecoder with the normative per-channel CDFs → offset symbols by 31 (mid-point of the 63-symbol alphabet) → signedz.SOZ carries both planes back to back (luma 160ch, then chroma 96ch, 16 samples/channel), decoded by one MansDecoder whose ANS state threads across the calls.
Validated on test256.bin:
z[y]2560/2560 exact (75 non-zero, range [-3,4]),z[uv]1536/1536 exact — both equal the referencezthatdecode_hyper_scaleconsumes.This joins the decoder’s two halves: the container/entropy path now reproduces, from raw bytes, the exact tensor the neural scale path was independently validated against.
dcharlot referenced this pull request2026-11-06 13:54:17 -05:00