You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In bytetrack.py, the self.removed_stracks variable increases without limit. Over time this can lead to running out of RAM memory if we run inference on larger videos or rtsp streams. This also in turn makes tracking inference speed slower over time, since sub_stracks function loops over all elements of self.removed_stracks. There is already an open pr with a suggested solution #249 which ive tested and it works well. Could you either approve or add your own solution to this?
Thank you.
The text was updated successfully, but these errors were encountered:
I have noticed the same issue! Because it keeps all the removed_stracks it seems that Python keeps references to the KalmanFilter computation matrixes as well. Which quickly adds up to use a huge portion or memory!
Hi!
There seems to be a memory leak coming from removed_stracks.
In bytetrack.py, the
self.removed_stracks
variable increases without limit. Over time this can lead to running out of RAM memory if we run inference on larger videos or rtsp streams. This also in turn makes tracking inference speed slower over time, sincesub_stracks
function loops over all elements ofself.removed_stracks
. There is already an open pr with a suggested solution #249 which ive tested and it works well. Could you either approve or add your own solution to this?Thank you.
The text was updated successfully, but these errors were encountered: