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

AttributeError: 'SLEAPImporterSLP' object has no attribute 'cap' #392

Open
emmafkeppler opened this issue Sep 21, 2024 · 2 comments
Open

Comments

@emmafkeppler
Copy link

When making new project and importing SLEAP training data in slp format. On import tracking data tab selected SLP (SLEAP) as data type. The slp filename matches that of the loaded video. Simba starts to load the frames then stops at some point and gives the error:

AttributeError: 'SLEAPImporterSLP' object has no attribute 'cap'

I tried to load multiple different prediction slp files from SLEAP and it stopped at a different frame number for each one. SLEAP version 1.4.1a2.

Using Anaconda with Python 3.7.12 on Windows.
Screenshot 2024-09-20 183136

@sronilsson
Copy link
Collaborator

Hi @emmafkeppler thanks for reporting, if you update SimBA with pip install simba-uw-tf-dev -upgrade (2.1.8) how does it look?

... I'm a little worried about why the error happens around 14k, when you have 29k frames in the video:

Screenshot 2024-09-23 082623

SLP import in SimBA is a little bit more unreliable (and very much slower) than import H5 tracking data from sleap. Have you tried importing h5 files instead?

@emmafkeppler
Copy link
Author

Hi @sronilsson with the upgrade to 2.1.8 the SLEAP import works fine. Thank you.

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