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

Indexes out of range #17

Open
Manthata opened this issue Nov 5, 2019 · 5 comments
Open

Indexes out of range #17

Manthata opened this issue Nov 5, 2019 · 5 comments

Comments

@Manthata
Copy link

Manthata commented Nov 5, 2019

Hello, would someone kindly help me with this error

DeprecationWarning: The linear_assignment_ module is deprecated in 0.21 and will be removed from 0.23. Use scipy.optimize.linear_sum_assignment instead.
DeprecationWarning)
Video size 1280 720
2
Traceback (most recent call last):
File "object_tracker.py", line 105, in
cls = classes[int(cls_pred)]
IndexError: list index out of range

@dr-moo
Copy link

dr-moo commented Dec 17, 2019

Second this! I am getting the same issue for both single image detection and video tracking

@cfotache, is there any chance you could elaborate a bit because the whole idea of using custom trained YOLO with your implementation (the best one I found at least) of SORT is very tempting...

@Manthata
Copy link
Author

Hey! I think you should try to change the modules from cuuda to normal Float.Tensor and some part of the program so that it is runs on a local machine without GPU settings. If you are using a GPU then it should work just fun without making any changes

@Manthata
Copy link
Author

I just recloned again and changed the settings from GPU to CPU and it worked fine on my local computer.

@dr-moo
Copy link

dr-moo commented Dec 19, 2019

I just recloned again and changed the settings from GPU to CPU and it worked fine on my local computer.

The problem is that i do have a GPU with cuda compiled and working on other projects, but i still get the same out of index error when i try to run object_tracker.py

Which parts of the code are responsible for CPU-only runs?

Thanks in advance!

@archimanlol
Copy link

The linear_assignment function is deprecated in 0.21 and will be removed from 0.23, but sklearn.utils.linear_assignment_ can be replaced by scipy.optimize.linear_sum_assignment You can use from scipy.optimize import linear_sum_assignment as linear_assignment.

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