Deeplabcut常见问题汇总

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。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
以下是在Windows环境下安装DeepLabCut的步骤: 1. 安装Anaconda(如果您已经安装了,请跳过此步骤)。在Anaconda官网(https://www.anaconda.com/products/individual)上下载适用于您的操作系统的版本,安装后打开Anaconda Navigator。 2. 创建一个新的Python环境。在Anaconda Navigator中,单击“Environments”选项卡,然后单击“Create”按钮。输入环境名称并选择要使用的Python版本,然后单击“Create”按钮。 3. 打开Anaconda Prompt。在Windows搜索栏中输入“Anaconda Prompt”并打开。 4. 在Anaconda Prompt中,安装Git。输入以下命令并按Enter键:`conda install git` 5. 克隆DeepLabCut仓库。输入以下命令并按Enter键:`git clone https://github.com/DeepLabCut/DeepLabCut.git` 6. 进入DeepLabCut文件夹。输入以下命令并按Enter键:`cd DeepLabCut` 7. 安装DeepLabCut。输入以下命令并按Enter键:`pip install -e .` 8. 安装其他依赖项。输入以下命令并按Enter键:`pip install tensorflow==1.14.0 scikit-image pillow pandas opencv-python-headless` 9. 在Jupyter Notebook中测试DeepLabCut。在Anaconda Prompt中输入以下命令并按Enter键:`jupyter notebook`。在Jupyter Notebook中,打开“examples”文件夹,在其中选择一个示例文件并运行它。 这些步骤应该可以帮助您在Windows环境下安装DeepLabCut。如果您遇到任何问题,请查看DeepLabCut文档(https://deeplabcut.github.io/DeepLabCut/docs/InstallationWindows.html)或在DeepLabCut论坛中寻求帮助(https://forum.image.sc/tag/deeplabcut)。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小响尾蛇

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值