添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
淡定的打火机  ·  Test Suite - 导出项目·  3 月前    · 
性感的沙滩裤  ·  凝雨 - Yun·  3 月前    · 
奔放的排球  ·  Errors Reference | ...·  7 月前    · 

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The function dataset.grab_audio_to_df() and segmentation.multicpu_extract_rois() uses the attribute 'append'. However, this attribute has been deprecated since pandas 2.0. New version should use 'concat' for the package to be compatible with more recent installations.

Here is a working fix.

In dataset.grab_audio_to_df(), replace line 349 with :

df_line = pd.DataFrame({      'fullfilename':file,
                                      'filename'    :Path(file).parts[-1],
                                      'categories'  :categories,
                                      'id'          :iden}
                               , index=[0])
df_dataset = pd.concat([df_dataset, df_line], ignore_index=True)

In segmentation.multicpu_extract_rois(), replace line 490 with :
df_rois = pd. concat([df_rois,df_rois_temp])

line 496 :
df_rois_sorted = pd. concat([df_rois_sorted, df_rois[df_rois["categories"] == categories].sort_index()] )

Similar modifications also need to be applied to segmentaiton.py