The trainer seems to does not work
fu123456 opened this issue · 0 comments
fu123456 commented
When I tried to train the model, I got error as follows:
Traceback (most recent call last):
File "demo.py", line 97, in <module>
_,current=sess.run([opt,loss],feed_dict={input:input_images[id],output:output_images[id]})
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 929, in
run
run_metadata_ptr)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1128, i
n _run
str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (1,) for Tensor 'Placeholder_1:0', which has shape '(?, ?,
?, 3)'
The version of tensorflow I used is 1.12, and the system is Ubuntu. Can you help me solve this problem.