car-counting-and-speed-estimation-yolo-sort-python icon indicating copy to clipboard operation
car-counting-and-speed-estimation-yolo-sort-python copied to clipboard

Error while executing code.

Open chetan1836 opened this issue 2 years ago • 3 comments

When I run the code I'm getting this error. Traceback (most recent call last): File "F:/MyProjects/TensorFlow/car-counting-and-speed-estimation-yolo-sort-python/code_and_output/main.py", line 265, in <module> tracks = tracker.update(dets)

File "F:\MyProjects\TensorFlow\car-counting-and-speed-estimation-yolo-sort-python\code_and_output\sort.py", line 207, in update matched, unmatched_dets, unmatched_trks = associate_detections_to_trackers(dets,trks)

File "F:\MyProjects\TensorFlow\car-counting-and-speed-estimation-yolo-sort-python\code_and_output\sort.py", line 146, in associate_detections_to_trackers

if(d not in matched_indices[:,0]): TypeError: tuple indices must be integers or slices, not tuple

Any solutions.

chetan1836 avatar Apr 18 '22 08:04 chetan1836

The “TypeError: list indices must be integers, not tuple” error occurs when you specify a tuple as an index value at the end of a list. To solve this problem, make sure that any lists in a list of lists are separated using commas.

vishalrajputt avatar Apr 19 '22 01:04 vishalrajputt

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 18 '22 17:06 stale[bot]

Please follow this thread https://github.com/abewley/sort/issues/136#issuecomment-864359478

this worked for me

marunava21 avatar Sep 07 '22 14:09 marunava21

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 12 '22 05:11 stale[bot]