CarND-Vehicle-Detection icon indicating copy to clipboard operation
CarND-Vehicle-Detection copied to clipboard

No bounding boxes

Open gohar94 opened this issue 7 years ago • 14 comments

I downloaded the weights from http://pjreddie.com/media/files/yolo-tiny.weights but after I run the script, no bounding boxes are seen on the test images.

gohar94 avatar Jul 26 '17 21:07 gohar94

same to me ..

declanzane avatar Aug 09 '17 02:08 declanzane

Could you try the weight file from the link in the readme?

xslittlegrass avatar Aug 09 '17 03:08 xslittlegrass

I tried the weight file from the link in the readme (the link directing to google drive 172MB ). But there is no box! When I assigned the threshold=0, I can see all boxes.

eserercanakin avatar Aug 09 '17 14:08 eserercanakin

Had the same problem, no boxes produced. I used the weight file from the link in the readme. I noticed in the notebook

import keras # broken for keras >= 2.0, use 1.2.2 My keras is 2.0.6, but No running errors reported, on a Mac OS X

After changing keras to 1.2.2, still no boxes produced, no error messages.

Any suggestions to find out why? Thanks

tianqig avatar Aug 20 '17 00:08 tianqig

When I assigned the threshold=0, I can see all boxes.

The same happened to me too, when threshold=0, there are many boxes around the areas of the vehicles.

It would be great to be able to visualize the out array to show the 7x7 grid, BBox candidates, and probabilities.

tianqig avatar Aug 20 '17 09:08 tianqig

same problem here i can see bounding boxes only when the threshold is reduced to less than 0.005 but it is outside the car....

anandkoirala avatar Sep 01 '17 03:09 anandkoirala

I am also facing same issue, when I change the threshold to 0 it draws many boxes

iamsome1 avatar Oct 29 '17 18:10 iamsome1

same issue both with the test images as well as test video. Any update how to solve this ?

trohit920 avatar Nov 16 '17 07:11 trohit920

@trohit920 @iamsome1 @tianqig @declanzane @eserercanakin follow this this worked for me i think this post is old but ... yes it works
following worked for me comment by mark-chan https://github.com/xslittlegrass/CarND-Vehicle-Detection/issues/3 add this code before the load_weights(model,'./yolo-tiny.weights') function...

anandkoirala avatar Nov 17 '17 06:11 anandkoirala

@anandkoirala thanks a lot it solves the problem of bounding boxes, but why i should put it before the load_weights() function. when i put in the utils module it doesn't work.

AhmedAAkl avatar Nov 21 '17 12:11 AhmedAAkl

@AhmedAAkl so that this function you have pasted will be called not the one from the utils file. (they have the same name). you can run the function from util file if the original load_weights is replaced by new one.

anandkoirala avatar Nov 22 '17 08:11 anandkoirala

@AhmedAAkl Thank you,It worked!

wizholy avatar Mar 06 '18 03:03 wizholy

@trohit920 @iamsome1 @tianqig @declanzane @eserercanakin follow this this worked for me i think this post is old but ... yes it works following worked for me comment by mark-chan #3 add this code before the load_weights(model,'./yolo-tiny.weights') function...

@anandkoirala @wizholy Hello, I know this post is old, nevertheless I would greatly appreciate your help :-) I've tried to use the alternative function for loading the weights, as suggested in the referenced, still, the problems remain the same: No bounding boxes, unless one lower the threshold almost to zero...

I read that it did work for someone here...Any help is very very welcome!

Alteregoxxx avatar Oct 09 '18 13:10 Alteregoxxx

Hi All,

I have the same problem. Is there a solution for keras 2.2.4?

pbvelikov avatar Mar 28 '20 21:03 pbvelikov