Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neirezcher/generative-adversarial-network
https://github.com/neirezcher/generative-adversarial-network
deep-learning genarative-ai mnist pytorch
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/neirezcher/generative-adversarial-network
- Owner: neirezcher
- License: mit
- Created: 2024-08-24T12:05:01.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-08-24T12:15:54.000Z (about 1 month ago)
- Last Synced: 2024-09-26T20:03:34.846Z (about 5 hours ago)
- Topics: deep-learning, genarative-ai, mnist, pytorch
- Language: Jupyter Notebook
- Homepage:
- Size: 103 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deep Learning with PyTorch: Generative Adversarial Network (GAN)
## Project Overview
This project implements a **Generative Adversarial Network (GAN)** using **PyTorch**, a widely-used deep learning framework. The GAN architecture consists of two competing neural networks: the **Generator** and the **Discriminator**. The Generator aims to create realistic synthetic data that mimics a given dataset, while the Discriminator's role is to distinguish between real and generated data. This adversarial process drives both networks to improve their performance over time.
## Key Features
- **Data Generation**: The Generator learns to produce high-quality images resembling those from the training dataset, specifically focusing on generating handwritten digits from the **MNIST** dataset.
- **Discriminator Training**: The Discriminator is trained to effectively classify real and generated images, enhancing its accuracy through adversarial training.- **Loss Function**: The project utilizes **Binary Cross-Entropy Loss** to measure the performance of both networks, enabling effective learning via backpropagation.
- **Optimizers**: **Adam optimizers** are employed for both the Generator and the Discriminator, ensuring stable and efficient training dynamics.
## Dataset
The model is trained on the **MNIST dataset**, which consists of 70,000 images of handwritten digits (0-9) in grayscale format, each with a resolution of 28x28 pixels. The dataset is divided into training and testing sets, with the training set used for model training and the testing set for evaluation.
## Results
After training, the model generates synthetic images that can be visually evaluated using **Matplotlib**. This allows for a comparison between real and generated images, showcasing the effectiveness of the GAN model.