Can opencv and Tensorflow use GPU simultaneously?

asked 2020-03-05 07:02:22 -0600

Sshawn gravatar image

When I use Yolov3 in opencv with GPU for detection and use Deepsort in tensorflow with GPU for tracking simultaneously, I got the message of GPU out of memory. (I can use either of these two functions)

Have any idea to solve this problem, if I want to use these two function simultaneously? I have only one GPU.

I used to use KCF in opencv for tracking but it is slow and can only track same object, so I try to use Deepsort in tensorflow with GPU.

If there is no sollution for the problem, whether there is recommendation of another fast tracking algorithem for multiple object like DeepSort?

edit retag flag offensive close merge delete

Comments

What is that you don't understand?

Out of memory means that your GPU doesn't have enough memory to load both networks.

kbarni gravatar imagekbarni ( 2020-03-05 07:38:23 -0600 )edit

@Sshwan what GPU you have? You can reduce memory consumption by using the DNN_TARGET_CUDA_FP16 target. You will reduce the memory footprint by approximately 2x.

Yashas gravatar imageYashas ( 2020-03-06 00:51:32 -0600 )edit