sollan / alma

Fully automated (rodent) limb motion analysis toolbox for behavioral analysis with bodypart coordinate data, building upon markerless pose estimation.
GNU General Public License v3.0
13 stars 5 forks source link

Object has no attribute 'n_pred #26

Closed VenkateshLab closed 1 year ago

VenkateshLab commented 1 year ago

Hi, When i submit the data to lader run analysis. Im facing an error

"Traceback (most recent call last):
  File "/Users/manojkumark/Desktop/alma/Panels/AnalyzeFootfall.py", line 832, in DisplayFootfall_UI_2
    self.Footfall_UI_2()
  File "/Users/manojkumark/Desktop/alma/Panels/AnalyzeFootfall.py", line 598, in Footfall_UI_2
    if self.n_pred is not None:
AttributeError: 'AnalyzeFootfallPanel' object has no attribute 'n_pred'
"

I have included my input for the analysis

Screenshot 2023-01-06 at 09 31 05

Input data looks like this. Screenshot 2023-01-06 at 09 29 41

Error message.

Screenshot 2023-01-06 at 09 31 15
sollan commented 1 year ago

Hi! Apparently no footfalls were detected based on the input data.

If this is not the case and you know there were footfalls in the corresponding video, please check the quality of your input data and the config file for the program. I noticed that you have included "limb" as a basis for footfall detection. This should most likely not be the case - "toe" seems to be the actual limb endpoint ("toe y" should be used, and not "toe x", since the method is based on depth / y coordinate values). If the recording / coordinate data doesn't reflect the animal movements accurately, for example if frame rate is too low to detect rapid footfalls, or if the DLC estimation output is bad/noisy, then the footfall detection won't work.

VenkateshLab commented 1 year ago

@sollan thanks i will redo the analysis in DLC. Thanks for your sugesstion.