GOTURN icon indicating copy to clipboard operation
GOTURN copied to clipboard

Issues regarding Threading

Open Yevgeniyr1 opened this issue 9 years ago • 3 comments

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

Yevgeniyr1 avatar Nov 18 '16 18:11 Yevgeniyr1

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.

davheld avatar Nov 18 '16 19:11 davheld

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, &regressor, &bbox_estimate);" slows down dramatically when it is in a thread.

I appreciate any insight.

Thank you again for your help, Yevgeniy

Yevgeniyr1 avatar Nov 18 '16 21:11 Yevgeniyr1

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.

davheld avatar Nov 20 '16 17:11 davheld