nwojke / deep_sort

Simple Online Realtime Tracking with a Deep Association Metric
GNU General Public License v3.0
5.3k stars 1.48k forks source link

Deepsort tracking uses all the CPU cores to almost 100 % #237

Open fareed945 opened 3 years ago

fareed945 commented 3 years ago

Hey a clarification! while running detection over a video, I see that my entire CPU memory is being used. I'm not able to run it on multiple threads as it leads to slowness. Did anyone face this issue ? Any help would be appreciated

fareed945 commented 3 years ago

@nwojke can you help me with this ?

rajavi-cis commented 3 years ago

Yes, this same issue is also faced my me. @nwojke Please Help us with some suggestion.

RomeroBarata commented 2 years ago

Hi, I'm having the same issue and the best solution I've found so far is to use taskset as described in here https://pretagteam.com/question/how-to-limit-number-of-cpus-used-by-a-python-script-wo-terminal-or-multiprocessing-library

In summary taskset --cpu-list 0,1,2,3 python deep_sort_app.py ....

This is an old issue so I hope this solution may serve as future reference.

Kind regards, Romero