huggingface.co
Total runs: 14
24-hour runs: 0
7-day runs: -1
30-day runs: 7
Model's Last Updated: July 18 2024

Introduction of vq-vae

Model Details of vq-vae

Vector-Quantized Variational Autoencoders (VQ-VAE)

Model description

Learning latent space representations of data remains to be an important task in machine learning. This model, the Vector-Quantized Variational Autoencoder (VQ-VAE) builds upon traditional VAEs in two ways.

  • The encoder network outputs discrete, rather than continous, codes.
  • The prior is learned rather than static.

To learn discrete latent representations, ideas from vector quantisation (VQ) are used. Using the VQ method allows the model to avoid issues of "posterior collapse" . By pairing these representations with an autoregressive prior, VQ-VAE models can generate high quality images, videos, speech as well as doing high quality speaker conversion and unsupervised learning of phonemes, providing further evidence of the utility of the learnt representations.

Full Credits for this example go to Sayak Paul

Further learning

This model has been trained using code from this example , and a result of this paper.

Model

Below we have a graphic from the paper above, showing the VQ-VAE model architecture and quantization process. VQ-VAE Model

Intended uses & limitations

This model is intended to be used for educational purposes. To train your own VQ-VAE model, follow along with this example

Training and evaluation data

This model is trained using the popular MNIST dataset. This dataset can be found/used with the following command

keras.datasets.mnist.load_data()
Hyperparameters

The model was trained usign the following

  • Latent Dimension = 16
  • Number of Embeddings = 128
  • Epochs = 30

The author of the example encourages toying with both the number and size of the embeddings to see how it affects the results.

Reconstruction

Below, we can see a few examples of MNIST digits being reconstructed after passing through our model. Reconstructed

Discrete Latent Space

Below, we can see a few examples of MNIST digits being mapped to a discrete latent space. Discrete

Next Steps

The keras example details of this model shows it can be paired with a PixelCNN for novel image generation. Check out the example linked above to try it yourself.

Citation
@article{beyer2024paligemma,
    title={{PaliGemma: A versatile 3B VLM for transfer}},
    author={Lucas Beyer* and Andreas Steiner* and André Susano Pinto* and Alexander Kolesnikov* and Xiao Wang* and Daniel Salz and Maxim Neumann and Ibrahim Alabdulmohsin and Michael Tschannen and Emanuele Bugliarello and Thomas Unterthiner and Daniel Keysers and Skanda Koppula and Fangyu Liu and Adam Grycner and Alexey Gritsenko and Neil Houlsby and Manoj Kumar and Keran Rong and Julian Eisenschlos and Rishabh Kabra and Matthias Bauer and Matko Bošnjak and Xi Chen and Matthias Minderer and Paul Voigtlaender and Ioana Bica and Ivana Balazevic and Joan Puigcerver and Pinelopi Papalampidi and Olivier Henaff and Xi Xiong and Radu Soricut and Jeremiah Harmsen and Xiaohua Zhai*},
    year={2024},
    journal={arXiv preprint arXiv:2407.07726}
}

Runs of merve vq-vae on huggingface.co

14
Total runs
0
24-hour runs
2
3-day runs
-1
7-day runs
7
30-day runs

More Information About vq-vae huggingface.co Model

vq-vae huggingface.co

vq-vae huggingface.co is an AI model on huggingface.co that provides vq-vae's model effect (), which can be used instantly with this merve vq-vae model. huggingface.co supports a free trial of the vq-vae model, and also provides paid use of the vq-vae. Support call vq-vae model through api, including Node.js, Python, http.

vq-vae huggingface.co Url

https://huggingface.co/merve/vq-vae

merve vq-vae online free

vq-vae huggingface.co is an online trial and call api platform, which integrates vq-vae's modeling effects, including api services, and provides a free online trial of vq-vae, you can try vq-vae online for free by clicking the link below.

merve vq-vae online free url in huggingface.co:

https://huggingface.co/merve/vq-vae

vq-vae install

vq-vae is an open source model from GitHub that offers a free installation service, and any user can find vq-vae on GitHub to install. At the same time, huggingface.co provides the effect of vq-vae install, users can directly use vq-vae installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

vq-vae install url in huggingface.co:

https://huggingface.co/merve/vq-vae

Url of vq-vae

vq-vae huggingface.co Url

Provider of vq-vae huggingface.co

merve
ORGANIZATIONS

Other API from merve

huggingface.co

Total runs: 36
Run Growth: 1
Growth Rate: 2.63%
Updated:February 26 2024
huggingface.co

Total runs: 34
Run Growth: -24
Growth Rate: -70.59%
Updated:January 06 2024
huggingface.co

Total runs: 22
Run Growth: -47
Growth Rate: -223.81%
Updated:October 12 2023
huggingface.co

Total runs: 15
Run Growth: 8
Growth Rate: 57.14%
Updated:February 22 2024
huggingface.co

Total runs: 15
Run Growth: 8
Growth Rate: 53.33%
Updated:September 19 2025
huggingface.co

Total runs: 13
Run Growth: -18
Growth Rate: -138.46%
Updated:January 28 2026
huggingface.co

Total runs: 11
Run Growth: 5
Growth Rate: 50.00%
Updated:January 28 2023
huggingface.co

Total runs: 11
Run Growth: -2
Growth Rate: -18.18%
Updated:September 11 2025
huggingface.co

Total runs: 10
Run Growth: 9
Growth Rate: 90.00%
Updated:November 25 2023
huggingface.co

Total runs: 9
Run Growth: 6
Growth Rate: 66.67%
Updated:February 10 2023
huggingface.co

Total runs: 8
Run Growth: -22
Growth Rate: -275.00%
Updated:December 18 2024
huggingface.co

Total runs: 8
Run Growth: 4
Growth Rate: 50.00%
Updated:July 11 2023
huggingface.co

Total runs: 7
Run Growth: 3
Growth Rate: 42.86%
Updated:March 26 2024
huggingface.co

Total runs: 6
Run Growth: 0
Growth Rate: 0.00%
Updated:March 26 2024
huggingface.co

Total runs: 5
Run Growth: 3
Growth Rate: 60.00%
Updated:April 02 2023
huggingface.co

Total runs: 5
Run Growth: -10
Growth Rate: -200.00%
Updated:October 04 2023
huggingface.co

Total runs: 5
Run Growth: 3
Growth Rate: 60.00%
Updated:April 02 2023
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:June 14 2023
huggingface.co

Total runs: 1
Run Growth: 1
Growth Rate: 100.00%
Updated:December 20 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 25 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 22 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 30 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 30 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 22 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 04 2024