Giter Site home page Giter Site logo

ethanhe42 / gan-mnist Goto Github PK

View Code? Open in Web Editor NEW
185.0 16.0 70.0 10.78 MB

Generative Adversarial Network for MNIST with tensorflow

Home Page: https://yihui-he.github.io/blog/gan-on-mnist-with-tensorflow

License: MIT License

Python 100.00%
mnist gan tensorflow dcgan-model face deep-learning generative-adversarial-network

gan-mnist's Introduction

GAN on MNIST with TensorFlow

GitHub - yihui-he/GAN-MNIST: Generative Adversarial Network for MNIST with tensorflow

Untitled

Untitled 1

Tensorflow implementation

  • All the codes in this project are mere replication of Theano version

Code

  • Under face/ and mnist/
  • model.py
  • Definition of DCGAN model
  • train.py
  • Training the DCGAN model (and Generating samples time to time)
  • util.py
  • Image related utils

Dataset

references

https://github.com/carpedm20/DCGAN-tensorflow

Citation

If you find the code useful in your research, please consider citing:

@InProceedings{He_2017_ICCV,
author = {He, Yihui and Zhang, Xiangyu and Sun, Jian},
title = {Channel Pruning for Accelerating Very Deep Neural Networks},
booktitle = {The IEEE International Conference on Computer Vision (ICCV)},
month = {Oct},
year = {2017}
}

gan-mnist's People

Contributors

ethanhe42 avatar jazzsaxmafia avatar lijinging avatar sarthmit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gan-mnist's Issues

deconv2d

tf.nn.deconv2d is renamed as conv2d_transpose from tensorflow version 0.7

clipping raw value of discriminator

Hey, just browsed your code in mnist/model.py and I guess that you should not clip the output of the discriminator to 1e-7 and 1. - 1e-7.

In line 84 / 85 you pass the output of the descriminator (which is the result of conv2d_transpose) to your function bce, which clips the value. I guess you intended to clip the sigmoid.

Problem with load.py

I apologize if its a basic question, I'm new to Tensorflow. When I run train.py I get the following error while loading the MNIST dataset:

Traceback (most recent call last):
File "/home/m132/Desktop/Python/Learning GANs/GAN-MNIST-DC/train.py", line 19, in
trX, vaX, teX, trY, vaY, teY = mnist_with_valid_set()
File "/home/m132/Desktop/Python/Learning GANs/GAN-MNIST-DC/Load_Data.py", line 31, in mnist_with_valid_set
trX, teX, trY, teY = mnist()
File "/home/m132/Desktop/Python/Learning GANs/GAN-MNIST-DC/Load_Data.py", line 11, in mnist
trX = loaded[16:].reshape((60000,28*28)).astype(float)
ValueError: cannot reshape array of size 9912406 into shape (60000,784)

Any help would be appreciated.

Which tensorflow this code use

Could you tell me which version tensorflow used? I run "face/train.py", and got an error:

if v.op.type == "VarHandleOp":
AttributeError: 'filter' object has no attribute 'op'

I have used tensorflow 1.8.0 from pip in windows 10 1803.

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.