qqwweee / keras-yolo3

A Keras implementation of YOLOv3 (Tensorflow backend)
MIT License
7.14k stars 3.44k forks source link

Inferring the first picture is slow #720

Open tangbinbinyes opened 4 years ago

tangbinbinyes commented 4 years ago

hello!After entering python yolo_video.py --image, why the reasoning is that the first picture is slow, and the following pictures are much faster, how to solve this problem? My GPU is RTX 2080Ti, and it takes 2.7 seconds to infer the first picture, but the inference speed of the subsequent pictures is much faster, about 0.22 seconds. Why? I guess it is the first time to initialize something. How to initialize it in advance?