Closed stofe95 closed 1 year ago
I'm getting the following error when trying to extract outlier frames (deeplabcut version 2.3.3, pandas version 2.0.0). This seems to be from a change in pandas 2.0.0 because it works fine when I downgrade to pandas 1.5.3
File ~.conda\envs\DEEPLABCUT\lib\site-packages\deeplabcut\refine_training_dataset\outlier_frames.py:408, in extract_outlier_frames(config, videos, videotype, shuffle, trainingsetindex, outlieralgorithm, frames2use, comparisonbodyparts, epsilon, p_bound, ARdegree, MAdegree, alpha, extractionalgorithm, automatic, cluster_resizewidth, cluster_color, opencv, savelabeled, copy_videos, destfolder, modelprefix, track_method) 406 temp_dt = df_temp.diff(axis=0) 2 407 tempdt.drop("likelihood", axis=1, level="coords", inplace=True) --> 408 sum = temp_dt.sum(axis=1, level=1) 409 ind = dftemp.index[(sum > epsilon2).any(axis=1)].tolist() 410 Indices.extend(ind)
...
TypeError: sum() got an unexpected keyword argument 'level'
Thanks for reporting this bug @stofe95! A fix will soon be merged into deeplabcut https://github.com/DeepLabCut/DeepLabCut/pull/2160 😊
I'm getting the following error when trying to extract outlier frames (deeplabcut version 2.3.3, pandas version 2.0.0). This seems to be from a change in pandas 2.0.0 because it works fine when I downgrade to pandas 1.5.3
File ~.conda\envs\DEEPLABCUT\lib\site-packages\deeplabcut\refine_training_dataset\outlier_frames.py:408, in extract_outlier_frames(config, videos, videotype, shuffle, trainingsetindex, outlieralgorithm, frames2use, comparisonbodyparts, epsilon, p_bound, ARdegree, MAdegree, alpha, extractionalgorithm, automatic, cluster_resizewidth, cluster_color, opencv, savelabeled, copy_videos, destfolder, modelprefix, track_method) 406 temp_dt = df_temp.diff(axis=0) 2 407 tempdt.drop("likelihood", axis=1, level="coords", inplace=True) --> 408 sum = temp_dt.sum(axis=1, level=1) 409 ind = dftemp.index[(sum > epsilon2).any(axis=1)].tolist() 410 Indices.extend(ind)
...
TypeError: sum() got an unexpected keyword argument 'level'