All models

compressai_factorized_prior_192

A convolutional image codec whose latents are coded under a fully factorized learned prior.

67 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 (40 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
151.9K
Operations
67
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
m3847
Graph hash
16b5474f710fcc9979e7e81e01005c610c9ec5089caeb0d9d47ec9a61ab266af
Skeleton hash
fefd93760a6a10a4c48c098348af81e0f057117a3209863dd2657a15ade9e9cd
Architecture hash
49d751870209c3468288f54fdc82156f6b6c820968680e9fd1561fce952ace65
Diagram SHA-256
90506745a1f35bd7cd021b76ca8a5a29922bad6fdf0f7ad18ecd9937f85b12ca
TorchLens version
2.36.0
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_factorized_prior_192: build({})

What it is

The wider codec, with N = 192 and M = 320, the setting the paper used for its three higher rate points.

About this model's family

This is the factorized-prior image codec, the baseline model of the scale hyperprior paper: an end-to-end trainable image compression model based on variational autoencoders. An analysis transform maps the image into a latent representation, which is quantized, and a synthesis transform recovers the reconstructed image from the quantized latents. The paper treats both transforms as artificial neural networks rather than the linear transforms of traditional codecs.

What makes it the factorized-prior model is its entropy model: following the earlier model of Ballé and colleagues, the prior over the latents is a non-parametric, fully factorized density. The paper's own figure shows why that is a stark simplification, since non-zero responses cluster around edges and textured regions, a coupling a factorized prior cannot represent, and the hyperprior is introduced to capture it. The analysis and synthesis transforms are built from convolutions and GDN/IGDN nonlinearities, a form of local divisive normalization. The hyperprior model uses the identical architecture for its analysis and synthesis transforms, so this baseline is that codec without the side-information branch.

The two captured members differ in width: the paper chose N = 128 with M = 192 for the five lower rate points and N = 192 with M = 320 for the three higher ones. Optimized for squared error, the factorized prior model outperforms JPEG and earlier ANN-based methods trained for squared error, though not BPG.

Key idea. A learned transform-coding image codec whose latents are entropy-coded under a fully factorized learned prior, the baseline that the scale hyperprior extends.

  • factorized prior
  • learned image compression
  • neural image codec
  • compressai
  • balle
  • variational autoencoder
  • rate-distortion
  • gdn
  • hyperprior baseline

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}, 
}