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
295 stars 142 forks source link

when i start training,some error notice. #395

Open gxkjj opened 2 weeks ago

gxkjj commented 2 weeks ago

when i start training,some error notice.

SIMBA INVALID ML TRAINING SET ERROR: 11 feature columns exist in some files, but missing in others. The feature files are found in the project_folder/csv/targets_inserted directory. SimBA expects all files within the project_folder/csv/targets_inserted directory to have the same number of features: the first 10 column names with mismatches are: ['Mouse_nose_to_tail', 'Mouse_Ear_distance', 'Movement_mouse_nose', 'Movement_mouse_tail_base', 'Movement_mouse_left_ear', 'Movement_mouse_right_ear', 'M1_largest_euclidean_distance_hull', 'M1_smallest_euclidean_distance_hull', 'M1_mean_euclidean_distance_hull']

sronilsson commented 2 weeks ago

Hi @gxkjj, this error happens when SimBA opens all of your files inside the project_folder/csv/targets_inserted directory and concatenate all of those files together.

In your case, when SimBA tries to do this, it finds that those files inside that directory do not have the same column fields. In your case, there are 11 columns that does not exist in all of the files inside the project_folder/csv/targets_inserted directory, and the names of 10 of them are printed in the error message. Do you know if there are any odd CSV files in this directory, or have an inkling about why some file(s) maybe different than others?

gxkjj commented 2 weeks ago

@sronilsson Thank you for your reply.
There is only one csv file in this path,project_folder/csv/targets_inserted ,this has been bugging me for days, including when I rebuilt the project, and it still does, and I've checked the dlc's files as well, and I don't see these. TEST2.csv This is my csv file.

sronilsson commented 2 weeks ago

@gxkjj Got it, three questions:

(i) When you open the project_folder/logs/video_info.csv, what does it say for video TEST2 under the pixels per millimeter heading, and what does it say under the fps heading?

(ii) Which version are you running for simba, i.e., which version do you see if you type pip show simba-uw-tf-dev ?

(iii) Can you send me a full screenshot of the error message in the operating system terminal?

gxkjj commented 2 weeks ago

@sronilsson Thank you for your reply, (i) Screenshot from 2024-10-10 10-32-40

(ii) Screenshot from 2024-10-10 10-34-55

(iii) Screenshot from 2024-10-10 10-31-01 Above is a screenshot of my correspondence to the 3 questions. Thank you very much.