ValueError: Cannot feed value of shape (0,) for Tensor 'Placeholder:0', which has shape '(?, 128, 128, 3)'

天天爬网 发布于 2017/09/08 10:29
阅读 3K+
收藏 0
E:\ProgramData\Anaconda3\python.exe D:/360c/FaceRank-master/run_model.py
(?, 128, 128, 24)
(?, 64, 64, 24)
(?, 64, 64, 96)
(?, 32, 32, 96)
2017-09-08 10:29:25.946979: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-09-08 10:29:25.946979: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
[]
Traceback (most recent call last):
0
  File "D:/360c/FaceRank-master/run_model.py", line 144, in <module>
(0,)
    pred_result_test=sess.run(pred_result, feed_dict={x: batch_xs,keep_prob: 1.})
  File "E:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 895, in run
    run_metadata_ptr)
  File "E:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1100, in _run
    % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (0,) for Tensor 'Placeholder:0', which has shape '(?, 128, 128, 3)'

Process finished with exit code 1

 

加载中
0
ddddddd456
ddddddd456

楼主怎么解决的最后,同样的问题

ddddddd456
ddddddd456
问过,他说他那边环境可以运行成功,
天天爬网
天天爬网
问问github的作者
返回顶部
顶部