deep_sort icon indicating copy to clipboard operation
deep_sort copied to clipboard

TypeError: tuple indices must be integers or slices, not tuple

Open emtelGNR opened this issue 4 years ago • 7 comments

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.

6F{2OGX4 $8%X)OWUD%)T}K

%Q`}4$WJDOD @6ZV6~ K5

emtelGNR avatar Dec 07 '20 14:12 emtelGNR

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 image

maazullah96 avatar Jan 18 '21 11:01 maazullah96

Thank you so much!!

lucasdevit0 avatar Apr 12 '23 03:04 lucasdevit0

You're a lifesaver!! thank you so much.

Adxnan10 avatar Jan 30 '24 22:01 Adxnan10

hours trying to fix it until i found your post. Thank you very much!!

AdriSau avatar Feb 15 '24 17:02 AdriSau

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.

atmadeep avatar Mar 04 '24 10:03 atmadeep

i want to cry!!!thank you so much!

XuanL1120 avatar Mar 10 '24 13:03 XuanL1120

Thanks a lot. Saves my day too.

washiur17 avatar May 13 '24 10:05 washiur17