Giter Site home page Giter Site logo

stevemcc / gans-from-theory-to-production Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zurutech/gans-from-theory-to-production

0.0 0.0 0.0 7.88 MB

Material for the tutorial: "Deep Diving into GANs: from theory to production"

License: Mozilla Public License 2.0

Jupyter Notebook 98.73% Python 1.27%

gans-from-theory-to-production's Introduction

Deep Diving into GANs: from theory to production

With our accrued experience with GANs, we would like to guide you through the required steps to go from theory to production with this revolutionary technology.

Starting from the very basic of what a GAN is, passing trough Tensorflow implementation, using the most cutting edge APIs available in the framework, and finally, production-ready serving at scale using Google Cloud ML Engine.

This is the ZURU Tech way of making GANs: enjoy it.

Workshop's Table of contents

  • Introduction to GANs: Theory and Applications

    • Unconditional GAN
    • Conditional GAN
  • GANs in Tensorflow:

    • Writing an GAN from scratch: a complete example
    • Define generator with tf.estimator API
    • Input pipeline with tf.data API
    • How to use tf.estimator to train both generator and discriminator?
  • TFGAN:

    • API overview
    • Generator and discriminator definition
    • Input pipeline definition
    • Loss function: a bond between generator and discriminator
    • Train end Prediction
    • Export the trained model
  • Production:

    • Google Cloud ML
    • Serving at scale

Requirements

This tutorial requires the following packages:

Optional, but recommended:

  • virtualenv to manage a virtual environment
  • NVIDIA CUDA®: Compute Unified Device Architecture
  • cuDNN: The NVIDIA CUDA® Deep Neural Network library
  • NOTE: If you have an NVIDIA GPU with Compute Capability 3.0 or higher, you can install tensorflow-gpu instead of tensorflow.
  • Google Cloud account with access to the CloudML APIs (only needed for the serving in production section).
  • Google Cloud SDK (only needed for the serving in production section).
  • jsonlines to easily generate .ndjson files for CloudML Engine

Setting up the environment (Linux, MacOS)

Clone the repository

git clone https://github.com/zurutech/gans-from-theory-to-production
cd gans-from-theory-to-production

Prepare a virtual environment

  • virtualenv: virtualenv venv && source venv/bin/activate

Installing the required packages

pip install -r no-gpu-requirements.txt
# or pip install -r gpu-requirements if a GPU with Compute Capability >= 3.0 is present

Prepare the CelebA Dataset

python prepare_dataset.py

Start your Jupyter server

jupyter notebook . or the newer jupyter lab ..


If you're here, you're ready to go.

Happy workshop!


We're hiring!

Do you just love machine learning and you're also interested in Computer Vision? Join us at ZURU Tech!

Authors

gans-from-theory-to-production's People

Contributors

galeone avatar mr-ubik avatar ilew avatar getmolmap 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.