keras-yolo3 icon indicating copy to clipboard operation
keras-yolo3 copied to clipboard

why accuracy drops after converting with convert.py

Open hasiffirdos opened this issue 5 years ago • 5 comments

python3 convert.py yolo_tiny.cfg final.weights output.h5 I run this command and weights converted successfully but when I call predict it gives the wrong object with 99% accuracy while it was giving true obj with darknet weights file. with darknet weights: Screenshot 2019-10-07 at 3 29 07 PM

with conveted keras model: Screenshot 2019-10-07 at 3 17 37 PM

thanks in advance.

hasiffirdos avatar Oct 07 '19 12:10 hasiffirdos

I have the same problem, i set same accuracy = 0.2 both on darknet and yolo.py but darknet detects more objects, much more.

dreambit avatar Oct 14 '19 09:10 dreambit

fixed by increasing max_boxes = 20 to 100

dreambit avatar Oct 14 '19 10:10 dreambit

Hi @dreambit I would like to know where's the part (line or file) that you changed and what's the effect on it? Thank you

kidboy-man avatar Feb 20 '20 06:02 kidboy-man

@kidboy-man hi, i do not remember, but i think u can search for files that match the string max_boxes = 20

image

dreambit avatar Feb 20 '20 09:02 dreambit

Hi @dreambit I'm facing the same issue too.. changing the max_boxes to 100 doesn't help in my case..

malik-anhar avatar Jun 11 '21 09:06 malik-anhar