alexgkendall / SegNet-Tutorial

Files for a tutorial to train SegNet for road scenes using the CamVid dataset
http://mi.eng.cam.ac.uk/projects/segnet/tutorial.html
847 stars 517 forks source link

Why caffe.set_mode_gpu takes longer time to process first frame of video #80

Open WeiyiLi opened 7 years ago

WeiyiLi commented 7 years ago

@alexgkendall Hello,

I tried to run the code webcam_demo.py on a video clip.

When I use caffe.set_mode_cpu, the average frame rate is about 9 second per frame.

However, when I use caffe.set_mode_gpu, it takes about 107s to process the first frame of the video and about 5 frames per second starting from the second frame.

Why it takes such a long time using GPU when processing first frame? Is there any way to improve the frame rate while processing the first frame?

Thank you!!!