This PR adds a new implementation for the IoU distance calculation by leveraging numpy for vectorized calculations.
Changes include:
Implementation of a vectorized IoU
Modification of tests accordingly
Adapt demos to remove deprecated iou_opt
NOTE: We also implemented an optimized IoU function in Cython at https://github.com/tryolabs/norfair/pull/213, but after profiling both implementations, we saw that the performance was almost the same. Thus we decided to use the one introduced in this PR due to its simplicity.
This PR adds a new implementation for the IoU distance calculation by leveraging
numpy
for vectorized calculations.Changes include:
iou_opt
Pending: