deep_sort
deep_sort copied to clipboard
TypeError: tuple indices must be integers or slices, not tuple
Boys,when I run the project under this environment,I got some problems,maybe who knows this?
File "Desktop(deep sont-masten(deep sont\linear assignment.py " , line 62, in min_cost_matchingif col not in indices[ :, 1]: TypeError: tuple indices must be integers or slices, not tuple.
Hi Sorry for the late reply.I have solved this issue
Change
indices = linear_assignment(cost_matrix)
indices = np.hstack([indices[0].reshape(((indices[0].shape[0]), 1)),indices[1].reshape(((indices[0].shape[0]), 1))])
This error is because of previoussklearn library version
Thank you so much!!
You're a lifesaver!! thank you so much.
hours trying to fix it until i found your post. Thank you very much!!
Thanks a lot, Maybe I'll create a PR for the repo as it has a bunch of bugs due to scikit-learn and numpy issues.
i want to cry!!!thank you so much!
Thanks a lot. Saves my day too.