Open ZahraAnam opened 3 years ago
Yes, sort.py has the same problem in my side ------TypeError: tuple indices must be integers or slices, not tuple, can you help?
Am trying to solve it, if I do it I'll post here.
I resolved my first error by a simple change "if(d not in matched_indices[0]):" i.e. Only access the 0 and 1 element of tuple. But now I have problem in matching section.
Getting the same issue on sort.py with videos. The only change I made was altering the sklearn module to scipy in sort.py.
I was able to work around this by replacing the import of linear_assignment with:
from scipy.optimize import linear_sum_assignment
def linear_assignment(x):
indices = linear_sum_assignment(x)
indices = np.asarray(indices)
return np.transpose(indices)
I was able to work around this by replacing the import of linear_assignment with:
from scipy.optimize import linear_sum_assignment def linear_assignment(x): indices = linear_sum_assignment(x) indices = np.asarray(indices) return np.transpose(indices)
This also worked great for me. Thank you!
Hi! I am trying to use your code for object detection and tracking using Ubuntu 20.04. Detection on image works fine but when attempting on videos and trying to track, I get following warnings and errors:
/home/anam/anaconda3/envs/yolov3/lib/python3.6/site-packages/torch/nn/_reduction.py:44: UserWarning: size_average and reduce args will be deprecated, please use reduction='mean' instead. warnings.warn(warning.format(ret)) /home/anam/Codes/YOLOv4/Yolov3/pytorch_objectdetecttrack/sort.py:33: NumbaWarning: Compilation is falling back to object mode WITH looplifting enabled because Function "iou" failed type inference due to: non-precise type pyobject During: typing of argument at /home/anam/Codes/YOLOv4/Yolov3/pytorch_objectdetecttrack/sort.py (38)
File "sort.py", line 38: def iou(bb_test,bb_gt):