Downloads · 30 days
0
ianisdev/mnist_vqvae
mnist_vqvae is a machine learning model from ianisdev. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
This is a Vector Quantized Variational Autoencoder (VQ-VAE) trained on the MNIST dataset using PyTorch. The model compresses and reconstructs grayscale handwritten digits and is used as part of an image augmentation a…
Downloads · 30 days
0
Access
Public
Updated Jul 22, 2025
Repo size
2.8 MB
Likes
0
Public
Click a slice to open those files.
.png5.8 MB · 67%
From the Hugging Face model README
This is a Vector Quantized Variational Autoencoder (VQ-VAE) trained on the MNIST dataset using PyTorch. The model compresses and reconstructs grayscale handwritten digits and is used as part of an image augmentation and generative modeling pipeline.
loss_curve.pngThis model learns compressed representations of digit images using vector quantization. The reconstructions can be used for augmentation or generative downstream tasks.
generator.pt: Trained VQ-VAE model weights.loss_curve.png: Visual plot of training loss across 35 epochs.fid_score.json: Stored Fréchet Inception Distance (FID) evaluation result.fid_real/ and fid_fake/: 1000 real and generated images used for FID computation.import torch
from models.vqvae.model import VQVAE
model = VQVAE()
model.load_state_dict(torch.load("generator.pt", map_location="cpu"))
model.eval()