Downloads · 30 days
0
hussamalafandi/GAN_MNIST
GAN_MNIST is a machine learning model from hussamalafandi. 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 repository contains a Generative Adversarial Network (GAN) trained on the MNIST dataset to generate realistic handwritten digits. The model was trained as part of the Generative AI course.
Downloads · 30 days
0
Access
Public
Updated Mar 27, 2025
Repo size
9 MB
Likes
0
Public
Click a slice to open those files.
.pth4.5 MB · 100%
From the Hugging Face model README
This repository contains a Generative Adversarial Network (GAN) trained on the MNIST dataset to generate realistic handwritten digits. The model was trained as part of the Generative AI course.
To load the trained model, use the following code snippet:
from gan import Generator
import torch
latent_dim = 100
generator = Generator(latent_dim)
generator.load_state_dict(torch.load("./gan_mnist.pth"))
generator.eval()
# Generate samples
z = torch.randn(16, latent_dim)
samples = generator(z)

This project is licensed under the MIT License.