Repository navigation
Updated deprecated functions and types - #123
TheoFABIEN wants to merge 4 commits into
Conversation
Replaced the deprecated linear_assignment from sklearn with the linear_sum_assignment from scipy + slight adaptations to the output format of this new function.
np.int is deprecated in recent version, so I replaced it with the built-in int.
Replaced the deprecated np.int with the built-in int.
np.float is deprecated alias for the built-in float, so I replaced it with float.
|
Hi, thanks for your PR! |
|
With the updated code I was able to successfully run object tracking on the MOT16 dataset. Then I did some unit testing to double check that my modification for linear assignment gives strictly identical results to the old one. np.int and np.float were aliases for python types int and float, respectively, and numpy documentation advises to use int and float as replacements. Unfortunately I did not have enough time to run the evaluation results to compare directly with the paper, but I am confident that they will be the same, given the packages documentation and the tests I did. If I find some time to do that I could try to run the evaluation results, if you think it is necessary. |
|
Thanks for your explanation! |
This pull request updates deprecated functions and data types to ensure compatibility with recent versions of the dependencies, as the repository does not specify package versions.
Changes include: