Lossy Image Compression with Quantized Hierarchical VAEs

Zhihao Duan, Ming Lu, Zhan Ma, Fengqing Zhu
8/27/2022
68 citations
eess.IVcs.CVcs.LG

Official code: duanzhiihao/lossy-vae (89 stars, Jupyter Notebook, PyTorch, last commit 2024-10-18).

Abstract

Recent research has shown a strong theoretical connection between variational autoencoders (VAEs) and the rate-distortion theory. Motivated by this, we consider the problem of lossy image compression from the perspective of generative modeling.

Show full abstract

Starting with ResNet VAEs, which are originally designed for data (image) distribution modeling, we redesign their latent variable model using a quantization-aware posterior and prior, enabling easy quantization and entropy coding at test time. Along with improved neural network architecture, we present a powerful and efficient model that outperforms previous methods on natural image lossy compression. Our model compresses images in a coarse-to-fine fashion and supports parallel encoding and decoding, leading to fast execution on GPUs. Code is available at https://github.com/duanzhiihao/lossy-vae.

View on arXivView PDF

Code Implementations(1)

PyTorch

Authors' PyTorch implementation of lossy image compression methods based on hierarchical VAEs

898Jupyter Notebook, PythonOct 5, 20222 years ago
lossy-compressionlossy-image-compressionpytorchvaevariational-autoencoder

Similar Papers

Cite this paper

@article{duan2022lossy,
  title  = {Lossy Image Compression with Quantized Hierarchical VAEs},
  author = {Zhihao Duan and Ming Lu and Zhan Ma and Fengqing Zhu},
  year   = {2022},
  eprint = {2208.13056},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.13056}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.13056.svg)](https://codeofpaper.com/paper/2208.13056)

Discussion