bAmpT / mlx_gan_mnist

GAN network with the mlx framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MNIST GAN with mlX

This code implements a GAN (Generative Adversarial Network) for the MNIST dataset using the new Apple machine learning framework mlX, that is designed for Apple silicon.

The GAN consists of a generator network and a discriminator network. The generator network generates fake images, while the discriminator network tries to distinguish between real and fake images. The two networks are trained together in an adversarial manner.

This code is just to explores the capabilities of the mlX framework for machine learning tasks.

Run the code with:

python3 train_gan.py  --gpu

Credits: This code is basically borrowed from this Tinygrad example.

About the mlX framework: Checkout the mlX repository for more information or take a look at the documentation mlX documentation.

About

GAN network with the mlx framework


Languages

Language:Python 100.0%