Deeplabcut常见问题汇总
too many values to unpack
这个问题出现在使用
deeplabcut.check_labels(path_config_file)
原因是因为config.yaml文件中的skeleton中一个部位连接了两条线,这里是不能这样简写的,只能一条一条的写,像这样:
skeleton:
- - nose
- left_jaw
- - nose
- right_jaw
- - neck
- left_jaw
- - neck
- right_jaw
- - neck
- front_left_base
- - neck
- front_right_base
- - front_left_base
- front_left_foot
- - front_left_base
- behind_left_base
- - front_right_base
- front_right_foot
- - front_right_base
- behind_right_base
- - behind_right_base
- taile_base
- - behind_right_base
- behind_right_foot
- - behind_left_base
- taile_base
- - behind_left_base
- behind_left_foot
- - center
- front_left_base
- - center
- front_right_base
- - center
- behind_right_base
- - center
- behind_left_base
- - tail_base
- tail_joint
- - tail_joint
- tail_end
使用deeplabcut.analyze_videos(path_config_file,videofile_path,save_as_csv = True)时程序终止
在运行函数Starting to extract posture时分析视频终止,同时在后面使用deeplabcut.create_labeled_video(path_config_file,videofile_path)时无法生成视频
这里我的问题还是GPU的内存不够,解决方法就是进一步调小限制内存,方法如下:
https://blog.csdn.net/qq_44782352/article/details/120975563?spm=1001.2014.3001.5501
运行所有代码都没有报错,但是最终输出一个没有任何标签的空视频,并且生成的轨迹CSV文件所有部位都在一个位置。
目前没找到解决办法,换了一台电脑就好了,有问题电脑的GPU型号是RTX3060。