Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

Synthetic Image Generation with GAN (DCGAN)

Generate synthetic (β€œfake”) images using a Generative Adversarial Network (GAN).
This project trains a DCGAN to learn the distribution of a dataset and produce new, realistic-looking samples from random noise.

Note: These images are synthetic, created by the model β€” not copied from the dataset.


✨ Project Highlights

  • βœ… DCGAN training loop (Generator vs Discriminator)
  • βœ… Stabilization tricks (label smoothing, noise injection optional)
  • βœ… Saves generated image grids during training
  • βœ… Checkpoint saving + inference script

🧠 How GAN Works (Quick)

  • Generator (G): takes random noise z β†’ produces a fake image
  • Discriminator (D): receives an image β†’ predicts real vs fake
  • Training is adversarial: G tries to fool D, D tries to catch G

πŸ“¦ Dataset

This repo is set up for:

  • Fashion-MNIST (default, 28Γ—28 grayscale)
    You can switch to CIFAR-10 or custom datasets with minor changes.

πŸ—οΈ Model Architecture (DCGAN)

Generator

  • Dense β†’ reshape β†’ Conv2DTranspose blocks β†’ output image (tanh)

Discriminator

  • Conv2D blocks β†’ flatten β†’ sigmoid output (real/fake)

πŸš€ Getting Started

1) Clone the repo

git clone <YOUR_REPO_URL>
cd <YOUR_REPO_NAME>

About

A Generative Adversarial Network (GAN) is a type of deep learning model used to generate new data that looks similar to real data. It is widely used for creating fake images, faces, artwork, and even videos.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages