nwojke / deep_sort

Simple Online Realtime Tracking with a Deep Association Metric
GNU General Public License v3.0
5.27k stars 1.47k forks source link

Replace cosine distance with euclidean #203

Open batman-far opened 4 years ago

batman-far commented 4 years ago

Hello,

I have a person re-identificator that produce vectors of length 2000 and ||vector|| is not 1. how can I use it instead of re-identificator that has been suggested in the paper?

lakshaydulani commented 2 years ago

@batman-far did u find any solution?

danielcrane commented 2 years ago

@batman-far did u find any solution?

Should just be able to switch "cosine" to "euclidean" here I think, and change the max_cosine_distance to an appropriate maximum Euclidean distance:

https://github.com/nwojke/deep_sort/blob/280b8bdb255f223813ff4a8679f3e1321b08cdfc/deep_sort_app.py#L161-L162