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
287 stars 140 forks source link

Issue when defining identities #106

Closed DorianBattivelli closed 3 years ago

DorianBattivelli commented 3 years ago

Hello!

Everything worked well from yesterday, until this new project for which I have a problem when importing the h5 file for one video. The previous h5 files for the other videos worked well (I assigned successfully the IDs) but when the program switches to this video, I get a grey screen with error msg in terminal:

Untitled

Would you have a suggestion to solve this? Thank you, Best, Dorian

sgoldenlab commented 3 years ago

Thanks @DorianBattivelli! I'm not sure why the body-part tracking would be placed at infinity, so watch out of there is something odd going on at the pose-estimation end.

I've inserted a fix that replaces the inf's (like the NaN's) with zeros which should prevent SimBA from stopping, but the first frame is likely to look a little odd go pass that when when assigning identities.

Update SimBa to version 0.83.3 and please let me know if it works - pip install simba-uw-tf-dev --upgrade

DorianBattivelli commented 3 years ago

Thank you again @sgoldenlab , it works now !