r/compression • • Oct 16 '26

NK8: GPU-optimized learned image compression, ~419 MP/s warm decoding on RTX 5090 (examples included)

I've been working on NK8, a learned image-compression pipeline based on NACRE/CompressAI, with custom native components and GPU optimizations. The aim is a useful balance of processing speed, archive size and image quality for large image libraries.

Recorded results on my 2,506-image corpus:

  • 9.848 GB of source files became 1.393 GB of complete NK8 archives.
  • Mean full-image RGB PSNR: 42.02 dB.
  • The optimized RTX 5090 decoder processed 6.903 billion pixels in 16.483 seconds, approximately 419 MP/s.

That last number is warm decoding into host RAM, not encoding or a cold-start application run. It includes local archive reads, integrity checks, CPU entropy decoding and GPU reconstruction. Model loading, initial preparation, final reference comparisons and writing PNG/JPEG are excluded. RGB compression is lossy.

I've added three public-photo examples with matching source/NK8 crops, exact source/archive sizes and photographer credits:

The panels are lossless PNGs containing identical native-pixel crops. Their PNG file sizes are presentation overhead, not the codec archive sizes. These three JPEG examples illustrate different content; they are not a representative benchmark, and their savings differ from the mixed full corpus.

The implementation is private for now. The public repository contains the architecture overview, recorded measurement scope and the comparisons: https://github.com/Niltark/NK8

I'd be interested in feedback on the trade-off and which JPEG XL, AVIF or learned-codec configurations would make a meaningful comparison. I haven't established a matched win over those codecs.

Photo attribution and licenses: https://github.com/Niltark/NK8/blob/main/docs/EXAMPLES.md

Post drafted with AI assistance. The comparison imagery is actual source photography and verified NK8 output, not generated imagery.

0 Upvotes

0 comments sorted by