LZQthePlane / Online-Realtime-Action-Recognition-based-on-OpenPose

A skeleton-based real-time online action recognition project, classifying and recognizing base on framewise joints, which can be used for safety surveilence.
Apache License 2.0
660 stars 231 forks source link

Error while running main.py #65

Open 2111905222 opened 3 years ago

2111905222 commented 3 years ago

File "/home/xuan/study/Study_Project/Online-Realtime-Action-Recognition-based-on-OpenPose/Tracking/deep_sort/linear_assignment.py", line 61, in min_cost_matching if col not in indices[:, 1]: TypeError: tuple indices must be integers or slices, not tuple

arunimasundar commented 3 years ago

@2111905222 Have you managed to solve this error?

cenlibin commented 3 years ago

https://github.com/Qidian213/deep_sort_yolov3/issues/161 that should works

dukezacks commented 1 year ago

linear_assignment.py hange this and it will work.

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])):