Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo.py 异常 #161

Open
XHQC opened this issue Jul 6, 2020 · 2 comments
Open

demo.py 异常 #161

XHQC opened this issue Jul 6, 2020 · 2 comments

Comments

@XHQC
Copy link

XHQC commented Jul 6, 2020

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

@Veronica1997
Copy link

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

@Indigo6
Copy link

Indigo6 commented Sep 14, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants