• Stars
    star
    203
  • Rank 192,890 (Top 4 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created over 6 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Keras implementations of Generative Adversarial Networks. GANs, DCGAN, CGAN, CCGAN, WGAN and LSGAN models with MNIST and CIFAR-10 datasets.

Generative Adversarial Networks - GANs

This repository presents the basic notions that involve the concept of Generative Adversarial Networks.

"...the most interesting idea in the last 10 years in ML". Yann LeCun

Definition

Generative Adversarial Networks or GANs is a framework proposed by Ian Goodfellow, Yoshua Bengio and others in 2014.

GANs are composed of two models, represented by artificial neural network:

  • The first model is called a Generator and it aims to generate new data similar to the expected one.
  • The second model is named the Discriminator and it aims to recognize if an input data is ‘real’ — belongs to the original dataset — or if it is ‘fake’ — generated by a forger.

Read more in this post GANs — Generative Adversarial Networks 101.

Configure environment

  • Create the conda environment
(base)$: conda env create -f environment.yml
  • Activate the environment
(base)$: conda activate gans_101
  • Run!
(gans_101)$: python -m jupyter notebook

⚠️ Note

🎉 Run with conda environment:

  • GAN - MNIST

🚧 Under construction:

  • DCGAN - MNIST
  • CGAN - MNIST
  • CCGAN - MNIST
  • WGAN - MNIST
  • LSGAN - MNIST
  • DCGAN - CIFAR10
  • CGAN - CIFAR10

Models

Definition and training some models with MNIST and CIFAR-10 datasets.

MNIST dataset

CIFAR-10 dataset

Results

Training models with Keras - TensorFlow.

MNIST dataset

Generative Adversarial Networks - GANs

A GANs implementation using fully connected layers. Notebook

Epoch 00 Epoch 100 Loss
GAN with MNIST GAN with MNIST GAN with MNIST

Deep Convolutional Generative Adversarial Networks - DCGANs

A DCGANs implementation using the transposed convolution technique. Notebook

Epoch 00 Epoch 100 Loss
GAN with MNIST GAN with MNIST GAN with MNIST

Conditional Generative Adversarial Nets - CGANs

A CGANs implementation using fully connected layers and embedding layers. Notebook

Epoch 00 Epoch 100 Loss
CGAN with MNIST CGAN with MNIST CGAN with MNIST

Context-Conditional Generative Adversarial Networks - CCGANs

A CCGANs implementation using U-Net and convolutional neural network. Notebook

Epoch 00 Epoch 100 Loss
CGAN with MNIST CGAN with MNIST CGAN with MNIST

Wasserstein Generative Adversarial Networks - WGANs

A WGANs implementation using convolutional neural network. Notebook

Epoch 00 Epoch 100 Loss
WGAN with MNIST WGAN with MNIST WGAN with MNIST

Least Squares General Adversarial Networks - LSGANs

A LSGANs implementation using using fully connected layers. Notebook

Epoch 00 Epoch 100 Loss
LSGAN with MNIST LSGAN with MNIST LSGAN with MNIST

CIFAR-10 dataset

Deep Convolutional Generative Adversarial Networks - DCGANs

A DCGANs implementation using the transposed convolution technique. Notebook

Epoch 00 Epoch 100 Loss
DCGAN with CIFAR-10 DCGAN with CIFAR-10 DCGAN with CIFAR-10

Conditional Generative Adversarial Networks - CGANs

A CGANs implementation using the transposed convolution and convolution neural network, and concatenate layers. Notebook

Epoch 00 Epoch 100 Loss
CGAN with CIFAR-10 CGAN with CIFAR-10 CGAN with CIFAR-10

References


made with 💙 by mafda

More Repositories

1

augmented_reality_101

Introduction to Augmented Reality (AR) with Python 3 and OpenCV 4.2.
Jupyter Notebook
122
star
2

python_best_practices

How to make your code shine with isort, Black, Flake8, and Pylint. Guidelines and best practice suggestions on how to write Python code.
Python
32
star
3

ml_with_fastapi_and_streamlit

Prototyping a Machine Learning Application with Streamlit, FastAPI, Hugging Face and Docker
Python
20
star
4

knee_OA_dl_app

Web app to predict knee osteoarthritis grade using Deep Learning and Streamlit
Jupyter Notebook
11
star
5

deep_learning_101

Introduction to the basic notions that involve the concept of Machine Learning and Deep Learning. Linear Regression, Logistic Regression, Artificial Neural Networks, Deep Neural Networks, Convolutional Neural Networks.
Jupyter Notebook
7
star
6

ux_tools

A brief introduction to User Experience - UX. A list of the main UX tools and methods: Strategy, Ideas, Planning, Validation, Design, Metrics, and Launch!
3
star
7

seattle_airbnb_data_analysis

This repository contains a comprehensive analysis of the Seattle Airbnb dataset, conducted using the CRISP-DM (Cross Industry Standard Process for Data Mining) methodology.
Jupyter Notebook
1
star
8

regex_101

A regular expression is a sequence of characters that define a search pattern.
Python
1
star
9

disaster_response_pipeline

This project involves developing an ETL pipeline integrated with supervised learning and grid search to classify text messages sent during disaster events. It includes an ML pipeline and a web app designed to categorize disaster response messages in real time using NLP techniques
Jupyter Notebook
1
star
10

plataforma_mapas_LMA

[pt-BR] Desenvolvimento de um sistema de localização híbrido para navegação autônoma de veículos terrestres em ambiente simulado.
Python
1
star
11

mafda

✨special ✨ repository
1
star
12

ux_design_sprint

A brief introduction to User Experience - UX Work Process. One of the main UX methodologies: Design Sprint!
1
star
13

ux_lean

A brief introduction to User Experience - UX Work Process. LEAN UX is based on Design Thinking, Agile Methodology, and Lean Startup.
1
star