sgoldenlab / simba

SimBA (Simple Behavioral Analysis), a pipeline and GUI for developing supervised behavioral classifiers
https://simba-uw-tf-dev.readthedocs.io/
GNU General Public License v3.0
286 stars 139 forks source link

Error while trying to import h5 files - again (!) #150

Closed Marcelobot closed 2 years ago

Marcelobot commented 2 years ago

Hello, Im again recieving the same error as mentioned in that last issue: https://github.com/sgoldenlab/simba/issues/149

An Error occurres when I try to import h5 files. In the last project the error was fixed by upgrading simba, but now - one week later i have the same situation within a new project.

What to do now? Ive promised to present the results tomorrow..

Interesting Sidefact: Im still able to import the old data even to the new project, but with new files (created correctly by DLC) the error comes..

Cheers - just a quick advice please - Im in a rush :)

sronilsson commented 2 years ago

Hello @Marcelobot - can you send me the error msg? My guess is that the tracking file might possibly been renamed after it was created by the pose-estimation package.

sronilsson commented 2 years ago

https://github.com/sgoldenlab/simba/blob/master/docs/FAQ.md#17-i-get-an-error-when-i-try-to-import-multi-animal-data-h5-files-from-deeplabcut-into-simba---the-error-says-that-simba-cannot-locate-my-video-files

Marcelobot commented 2 years ago

The video and h5 files are named like this: image

--> guess the name should be functional?

The video is stored within a DLC project/videos folder with other videos (tried to store it in separate folder but still not working out)

The occuring Error when trying to import h5 file looks like: image

Cannot find the reason actually..

Cheers

sronilsson commented 2 years ago

Hey @Marcelobot - there seems to be an issue with the video file. SimBA cannot open it and it is only 2kb large - likely it is not a proper video file. Can you try and re-generate it?

Marcelobot commented 2 years ago

Crazy.. now i see.

Thanks ! Seems like in my rush Ive done something wrong while cropping. But okay easy to fix and not a simBA Problem - thank you very much!

sronilsson commented 2 years ago

No problem, let me know if the issue persist though, I'll insert some better error msg.