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
289 stars 141 forks source link

Problem training single model (global enviroment) #246

Closed gemajpg closed 1 year ago

gemajpg commented 1 year ago

Describe the bug I follow the steps of this guide: https://github.com/sgoldenlab/simba/blob/master/docs/Scenario1.md

Yet, when I finally get to train the model, it gives me the following error:

image

image

Am I doing something wrong?

This is what I put on settings: image

I tried downloading the file with the example for the hyper-parameters but I don't really know how.

Desktop:

sronilsson commented 1 year ago

Hi @gemajpg ! How many body-parts and animals does your tracking data track? Something goes wrong early in training, when SimBA is trying to split the body-part coordinates data columns from the rest of the columns. One body-part, Right_ear of animal 2 is expected but can't be found in the data. The data is stored in the project_folder/csv/targets_inserted directory. I see you have one file in there, if you check it, what column headers do you see?

gemajpg commented 1 year ago

@sronilsson Hi! Four body parts for two animals. I actually made them just like the standard simBA has (nose, two ears and tail base).

This is what is shown in the file. image

sronilsson commented 1 year ago

Thanks @gemajpg, got it, just to confirm, you selected the built in simba default 2 animal with four body-parts on each?

If you upgrade to simba 1.55.8 with pip install simba-uw-tf-dev --upgrade, do you still see the error?

gemajpg commented 1 year ago

@sronilsson Yes, that's what I selected.

I upgraded it but I still see the error.

image

sronilsson commented 1 year ago

Thanks @gemajpg - is your project small? Can it be zipped up and shared, and I can take a look?

gemajpg commented 1 year ago

@sronilsson Thanks! It won't let me share it because zipped it still is 87 mb but I uploaded the normal folder into google drive if it helps. Here's the link:

https://drive.google.com/drive/folders/1gOEay4Sq_62rB8IsNG8AVgX-CNPSpx4D?usp=sharing

sronilsson commented 1 year ago

Got it thanks!

sronilsson commented 1 year ago

For whatever reason (maybe bug from using multiple SimBA versions in your project.. that I will look into) your SimBA project has a body-part called Right_ear_2, while in the actual data in your project, the same body-part is named Ear_right_2.

To fix this:

1) Go to prueba/project_folder/logs/measures/pose_configs/bp_names and change Right_ear_2 to Ear_right_2 as in screengrab below.

image

2). Update simba again, should be version 1.55.9 now.

3). Run simba with simba.

Let me know how it goes!

gemajpg commented 1 year ago

@sronilsson it worked! Thank you!