Comments (2)
You'll need to replace the lines where we call the function mnist.train.next_batch. For example, in the line
real_image_batch = mnist.train.next_batch(batch_size)[0].reshape([batch_size, 28, 28, 1])
you'll need to create your own python function that basically returns a random subset of your dataset. For example, if you have 25,000 images that are each 28x28, you should have a 25000 x 28 x 28 matrix that represents those examples. You'll have to create a function that selects a random subset of those. The shape of the matrix you return will be batch_size x 28 x 28.
from generative-adversarial-networks.
Thanks Adit!
from generative-adversarial-networks.
Related Issues (8)
- Error for running with TensorFlow: ValueError: Variable d_w1/Adam/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=None in VarScope? HOT 5
- Python 3.5 TensorFlow 1.2 variable scope related error HOT 2
- Training Betas and Gammas of the batch normalization HOT 3
- Not able to load pre-trained model HOT 4
- ValueError: Variable d_w1/Adam_5/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=tf.AUTO_REUSE in VarScope? HOT 3
- why this code only in discriminator, but not in generator?: HOT 1
- Variable d_w1/Adam_3/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=tf.AUTO_REUSE in VarScope? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generative-adversarial-networks.