Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/szymon-budziak/fashion_mnist_gan

Generative Adversarial Network (GAN) built with CNNs for both the generator and discriminator, implemented in TensorFlow and trained on the Fashion MNIST dataset.
https://github.com/szymon-budziak/fashion_mnist_gan

fashion-mnist gan generative-adversarial-network generative-ai python3 tensorflow

Last synced: 17 days ago
JSON representation

Generative Adversarial Network (GAN) built with CNNs for both the generator and discriminator, implemented in TensorFlow and trained on the Fashion MNIST dataset.

Awesome Lists containing this project

README

        

# Fashion MNIST Generative Adversarial Network

This project is a simple implementation of a Generative Adversarial Network (GAN) using the Fashion MNIST dataset. The
GAN is implemented using Tensorflow and trained on the Fashion MNIST dataset. The GAN is trained to generate new images
of clothing items that are similar to the images in the Fashion MNIST dataset.

## Installation

The requirements of the project are listed in the `requirements.txt` file. To install the requirements, run the
following command:

1. Create a virtual environment and activate it:

```bash
python -m venv venv
source venv/bin/activate
```

2. Install the requirements:

```bash
pip install -r requirements.txt
```

## Usage

All the code for the project is in the `main.ipynb` notebook. Architectures of the generator and discriminator are
located in separate directories called `generator` and `discriminator` respectively. Code for training the GAN is
in the notebook.

## Results

The GAN was trained for 10000 epochs on the Fashion MNIST dataset with 32 batch size. The results of the training are:

- After 500 epochs

![500 epochs](src/images/gan_generated_image_epoch_500.png)

- After 1000 epochs

![1000 epochs](src/images/gan_generated_image_epoch_1000.png)

- After 5000 epochs

![5000 epochs](src/images/gan_generated_image_epoch_5000.png)

- After 9500 epochs

![10000 epochs](src/images/gan_generated_image_epoch_9500.png)