Project

Generative Adversarial Networks (GANs)

Deep Convolutional GAN implementation in PyTorch for generating realistic handwritten digits from the MNIST dataset.

This projectAugust 2023
Deep Learning · GANs · PyTorch · Generative AI
PyTorch, Deep Learning, Generative Models
LinksCode All projects
Generative Adversarial Networks (GANs)

Overview

Implementation of a Deep Convolutional Generative Adversarial Network (DCGAN) using PyTorch to generate realistic handwritten digits. The model learns to produce images indistinguishable from real MNIST samples.

GAN Generated Samples

Architecture

Generator Network

  • Takes random noise vector as input
  • Upsamples through transposed convolutions
  • Outputs 28x28 grayscale images
  • Uses BatchNorm and ReLU activations

Discriminator Network

  • Takes 28x28 images as input
  • Downsamples through convolutions
  • Outputs probability of image being real
  • Uses LeakyReLU and Dropout

Training Process

The adversarial training involves:

  1. Discriminator Training
    • Learn to distinguish real MNIST images from generated fakes
    • Maximize classification accuracy
  2. Generator Training
    • Learn to produce images that fool the discriminator
    • Minimize discriminator’s ability to detect fakes

Results

The trained generator produces realistic handwritten digits across all classes (0-9), demonstrating:

  • Diverse digit styles
  • Clear, legible outputs
  • Smooth interpolation in latent space

Key Learnings

  • GAN training dynamics and stability
  • Importance of architectural choices in DCGANs
  • Hyperparameter tuning for convergence

All projects → · The repository →

Tagantino AI - Smart Agriculture with Satellite Data

ETL pipelines and Deep Learning models to forecast droughts from satellite data, helping Moroccan farmers optimize water resources.

2025 · Deep Learning · Data Engineering · AWS · LLM · RAG

Florence-2 Vision Language Model Toolkit

Comprehensive collection of notebooks for Microsoft’s Florence-2 VLM: inference, data auto-labeling, and fine-tuning for various computer vision tasks.

2024 · Computer Vision · VLM · Deep Learning · Hugging Face

Radio Signals Classification

Deep learning model for classifying radio signals using spectrogram images with PyTorch and transfer learning.

2024 · Deep Learning · Signal Processing · PyTorch · Audio