hhk7734 / tensorflow-yolov4

YOLOv4 Implemented in Tensorflow 2.
MIT License
136 stars 75 forks source link

bug ghost detections while using yolov4-tiny-relu #52

Open fogelton opened 3 years ago

fogelton commented 3 years ago

Hi, I encountered one bug while using the detector over video. I detects 'ghosts'. I noticed that it draw bounding boxes where people are not present. maybe it is something with the conversion to bounding boxes and it puts another for larger objects on wrong locations... or something with anchors. It can be clearly see that the ghost detection follow large objects lower within the image.

Probably you can find out from the data I attach debugging.zip

You can see 3 ghosts detections on the images in zip file, I also attach the output of the network, the candidates before and after postprocessing and also the predicted bounding boxes as pickle so you can find the bug if you need any further assistance from me, it will be my pleasure

ps: sorry for not doing the pull request I was on holiday

hhk7734 commented 3 years ago

What is your yolov4 version?

fogelton commented 3 years ago

I do not know. how to find out? these are the weights I downloaded somewhere, maybe from you...

yolov4-tiny-relu.zip

if you share the latest weights with me, I can test it again. I use the -a flag and I have two subgraphs getting about 60ms per image on edgetpu

hhk7734 commented 3 years ago
python3 -m pip show yolov4
fogelton commented 3 years ago

i was using 2.0.0 after updating to 2.0.2, the ghosts are still there

hhk7734 commented 3 years ago

Update host and edgetpu to 2.0.2, then make an int8-tflite and compile the tflite with -a option. As it changed from 2.0.1 to 2.0.2, many ghosts disappeared.

If there are still ghosts, it might be a problem during the quantization process.

fogelton commented 3 years ago

I checked with the new version, reexported the model, the ghosts are still there.