Why does the GPU take longer to process the first frame of the video than the CPU in Caffe?

I tried running the SegNet code web demo. When i use

caffe.set_mode_cpu()

the average frame rate is about 9 seconds per frame.

However, when I use

caffe.set_mode_gpu()

processing 107s is required to process the first frame and 5 frames per second , starting from the second frame.

Why does the GPU take longer than when using a processor when it processes the first frame? Is there a way to improve the frame rate when processing the first frame?

Thank!!!! Really need help.

+4
source share

Source: https://habr.com/ru/post/1670260/


All Articles