When I run a CNN model, like light-head RNN for object detection, I open another video file to display. The odd thing happens that the video stucks for a while and continues to play for a while. And I realize each time the network does the forward process, the video stucks.
Therefore, I guess the object detection network probably takes up too much gpu usage or cpu usage. But the truth is cpu only takes about 30% and gpu doesn’t take 100%. The framework I use is pytorch, which cannot set the gpu usage proportion.
I wonder where the problem is, whether I have way to solve it, there is any way to set the proportion of gpu. Any suggestions?
Thanks in advance!