deep_sort_yolov3 icon indicating copy to clipboard operation
deep_sort_yolov3 copied to clipboard

demo.py 异常

Open XHQC opened this issue 4 years ago • 2 comments

File "C:...\deep_sort_yolov3-master\demo.py", line 132, in main(YOLO())

File "C:...\deep_sort_yolov3-master\demo.py", line 87, in main tracker.update(detections)

File "C:...\deep_sort_yolov3-master\deep_sort\tracker.py", line 69, in update self._match(detections)

File "C:...\deep_sort_yolov3-master\deep_sort\tracker.py", line 127, in _match detections, iou_track_candidates, unmatched_detections)

File "C:...\deep_sort_yolov3-master\deep_sort\linear_assignment.py", line 63, in min_cost_matching if col not in indices[:, 1]:

TypeError: tuple indices must be integers or slices, not tuple

XHQC avatar Jul 06 '20 03:07 XHQC

Hi! I meet the same problem with you , have you solved it? Thanks a lot !

Veronica1997 avatar Jul 30 '20 12:07 Veronica1997

Just solved it. Change if col not in indices[:, 1]: to if col not in indices[1]: if row not in indices[:, 0]: to if row not in indices[0]: and for row, col in indices: to for row, col in list(zip(indices[0], indices[1])): @Veronica1997 @cvlmm

Indigo6 avatar Sep 14 '20 14:09 Indigo6