All models

compressai_scale_hyperprior_192

The scale hyperprior model, an image compression autoencoder with a learned hyperprior.

Diffusion and generative · 90 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (30 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
173.3K
Operations
90
Framework
PyTorch
Recurrent
No
Published
2018
Authors
Johannes Ballé, David C. Minnen, Saurabh Singh and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m3853
Graph hash
55bb8d396fd390159379e7ae21b1b1a547397af616fce32de0241c54af46cc15
Skeleton hash
c6f0739e540080307a062e7941006d3b9bb6d966bbb0b3da21a42297f1d1810d
Architecture hash
1ce847ae3dde494f0b2d63c31074cc0a220c893ced92b9575348f21dfb9c4d45
Diagram SHA-256
ecdd124b0509b77249a4163dd0cb2dd7adda153ae864e9eb94c423e43b71e51d
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.compressai_reimpl:build_scale_hyperprior_192: build({})

What it is

This model is the 192 configuration; in the paper, the sizes N = 192 and M = 320 are used for the 3 higher of its 8 values of λ, the parameter that sets the rate-distortion tradeoff.

About this model's family

The scale hyperprior model is an end-to-end trainable model for image compression based on variational autoencoders. It extends an earlier model that has a fully factorized prior by adding a hyperprior, which captures the fact that spatially neighboring elements of the latent representation tend to vary together in their scales.

The network has two parts: an image autoencoder and a second autoencoder that implements the hyperprior. The second autoencoder's code z is quantized, compressed and transmitted as side information, and from it the spatial distribution of standard deviations is estimated and used to compress the image representation. The image transforms are built from convolutions and GDN/IGDN nonlinearities, which implement local divisive normalization, and the hyperprior transforms from convolutions and rectified linear units.

The paper relates the hyperprior to side information, a concept it calls universal to virtually all modern image codecs but, at its date, largely unexplored in image compression with neural networks. The authors trained 32 separate models, half with a hyperprior and half without, and evaluated them on the Kodak dataset. Trained for squared error, the hyperprior model came close to BPG performance, with better results at higher bit rates than lower ones.

Key idea. The paper adds a hyperprior, trained jointly with the image autoencoder, that captures spatial dependencies in the latent representation of a learned image compression model.

  • scale hyperprior
  • hyperprior image compression
  • variational image compression
  • learned image compression
  • neural image compression
  • bmshj2018 hyperprior
  • compressai scale hyperprior
  • image codec

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{ballé2018variationalimagecompressionscale,
      title={Variational image compression with a scale hyperprior}, 
      author={Johannes Ballé and David Minnen and Saurabh Singh and Sung Jin Hwang and Nick Johnston},
      year={2018},
      eprint={1802.01436},
      archivePrefix={arXiv},
      primaryClass={eess.IV},
      url={https://arxiv.org/abs/1802.01436}, 
}