Skip to content

Batch Labeling Videos in CoLab #1356

Answered by roomrys
Kagiro-K asked this question in Help!
Discussion options

You must be logged in to vote

Hi @Kagiro-K,

SLEAP uses the from_filename method from the Video class to determine what the backend type should be (i.e. MediaVideo for mp4/avi). We should really also print the "specified filename" in the ValueError.... My guess would be that your filename might have a space which would then be parsed in as multiple arguments.

Can you try putting quotes around the {file_path} s.t. you call sleap-track "{file_path}". If spaces are the problem, then this will ensure that the spaces do not separate your filepath into multiple arguments.

Can you also add a try, except block around the sleap-track command to print the filename (which we should be printing for you in the ValueError, but are n…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by roomrys
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
2 participants