Giter Club home page Giter Club logo

bmen4460-nb4-gan_faking_mnist_images's Introduction

BMEN4460 Notebook 4.

GAN faking MNIST images.

Nanyan "Rosalie" Zhu and Chen "Raphael" Liu

Notice

We will update this repository with more detailed explanations and more sophisticated variants ASAP. Currently this repository only contains a simple and working example.

Overview

This repository is a child repository of RnR-2018/Deep-learning-with-PyTorch-and-GCP. This serves a primary purpose of facilitating the course BMEN4460 instructed by Dr. Andrew Laine and Dr. Jia Guo at Columbia University. However, it can also be used as a general beginner-level tutorial to implementing deep learning algorithms with PyTorch on Google Cloud Platform.

This repository, GAN faking MNIST images, presents an application of simple generative adverserial networks (GANs) on generating fake images.

For students in BMEN4460 (or who follow the instructions Step00 through Step02 in the parent repository), please create a Projects folder (if you have not done yet) within your GCP VM and download this repository into that folder.

On the GCP VM Terminal:

cd /home/[username]/
mkdir BMEN4460 # This is only necessary if you have not done this yet
mkdir BMEN4460/MNIST_GAN # This is only necessary if you have not done this yet
cd BMEN4460/MNIST_GAN
git clone https://github.com/RnR-2018/BMEN4460-NB4-GAN_faking_MNIST_images/

If it says "fatal: could not create work tree dir ...", you may as well try it again with super user permission

sudo git clone https://github.com/RnR-2018/BMEN4460-NB4-GAN_faking_MNIST_images/

You shall then see the following hierarchy of files and folders, hopefully, which matches the hierarchy of the current repository.

BMEN4460-NB4-GAN_faking_MNIST_images
    └── BMEN4460-NB4-GAN_faking_MNIST_images.ipynb

Notebook versions.

Version 1. BMEN4460-NB4-GAN_faking_MNIST_images.ipynb

This is the simplest working version. A lot of things are not implemented ideally. For instance:

  1. The loss functions are just Binary Cross-Entropy (BCE) losses for both the generator and discriminator, nothing fancy there.
  2. The model architectures are feedforward neural networks (FFNNs), not convolutional neural networks (CNNs).
  3. Beyond these, a lot of cool things are not yet implemented. Please keep hyped for more versions.

Acknowledgements

This notebook is inspired by this succinct GitHub repository and this elaborate GitHub repository, neither of which can be directly run/used due to issues with the PyTorch version of the MNIST dataset as well as some weird things with the training processes. Anyway we thank them for the resources, and we especially like the latter who walked through some nice concepts in detail.

Also, we later found this beautiful GitHub repository that is, no offense, way cooler than the other two. You are encouraged to take a look.

bmen4460-nb4-gan_faking_mnist_images's People

Contributors

rnr-2018 avatar rosaliezhu avatar

Watchers

 avatar

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.