xslittlegrass / CarND-Vehicle-Detection

Vehicle detection using YOLO in Keras runs at 21FPS
389 stars 175 forks source link

ValueError: cannot convert float NaN to integer #9

Closed arcslash closed 7 years ago

arcslash commented 7 years ago
Traceback (most recent call last):
  File "detect.py", line 69, in <module>

ax2.imshow(draw_box(boxes,image,[[500,1280],[300,650]]))
.../utils/utils.py", line 105, in draw_box
    left  = int ((b.x - b.w/2.) * w)
ValueError: cannot convert float NaN to integer

Did anyone get this error? How did you fix it?

arcslash commented 7 years ago

Fixed after using the weights file in the readme