Skip to content

Commit cf0a877

Browse files
committed
add search space to OC-SORT
1 parent 1db03dc commit cf0a877

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

trackers/core/ocsort/tracker.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Licensed under the Apache License, Version 2.0 [see LICENSE for details]
55
# ------------------------------------------------------------------------
66

7+
from typing import ClassVar
8+
79
import numpy as np
810
import supervision as sv
911
from scipy.optimize import linear_sum_assignment
@@ -61,6 +63,15 @@ class OCSORTTracker(BaseTracker):
6163

6264
tracker_id = "ocsort"
6365

66+
search_space: ClassVar[dict[str, dict]] = {
67+
"lost_track_buffer": {"type": "randint", "range": [10, 61]},
68+
"minimum_iou_threshold": {"type": "uniform", "range": [0.1, 0.5]},
69+
"minimum_consecutive_frames": {"type": "randint", "range": [3, 6]},
70+
"direction_consistency_weight": {"type": "uniform", "range": [0.0, 0.5]},
71+
"high_conf_det_threshold": {"type": "uniform", "range": [0.4, 0.8]},
72+
"delta_t": {"type": "randint", "range": [1, 4]},
73+
}
74+
6475
def __init__(
6576
self,
6677
lost_track_buffer: int = 30,

0 commit comments

Comments
 (0)