deep_sort icon indicating copy to clipboard operation
deep_sort copied to clipboard

distance_metric callback

Open Eyshika opened this issue 4 years ago • 1 comments

Where can i find the defnition for distance_metric which is callable in linear assignment ? @nwojke @kinnzo @linuxandchill @abewley @iory

Eyshika avatar Nov 11 '20 06:11 Eyshika

It is not a "callback", it is a "callable", as in a function. I'm guessing the definition in the code does not suffice? https://github.com/nwojke/deep_sort/blob/280b8bdb255f223813ff4a8679f3e1321b08cdfc/deep_sort/linear_assignment.py#L18 If you want a better definition I suggest reading the publication which goes over this quite explicitly. https://arxiv.org/abs/1703.07402

If you want my definition, it generates a cost matrix from tracks to detections, NxM in size. Tracks of size N, detections of size M. The cost matrix is a weighted sum between the gating distance and cosine distance (or gating distance and IOU for unmatched tracks). The function takes four parameters: tracks, detections, track_indices (size M) and detection indices (size N).

studentbrad avatar Nov 14 '20 22:11 studentbrad