GithubHelp home page GithubHelp logo

Comments (3)

raniamlj avatar raniamlj commented on May 8, 2024

hi
i have the same problem,
any solution please!

from dcgan-tensorflow.

carpedm20 avatar carpedm20 commented on May 8, 2024

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.

raniamlj avatar raniamlj commented on May 8, 2024

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)

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.