Darknet: Speed of tiny-yolo lowen than described in paper

Created on 4 Oct 2019  路  5Comments  路  Source: AlexeyAB/darknet

I trained a tiny-yolo model for face detection using yolov3-tiny.cfg as provided. Input size of the net is 416x416. Everything is good enough except it's speed. I have read in the paper that tiny-yolov3 can reach >100fps speed but in fact, my model can reach only 20fpx, execute time is 0.04s per frame. What did I miss? And in what conditions tiny-yolov3 can reach that impressed speed?

Most helpful comment

Are you measured only inference time without data transfer and decoding? What hardware you are using? Do you using tensor cores? Try check gpu loading. Execution time depends at many factors.

All 5 comments

Are you measured only inference time without data transfer and decoding? What hardware you are using? Do you using tensor cores? Try check gpu loading. Execution time depends at many factors.

Try to detect on videofile and use modern GPU.

@Aleksei91 I used GTX 1080 for testing my model, and eslaped time I refered is while the frame forward the net. GPU usage is 50% in common. To use GPU for detecting, the only thing that needed is change cv2.dnn.DNN_TARGET_CPU to cv2.dnn.DNN_TARGET_OPENCL?

Opencv dnn does not use cuda.

@Aleksei91 I used GTX 1080 for testing my model, and eslaped time I refered is while the frame forward the net. GPU usage is 50% in common. To use GPU for detecting, the only thing that needed is change cv2.dnn.DNN_TARGET_CPU to cv2.dnn.DNN_TARGET_OPENCL?

@DoriHp How you use GPU for deteing objects in OpenCV? OpenCV doesn't support GPU's yet for detecting in opencv dnn module.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zihaozhang9 picture zihaozhang9  路  3Comments

kebundsc picture kebundsc  路  3Comments

qianyunw picture qianyunw  路  3Comments

off99555 picture off99555  路  3Comments

bit-scientist picture bit-scientist  路  3Comments