zhangqianhui / conditional-gan Goto Github PK
View Code? Open in Web Editor NEWTensorflow implementation for Conditional Convolutional Adversarial Networks.
License: MIT License
Tensorflow implementation for Conditional Convolutional Adversarial Networks.
License: MIT License
Hi, I get the following error while running python main.py --operation 1 , using MNIST dataset.
Traceback (most recent call last):
File "main.py", line 30, in
tf.app.run()
File "/Users/Ido/tensorflow/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "main.py", line 27, in main
, model_path= FLAGS.model_path , visua_path=FLAGS.visua_path)
File "/Users/Ido/Conditional-Gans/model_mnist.py", line 37, in dcgan
data_array , data_y = load_mnist(data_name)
File "/Users/Ido/Conditional-Gans/utils.py", line 48, in load_mnist
y_vec[i, y[i]] = 1
IndexError: only integers, slices (:
), ellipsis (...
), numpy.newaxis (None
) and integer or boolean arrays are valid indices
Any ideas?
Thanks!
Please see the comment on line
Conditional-GAN/model_mnist.py
Line 165 in 1b4d7ea
There is no "10" in the next line of code. Instead this comment belongs to method "dis_net" and it should be just above the line conv1, w1 = conv2d(concat_data, output_dim=10, name='dis_conv1')
where 10
does indeed mean the number of labels.
On this line :
Conditional-GAN/model_mnist.py
Line 170 in 1b4d7ea
7*7*2*64
there should be c1*c1*2*self.batch_size
.
Otherwise, why does this create variables and then neglects to use them?
As far as I've understood, the architecture of the generator in this implementation mainly consists of two fully-connected layers and two "deconvolutional" ones.
However, in the DCGAN paper, the generator consists of four deconvolutional layers (more correctly would be saying "fractionally-strided convolutions").
Why such choice?
Many type errors.
since tf1.0 is ready and will be stable, I suggest to update the code with tf1.0
i have tried to run your code but it give this error. can you help to solve this problem?
TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.