Coder Social home page Coder Social logo

selmaguedidi / generating-images-with-dcgan Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 5.76 MB

This GitHub repository contains an implementation of Deep Convolutional Generative Adversarial Networks (DCGAN) for image generation. With this project, you can generate stunning and realistic images using the power of deep learning.

Jupyter Notebook 100.00%
celeba-dataset dcgan fashion-mnist-dataset fid inception-score mnist-dataset pytorch pytorch-ignite

generating-images-with-dcgan's Introduction

generating-images-with-dcgan

This GitHub repository contains an implementation of Deep Convolutional Generative Adversarial Networks (DCGAN) for image generation.In this project, we trained the DCGAN model on three diverse datasets: MNIST, Fashion-MNIST, and CelebA to generate stunning and realistic images using the power of deep learning.

Project description:

We began this project by understanding GAN components and how to use Pytorch to generate images. We built a basic GAN using PyTorch and trained it on MNIST and Fashion-MNIST. you can find it in these 2 notebooks:

- Generating Fashion-MNIST images with dcgan

- Generating MNIST images with dcgan

Then we started working on our project which consisted on creating a more advanced DCGAN that we trained on 3 datasets: Fashion-MNIST, MNIST and CelebA. We also used Pytorch-Ignite in order to calculate FID and IS scores during training. you can find it in these 3 notebooks:

- Fashion-MNIST dcgan

- MNIST dcgan

- CelebA dcgan

Key Features:

1-Shared DCGAN Architecture: Our implementation utilizes the same architecture of the generator and the discriminator networks for the training on the 3 datasets. This consistent architecture makes it possible to compare test results on different datasets.

2-Multi-Dataset Training: We trained the DCGAN model on three popular datasets: MNIST, Fashion-MNIST, and CelebA. This enables the generation of images from different domains, including handwritten digits, fashion items, and celebrity faces, providing a wide range of creative possibilities.

3-Performance Evaluation: To assess the quality of the generated images, we employed well-established evaluation metrics: Inception Score and Fréchet Inception Distance (FID). These metrics measure the diversity, realism, and similarity to real images, providing quantitative insights into the performance of the DCGAN model.

4- Inception Score and FID Calculations: Our repository will use in-built GAN based metric in PyTorch-Ignite to evaluate Frechet Inception Distnace and Inception Score .These calculations will help us objectively evaluate and compare the performance of the DCGAN across different datasets.

See here for more details about the implementation of the metrics in PyTorch-Ignite.

5-Visualization and Analysis: We provide visualizations the generated images during training, allowing you to monitor the progression and quality of the generated images and compare them to the original images from the datasets. You can also analyze the learned representations of the generator and discriminator loss curves and the evolution of the evaluation metrics during training within the DCGAN to gain insights into the underlying image generation process.

6-Comprehensive Documentation and Examples: The repository includes detailed documentation, guiding you through the setup, training, evaluation, and fine-tuning of the DCGAN model. We provide clear examples to facilitate a smooth experience while using the codebase.

Authors:

This project was created by Selma Guedidi, Karim Ellouze and Fatma Hamada for gl3 PPP at INSAT.

We hope this DCGAN Image Generator repository serves as a valuable resource for exploring the capabilities of generative deep learning and inspires your own experiments in image generation. Enjoy creating stunning images with the power of DCGAN!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.