From 1bacddccb442e2f16cb556c15948197484526e35 Mon Sep 17 00:00:00 2001 From: Hao Date: Mon, 27 Jun 2022 23:06:00 +1200 Subject: [PATCH] Fix for Issue: AttributeError: 'STrack' object has no attribute '_count #210 Fix for Issue: AttributeError: 'STrack' object has no attribute '_count #210. https://github.com/ifzhang/ByteTrack/issues/210 Add base class initialization. --- yolox/tracker/byte_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yolox/tracker/byte_tracker.py b/yolox/tracker/byte_tracker.py index 2d004599..08db37f0 100644 --- a/yolox/tracker/byte_tracker.py +++ b/yolox/tracker/byte_tracker.py @@ -13,7 +13,7 @@ class STrack(BaseTrack): shared_kalman = KalmanFilter() def __init__(self, tlwh, score): - + super(STrack, self).__init__() # wait activate self._tlwh = np.asarray(tlwh, dtype=np.float) self.kalman_filter = None