StrongSort
Bases: object
StrongSORT Tracker: A tracking algorithm that utilizes a combination of appearance and motion-based tracking.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model_weights
|
str
|
Path to the model weights for ReID (Re-Identification). |
required |
device
|
str
|
Device on which to run the model (e.g., 'cpu' or 'cuda'). |
required |
fp16
|
bool
|
Whether to use half-precision (fp16) for faster inference on compatible devices. |
required |
per_class
|
bool
|
Whether to perform per-class tracking. If True, tracks are maintained separately for each object class. |
False
|
max_dist
|
float
|
Maximum cosine distance for ReID feature matching in Nearest Neighbor Distance Metric. |
required |
max_iou_dist
|
float
|
Maximum Intersection over Union (IoU) distance for data association. Controls the maximum allowed distance between tracklets and detections for a match. |
0.7
|
max_age
|
int
|
Maximum number of frames to keep a track alive without any detections. |
30
|
n_init
|
int
|
Number of consecutive frames required to confirm a track. |
3
|
nn_budget
|
int
|
Maximum size of the feature library for Nearest Neighbor Distance Metric. If the library size exceeds this value, the oldest features are removed. |
100
|
mc_lambda
|
float
|
Weight for motion consistency in the track state estimation. Higher values give more weight to motion information. |
0.98
|
ema_alpha
|
float
|
Alpha value for exponential moving average (EMA) update of appearance features. Controls the contribution of new and old embeddings in the ReID model. |
0.9
|
Source code in boxmot/trackers/strongsort/strongsort.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
|