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

IndexError #11

Open
ThrowYouARem opened this issue Nov 23, 2022 · 2 comments
Open

IndexError #11

ThrowYouARem opened this issue Nov 23, 2022 · 2 comments

Comments

@ThrowYouARem
Copy link

I encountered this error when I used the camera.

Traceback (most recent call last):
File "track_v7.py", line 386, in
detect()
File "track_v7.py", line 189, in detect
curr_frames[i] = im0
IndexError: list assignment index out of range

@yazzmann
Copy link

yazzmann commented Nov 23, 2022

@ThrowYouARem ,
I ran into the same situation

File "track_v7.py", line 386, in
detect()
File "track_v7.py", line 189, in detect
curr_frames[i] = im0
IndexError: list assignment index out of range

This only happens when trying to use the webcam. The tracker runs fine with videos.

@yuezhilanyi
Copy link

@yazzmann @ThrowYouARem
modify file "yolov7/utils/datasets.py", line 344, will solve this issue
from
return 0
to
return len(self.sources)

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