Giter Site home page Giter Site logo

Error in model evaluation about simba HOT 5 OPEN

Monica9577 avatar Monica9577 commented on July 30, 2024
Error in model evaluation

from simba.

Comments (5)

sronilsson avatar sronilsson commented on July 30, 2024

Hi @Monica9577 ! SimBA takes all your files inside the project_folder/csv/targets_inserted directory and build a model from these files. In each one of these files, if you remove the body-part data columns (in the beginning) and your annotations (in the end of the file), you are left with 221 columns of features.

Next, you want to use this model .sav file, that is built using 221 columns of features, on new data inside your project_folder/csv/features_extracted directory.
SimBA goes ahead and opens the first file inside the project_folder/csv/features_extracted directory, and tries to analyze it. However, it finds 245 columns. It doesnโ€™t know what to do, as the model was trained with 221 columns, and it now sees 245 columns - what should it do with all these extra columns? So it give you the error.

One possible way that could cause a mismatch in the number of columns is, for example, you added ROI features to your new data inside the project_folder/csv/features_extracted directory, but you did not add it to the files you used to train the model with - could this be possible?

from simba.

Monica9577 avatar Monica9577 commented on July 30, 2024

No, I haven't add any ROIs to any of the files...
But I'm going to check if there's any difference between the features csv of the video I used to train the model and the one I'm using to evaluate it
Thanks!

from simba.

sronilsson avatar sronilsson commented on July 30, 2024

Thanks!

One more potential reason for this error I have seen before: Within a single SimBA project, be sure you are working with the same Animal names and the same body-part names in all files.

The file project_folder/logs/measures/pose_configs/bp_names/project_bp_names.csv stores the names of your body-parts in your SimBA project. Before training models, SimBA drops the data for your body-parts - we don't want to use the locations of the body-parts in any model. However, if the body-parts names or animal names for any reason changes across data files, then the appropriate columns will not be recognized at body-parts and SimBA will fail to drop them in some files, causing the mismatch in the column numbers errors as you see.

from simba.

Monica9577 avatar Monica9577 commented on July 30, 2024

Hi
Yes I'm using the same body parts and animal names in every video,
but is still giving problems

from simba.

sronilsson avatar sronilsson commented on July 30, 2024

@Monica9577 - if you look at the a file inside the project_folder/csv/targets_inserted directory, and compare it against a file inside the project_folder/csv/features_extracted directory, what differences to you see in column names and the number of columns? You could also zip up and share a file from each directory here with me or through gdrive link and I can look?

from simba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.