Skip to content

Mukku27/Simple_GAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Simple GAN (Generative Adversarial Network) for MNIST Dataset

This project implements a simple Generative Adversarial Network (GAN) for generating handwritten digits from the MNIST dataset using PyTorch. GANs are a class of machine learning models composed of two neural networks, the Generator and the Discriminator, which are trained simultaneously in a competitive manner. This repository contains a simple implementation of a Generative Adversarial Network (GAN) for generating handwritten digits from the MNIST dataset using PyTorch.

Installation

To run this code, ensure you have Python and pip installed. Then, install the required packages using the following command:

pip install torch torchvision

Description

The GAN consists of two neural networks:

  1. Discriminator: A neural network that distinguishes between real and fake images.
  2. Generator: A neural network that generates fake images to try to fool the discriminator.

Usage

  1. Clone the repository:
git clone <repository_url>
  1. Navigate to the repository directory:
cd <repository_name>
  1. Run the code:
python simple_gan.py

Results

During training, the GAN produces both real and fake images. These images are visualized using TensorBoard. You can view the generated images and real images to track the training progress.

About

This project implements a simple Generative Adversarial Network (GAN) for generating handwritten digits from the MNIST dataset using PyTorch. GANs are a class of machine learning models composed of two neural networks, the Generator and the Discriminator, which are trained simultaneously in a competitive manner.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors