YttriLab / B-SOID

Behavioral segmentation of open field in DeepLabCut, or B-SOID ("B-side"), is a pipeline that pairs unsupervised pattern recognition with supervised classification to achieve fast predictions of behaviors that are not predefined by users.
GNU General Public License v3.0
190 stars 54 forks source link

f10_fps referenced before assignment #31

Closed djanders19 closed 3 years ago

djanders19 commented 3 years ago

Hey there, I'm attempting to run this on the .csvs output by DLC on mouse data. Whenever I run the following code from the docs: f_10fps, trained_tsne, scaler, gmm_assignments, classifier, scores = bsoid_py.main.build(TRAIN_FOLDERS)

I get the following error: image

As best I can guess, it looks like the program is not able to read the files from my Train folder. Here is what that folder looks like (I just dumped all my csvs in there): image

I've attached a text file of my local config for BSOID Umap - note that the videos, csvs, and BSOID code are not all stored in the same directory - is this an issue?

Any help appreciated

config.txt

djanders19 commented 3 years ago

Resolved: issue was with file paths - inspecting the code it looks like it always wants unix style file paths rather than windows style (with '/' rather than '\').