All models

compressai_scale_hyperprior_128

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
121.2K
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
m3852
Graph hash
55bb8d396fd390159379e7ae21b1b1a547397af616fce32de0241c54af46cc15
Skeleton hash
c6f0739e540080307a062e7941006d3b9bb6d966bbb0b3da21a42297f1d1810d
Architecture hash
4b92f1c846943e8a83055d42d4908d6ccae3fd66455fa0d859330e79ea34d2c1
Diagram SHA-256
3a978eeefa9d6cbdfc038784d7c375273bac6b4b412aaa6ff1193ae98cfa8e8a
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_128: build({})

What it is

This model is the 128 configuration; in the paper, the sizes N = 128 and M = 192 are used for the 5 lower 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}, 
}