Skip to content

Commit 672ad0c

Browse files
author
yixu.cui
committed
Merge remote-tracking branch 'origin/master' into dev/infrastructure_construction
2 parents f5b8fea + 3b5adf6 commit 672ad0c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+11
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
-142 Bytes
Binary file not shown.
-75.1 KB
Binary file not shown.
-4.43 KB
Binary file not shown.
-20.2 KB
Binary file not shown.

tracker/c_biou_tracker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ def update(self, new_track, frame_id):
146146
self.motion_state1 = self.get_buffer_bbox(level=1, bbox=new_tlwh)
147147
self.motion_state2 = self.get_buffer_bbox(level=2, bbox=new_tlwh)
148148

149+
# update status
150+
self.state = TrackState.Tracked
151+
self.is_activated = True
152+
153+
self.time_since_update = 0
154+
149155
@staticmethod
150156
def xywh2tlbr(xywh):
151157
"""

tracker/deepsort.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ def update(self, det_results, ori_img):
190190
lost_stracks.append(track)
191191

192192
# deal with unconfirmed tracks, match new track of last frame and new high conf det
193-
matched_pair2, u_tracks2_idx, u_det2_idx = matching.matching_cascade(self.gated_metric, 0.7, self.max_time_lost,
194-
unconfirmed, u_det1)
193+
IoU_dist = matching.iou_distance(atracks=unconfirmed, btracks=u_det1)
194+
matched_pair2, u_tracks2_idx, u_det2_idx = matching.linear_assignment(IoU_dist, thresh=0.9)
195195

196196
for itrack_match, idet_match in matched_pair2:
197197
track = unconfirmed[itrack_match]
-13 KB
Binary file not shown.
-196 Bytes
Binary file not shown.
-4.67 KB
Binary file not shown.

0 commit comments

Comments
 (0)