levan92 / deep_sort_realtime

A really more real-time adaptation of deep sort
MIT License
164 stars 50 forks source link

custom max_iou_distance #36

Closed visual-engines closed 1 year ago

visual-engines commented 1 year ago

The max_iou_distance parameter in the Tracker initializer is always 0.7, since the DeepSort instance sets self.tracker without specifying an explicit value for that parameter; hence the default value is used.

Could someone let max_iou_distance customizable through an additional DeepSort init parameter, just like max_age, n_init and so on?

This change would be very useful if deep_sort_realtime is imported after having installed it using setup.py

Thank you very much

levan92 commented 1 year ago

Hi @visual-engines, sorry for the delay, thanks for your suggestion. This has been fixed in this recent commit: 2491e6dc326927b3fed8169a0bacb4a4ef2da4f9. max_iou_distance is exposed as an argument for the DeepSort class.