Issues regarding Threading
Hello David!
Thank you for uploading your code! I have been able to use your code to implement a simple tracker on my webcam. It works well! However, I have issues when I put the same code into a thread; the code slows down 10 times! Does the track method of the tracker object use threading? Do you have any clue what could be responsible for this, or how I could rectify this?
Thank you, Sincerely, Yevgeniy
Not sure, unless the other threads are also using the GPU, then sharing the GPU between other threads might cause a slow-down. Not sure though.
Hello David,
Thank you for the quick response! I tried to run the code with gpu_id = 0, and only having one thread and the problem persisted. I tried to isolate the problem and it seems that for some reason
"tracker.Track(image, ®ressor, &bbox_estimate);" slows down dramatically when it is in a thread.
I appreciate any insight.
Thank you again for your help, Yevgeniy
No idea - it might be helpful to dig in further. If this is a Caffe issue then you could try posting to the Caffe users group.