Comments (3)
hi
i have the same problem,
any solution please!
from dcgan-tensorflow.
The problem was to_json
method which is only used by me. I fixed the code and commented to_josn
method. Now you can see the generated images.
from dcgan-tensorflow.
Thank your for your reply
unfortunately, when we comment to_josn method we get those errors:
Traceback (most recent call last):
File "main.py", line 60, in
tf.app.run()
File "/home/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv))
File "main.py", line 57, in main
visualize(sess, dcgan, FLAGS, OPTION)
File "/home/DCGAN-tensorflow-master/utils.py", line 171, in visualize
samples = sess.run(dcgan.sampler, feed_dict={dcgan.z: z_sample})
File "/home/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 710, in run
run_metadata_ptr)
File "/home/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 908, in _run
feed_dict_string, options, run_metadata)
File "/home/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 958, in _do_run
target_list, options, run_metadata)
File "/home/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 978, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors.InvalidArgumentError: You must feed a value for placeholder tensor 'y' with dtype float and shape [64,65]
[[Node: y = Placeholderdtype=DT_FLOAT, shape=[64,65], _device="/job:localhost/replica:0/task:0/cpu:0"]]
Caused by op u'y', defined at:
File "main.py", line 60, in
tf.app.run()
File "/home/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv))
File "main.py", line 38, in main
dataset_name=FLAGS.dataset, is_crop=FLAGS.is_crop, checkpoint_dir=FLAGS.checkpoint_dir)
File "/home/DCGAN-tensorflow-master/model.py", line 68, in init
self.build_model()
File "/home/DCGAN-tensorflow-master/model.py", line 72, in build_model
self.y= tf.placeholder(tf.float32, [self.batch_size, self.y_dim], name='y')
File "/home/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1212, in placeholder
name=name)
File "/home/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 1530, in _placeholder
name=name)
File "/home/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 703, in apply_op
op_def=op_def)
File "/home/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2317, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1239, in init
self._traceback = _extract_stack()
and when we test with only:
python main.py --dataset mnist --is_train False
nothing appear as result
from dcgan-tensorflow.
Related Issues (20)
- input _fname_pattern"*.jpg" Synatx Error: Invalid Syntax error in line 91 in main.py
- Why the kernel size of discriminator is 4?
- raise Exception("[!] Entire dataset size is less than the configured batch_size") Exception: [!] Entire dataset size is less than the configured batch_size
- why my model is not converge after 300 epochs HOT 1
- checkpoint not found HOT 2
- What are the in/output node names for Generator and Discriminator? HOT 1
- Solved some problems in my repo/解决了一些问题
- raise Exception("Checkpoint not found in " + FLAGS.checkpoint_dir) Exception: Checkpoint not found in ./out\20200526.133337 - data - retina\checkpoint HOT 5
- Training and Test generating black squares HOT 2
- There are two bugs in the transform function in the utils.py HOT 2
- How to save discriminator network? HOT 2
- Can't create checkpoint
- cannot generate when testing
- failed to teat
- failed to test HOT 1
- NameError:name 'PIL' is not defined HOT 1
- ValueError: could not broadcast input array from shape (1,2048) into shape (98,1024) HOT 2
- TypeError: 'NoneType' object is not subscriptable
- How to generate larger images? HOT 1
- InvalidArgumentError (see above for traceback): Nan in summary histogram for: HistogramSummary_2 [[Node: HistogramSummary_2 = HistogramSummary[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"](HistogramSummary_2/tag, discriminator_1/Sigmoid)]] 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 dcgan-tensorflow.