xslittlegrass / CarND-Vehicle-Detection

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

No bounding boxes #11

Open gohar94 opened 7 years ago

gohar94 commented 7 years ago

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.

declanzane commented 7 years ago

same to me ..

xslittlegrass commented 7 years ago

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

eserercanakin commented 7 years ago

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.

tianqig commented 7 years ago

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 commented 7 years ago

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.

anandkoirala commented 7 years ago

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....

iamsome1 commented 7 years ago

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

trohit920 commented 7 years ago

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

anandkoirala commented 7 years ago

@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...

AhmedAAkl commented 6 years ago

@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.

anandkoirala commented 6 years ago

@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.

wizholy commented 6 years ago

@AhmedAAkl Thank you,It worked!

Alteregoxxx commented 6 years ago

@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!

pbvelikov commented 4 years ago

Hi All,

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