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

list index out of range error in feature_extractor #27

Open
chocokassy opened this issue Dec 19, 2021 · 2 comments
Open

list index out of range error in feature_extractor #27

chocokassy opened this issue Dec 19, 2021 · 2 comments

Comments

@chocokassy
Copy link

Use imageio to extract video in feature_extractor. In extract_frame.append(imgs[n]), a list index out of range error will appear. It stands to reason that 160 frames should be extracted from vid (16 frames per second, total 10 seconds), but The fact is that some videos extract 301 frames and some videos extract 251 frames, resulting in extract_frame.shape being (1, 224, 224, 3) and imgs.shape (301, 224, 224, 3), how can I solve this?

@chocokassy
Copy link
Author

Use imageio version 2.4.1 can solve this problem

@laulliam
Copy link

laulliam commented Dec 14, 2023

Thank you, that works well. @chocokassy

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

2 participants