Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Handwritten-Character-Generator

Quick Start

Google Colab

Open In Colab

Needs Google Drive mount for loading data. Download CData file and upload it onto Google Drive. Copy just below top code cell.

from google.colab import drive
drive.mount('/content/drive')

And then copy this below the last one.

dset = pd.read_csv('/content/drive/MyDrive/CData/emnist-balanced-train.csv', header=None)
dset.head()

Finally, comment out the following block.

dset = pd.read_csv('CData/emnist-balanced-train.csv', header=None)
dset.head()

Locally

$ git clone https://github.com/marsof02/Handwritten-Character-Generator.git
$ cd Handwritten-Character-Generator

Generative Adversarial Network (GAN)

This model is composed by two neural networks: a generator that takes a random distribution as input and outputs some data (typically an image), and a discriminator that takes a fake image from the generator and a real one from the training set as input, and must guess whether the input image is fake or real. The goal of the generator is to trick the discriminator and the goal of the discriminator is to tell fake images from real ones correctly, despite the increased accuracy of the generator's results.

Screen Shot 2022-12-08 at 7 24 05 AM

This model was trained on the EMNIST (Extended MNIST) dataset from https://www.kaggle.com/datasets/crawford/emnist

Consulted the following sources for implementation details:

Results were compared to the ones of the Variational Autoencoder (VAE) in the book referenced on the previous list using the same dataset.

Screen Shot 2022-12-08 at 7 38 36 AM

Screen Shot 2022-12-08 at 7 51 53 AM

About

DS 340 Final Project: Generative Adversarial Network (GAN) to generate English handwritten characters.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages