This is a demo to do lossless compression with NeLLoC on CPU!
We provide aithmetic coding (AC), Asymmetric Numeral System (ANS) and interleaved ANS implementation of NeLLoC.
All the results in the notebooks are ran on a CPU of Macbook Air (M1, 2020, 8GB memory).
For more details about the method, please see paper On the Out-of-distribution Generalization of Probabilistic Image Modelling, appearing at Neurips 2021.
We proposed ParallelNeLLoC, which has a faster compression and decompression speed without sacrificing compression rate. See Parallel Neural Local Lossless Compression for an introduction of the method.