mystic123 / tensorflow-yolo-v3

Implementation of YOLO v3 object detector in Tensorflow (TF-Slim)
https://medium.com/@pawekapica_31302/implementing-yolo-v3-in-tensorflow-tf-slim-c3c55ff59dbe
Apache License 2.0
890 stars 353 forks source link

ValueError: could not broadcast input array from shape (416,234,3) into shape (416,180,3) #52

Closed vamshi-rvk closed 4 months ago

vamshi-rvk commented 5 years ago

Traceback (most recent call last): File "./demo.py", line 101, in tf.app.run() File "/Users/vamshi/projects/google_ml_engine/mlengine-env/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run _sys.exit(main(argv)) File "./demo.py", line 54, in main img_resized = letter_box_image(img, FLAGS.size, FLAGS.size, 128) File "/Users/vamshi/projects/od/tensorflow-yolo-v3/utils.py", line 278, in letter_box_image to_return[pad_top:pad_top+fit_height, pad_left:+fit_width] = fit_image ValueError: could not broadcast input array from shape (416,234,3) into shape (416,180,3)

GallonDeng commented 5 years ago

I also meet this error. change the "[pad_top:pad_top+fit_height, pad_left:+fit_width]" to "[pad_top:pad_top+fit_height, pad_left:pad_left+fit_width]" in the line278