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

TypeError in main.py #32

Open
jamalihuzaifa9 opened this issue Jun 19, 2020 · 5 comments
Open

TypeError in main.py #32

jamalihuzaifa9 opened this issue Jun 19, 2020 · 5 comments

Comments

@jamalihuzaifa9
Copy link

Traceback (most recent call last):
File "main.py", line 200, in
image_box = pipeline(image)
File "main.py", line 112, in pipeline
= assign_detections_to_trackers(x_box, z_box, iou_thrd = 0.3)
File "main.py", line 56, in assign_detections_to_trackers
if (d not in matched_idx[ : ,1]):
TypeError: tuple indices must be integers or slices, not tuple

@nuriakiin
Copy link

@jamalihuzaifa9 Did you solve this problem?

@NirmalJainCM
Copy link

Traceback (most recent call last):
File "main.py", line 200, in
image_box = pipeline(image)
File "main.py", line 112, in pipeline
= assign_detections_to_trackers(x_box, z_box, iou_thrd = 0.3)
File "main.py", line 56, in assign_detections_to_trackers
if (d not in matched_idx[ : ,1]):
TypeError: tuple indices must be integers or slices, not tuple

I have been facing the same issue
Can somebody help

@moumed
Copy link

moumed commented Jan 31, 2021

Does someone resolved this problem ? I'am getting this error when trying to test the project on a video.

@moumed
Copy link

moumed commented Jan 31, 2021

Hey again, I'have resolved the problem by reinstalling scikit-learn to 0.22.2.
The problem was here "from sklearn.utils.linear_assignment_ import linear_assignment", I tried tu use linear_assignment from scipy like this : "from scipy.optimize import linear_sum_assignment as linear_assignment", and that causes the problem. By reinstalling to another version like that :
pip install scikit-learn==0.22.2 , and using from sklearn.utils.linear_assignment_ import linear_assignment, everything works perfectly.
I hope that it will help you.

@SushVK18
Copy link

hey ,

can you tell me where I should make changes in the code for detecting my video?

Like in the detector file , i am not sure which file path to provide?

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

5 participants