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" (Step: Generate video snippets for interpretation) #57

Closed
jkt6044 opened this issue Mar 15, 2022 · 2 comments
Closed

Comments

@jkt6044
Copy link

jkt6044 commented Mar 15, 2022

I have been encountering issues in the “Generate video snippets for interpretation” step of the B-SOiD Streamlit app where I cannot create an example video due to an error “list index out of range”. I’m currently using the same video I used in the earlier preprocessing stages to identify the features and clusters. I’ve also tried different syntax for specifying the sub-directory (ex. HL177\ instead of HL177) with no luck.

  • Some screenshots of the B-SOiD interface and error:

generate_video_snippets_for_interpretation1

Seems like the prediction went okay

generate_video_snippets_for_interpretation2

Root project directory
video_and_data_folder_directory1

Video and data directory I specified in B-SOiD interface:
video_and_data_folder_directory2

It is mentioned here (https://stackoverflow.com/questions/65157867/indexerror-list-index-out-of-range-in-python-with-opencv-and-facerecognition) that this issue could be related with OpenCV (cv2.imread) but not familiar with to diagnose the root of the problem.

  • Other info:
    Model in use: SLEAP
    Environment: Win10 Enterprise
    CPU: Intel® Core™ i5-4590 CPU
    RAM: 32GB
@runninghsus
Copy link
Collaborator

did you extract frames with the app? (toggle the "yes" to a "no" and extract first, sorry that part is confusing.)
the pngs/ folder in your screenshot should be populated with a subdirectory HL177_220118_OF... that contains frame1.png, frame2.png, etc.

@jkt6044
Copy link
Author

jkt6044 commented Mar 16, 2022

Yes, it turned out that I didn't have the frames extracted prior to the making label predictions- hence my 'frames' directory was empty. I was able to generate the example videos as well.

Thank you!

@jkt6044 jkt6044 closed this as completed Mar 16, 2022
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