khanh101 / tiny-yolo-tensorflow

Tiny yolov3 tensorflow
55 stars 13 forks source link

Test not working #6

Open FSet89 opened 5 years ago

FSet89 commented 5 years ago
Traceback (most recent call last):
  File "test.py", line 60, in <module>
    print(detect(im))
  File "test.py", line 30, in detect
    return sess.run(prediction, feed_dict = {X:Xp})
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 905, in run
    run_metadata_ptr)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1116, in _run
    str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (1, 416, 416, 3) for Tensor 'YOLO/input:0', which has shape '(32, 416, 416, 3)'

I think that the placeholder should have -1 as first dimension and not a constant value. Am I right?