Giter Site home page Giter Site logo

henry32144 / sngan-projection-notebook Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 19.47 MB

A Tensorflow 2 implementation of SNGAN and Projection Discriminator

License: MIT License

Jupyter Notebook 100.00%
tensorflow2 sngan cgans gan sngan-projection

sngan-projection-notebook's Introduction

SNGAN-Projection Tensorflow

This is a Unofficial TF2.0 implementation of Spectral Normalization for Generative Adversarial Networks and cGANs with Projection Discriminator.

Official implementation is available here

Foods showcase

Dataset

There are Food-101and MNIST training examples.

I found that it is easier to train 128 * 128 resolutions with dataset which has fewer classes and more examples. For example, I failed to train 64 * 64 res model with tiny-image-net(200 classes with 500 images in each classes) and stanford-dogs(120 classes with 20,580 images). However, I can get relative good result in Foods-101(101 classes and 101,000 images)

Environments

  • Python 3
  • jupyter or jupyterlab
  • numpy
  • matplotlib
  • tensorflow 2.0

How to Run

  1. Download the dataset you want.

  2. Clone this repo, then use Juypter Notebook or Lab to open the *.ipynb file.

  3. Modify the DATASET_PATH, and the parts with Needs to be modified in the Prepare dataset section.

Results

Foods:

  • 128 * 128 resolutions
  • batch size: 16
  • noise dimension: 128
  • 430k iterations

Foods showcase

MNIST

  • 28 * 28 resolutions
  • batch size: 64
  • noise dimension: 100
  • 100k iterations

MNIST showcase

Acknowledges

Official implementation, https://github.com/pfnet-research/sngan_projection

crcrpar's repo, https://github.com/crcrpar/pytorch.sngan_projection

sngan-projection-notebook's People

Contributors

henry32144 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pengtb

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.