Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No bounding boxes #11

Open
gohar94 opened this issue Jul 26, 2017 · 14 comments
Open

No bounding boxes #11

gohar94 opened this issue Jul 26, 2017 · 14 comments

Comments

@gohar94
Copy link

gohar94 commented Jul 26, 2017

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
Copy link

same to me ..

@xslittlegrass
Copy link
Owner

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

@eserercanakin
Copy link

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
Copy link

tianqig commented Aug 20, 2017

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
Copy link

tianqig commented Aug 20, 2017

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
Copy link

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
Copy link

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

@trohit920
Copy link

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

@anandkoirala
Copy link

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

@AhmedAAkl
Copy link

@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
Copy link

@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
Copy link

wizholy commented Mar 6, 2018

@AhmedAAkl Thank you,It worked!

@Alteregoxxx
Copy link

@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
Copy link

Hi All,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests