zeusees / License-Plate-Detector

基于Yolov5车牌检测,更快更准.
http://www.zeusee.com
1.19k stars 401 forks source link

不同图片为什么检测时间相差这么大,有的需要几秒,有的只需要几十毫秒? #27

Closed GitHubLuGeng closed 3 years ago

GitHubLuGeng commented 3 years ago

打印的识别日志:

./imgs/19.jpg net forward time: 4.2881 priorBox time: 4.3867 0.9999 0 -1 164 50 5 60 169 110 ./imgs/1.jpg net forward time: 0.0079 priorBox time: 0.0723 0.9998 -1 0 135 4 4 52 139 57 ./imgs/9.jpg net forward time: 2.2308 priorBox time: 2.2579 0.9443 -1 0 109 0 -1 32 108 32

GradientDescentEX commented 3 years ago

我也遇到了同样的问题,应该是图片太大了

Jinkham commented 3 years ago

anchor在不同尺寸图片,计算过程不同,如果输入图片尺寸一致的话,只需要计算一次即可。