Skip to content
This repository has been archived by the owner on Aug 5, 2023. It is now read-only.

IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed #14

Closed
VYRION-Ai opened this issue Jan 18, 2022 · 1 comment · Fixed by #17
Closed
Assignees
Labels
bug Something isn't working

Comments

@VYRION-Ai
Copy link

VYRION-Ai commented Jan 18, 2022

why this error happened ?
it happened in some videos. not all videos .

Fusing layers... Model Summary: 308 layers, 21065925 parameters, 0 gradients Adding AutoShape... 76% 219/288 [00:08<00:02, 25.41it/s] Traceback (most recent call last): File "run.py", line 48, in <module> main(args, config) File "run.py", line 30, in main pipeline.run() File "/content/main/modules/__init__.py", line 67, in run track_result = self.tracker.run(ori_img, boxes, labels, scores) File "/content/main/modules/track.py", line 40, in run bbox_xyxy[:, 2] += bbox_xyxy[:, 0] IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

@kaylode
Copy link
Owner

kaylode commented Jan 20, 2022

this could be a bug in my code. I suspect that there is a frame in which no vehicle is present, which may cause this error. I will look into it.

@kaylode kaylode self-assigned this Jan 20, 2022
@kaylode kaylode added the bug Something isn't working label Jan 20, 2022
@kaylode kaylode mentioned this issue Feb 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants