ultralytics 8.2.4 ByteTracker threshold improvements (#10333)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com>
This commit is contained in:
parent
632c906578
commit
99f8e863ed
4 changed files with 5 additions and 5 deletions
|
|
@ -264,11 +264,11 @@ class BYTETracker:
|
|||
bboxes = np.concatenate([bboxes, np.arange(len(bboxes)).reshape(-1, 1)], axis=-1)
|
||||
cls = results.cls
|
||||
|
||||
remain_inds = scores > self.args.track_high_thresh
|
||||
remain_inds = scores >= self.args.track_high_thresh
|
||||
inds_low = scores > self.args.track_low_thresh
|
||||
inds_high = scores < self.args.track_high_thresh
|
||||
|
||||
inds_second = np.logical_and(inds_low, inds_high)
|
||||
inds_second = inds_low & inds_high
|
||||
dets_second = bboxes[inds_second]
|
||||
dets = bboxes[remain_inds]
|
||||
scores_keep = scores[remain_inds]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue