OpenVINO-YOLOV4 icon indicating copy to clipboard operation
OpenVINO-YOLOV4 copied to clipboard

Perfromance degradation issue

Open RohitKeshari opened this issue 3 years ago • 2 comments

I am getting less performance after conversion. Have you bench mark your code with before conversion and after conversion?

RohitKeshari avatar Dec 15 '20 17:12 RohitKeshari

In order to test the accuracy of yolov4 on the embedded platform after model conversion under different frameworks. AlexeyAB provided test pictures, and I also uploaded my test results in the README.In some tensorflow1.x,tensorflow2.x and pytorch projects, after the model conversion, the accuracy dropped significantly. In my OpenVINO implementation, the accuracy is not much different from darknet, and even better than darknet in some scenarios.

Have you added --reverse_input_channels when you run mo.py? And have you set the same confidence threshold when you test your model? In object_detection_demo_yolov3_async.py,you could set -t 0.2 , (default -t is 0.5)

TNTWEN avatar Dec 16 '20 01:12 TNTWEN

Thanks for your reply. I have used --reverse_input_channels while converting yolov4-tiny model. yolov3-tiny performance is matches with before and after conversion performance. I have used https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_convert_model_tf_specific_Convert_YOLO_From_Tensorflow.html for the conversion. Regarding yolov4-tiny I am getting reduced performance around 25-30%. I was wondering If you have compared results on full data.

Moreover, the test results in your README has different confidence score before and after conversion.

While searching, I found that Mish activation function is not optimized in openvino2020.4 (https://stackoverflow.com/questions/62129609/openvino-toolkit-with-yolov4) but available in 2021.1 and onward. I have 2020.4 (your repo is also on openvino_2020.4.287). Do you think that it can be one of the problem?

RohitKeshari avatar Dec 16 '20 14:12 RohitKeshari