2021-06-22

本文档详细记录了在Windows环境下安装DeepLabCut-CPU版本的过程,包括遇到的FutureWarning问题及解决方案。作者将numpy版本从1.17.5降至1.16.5来解决警告。然而,在创建训练数据集时遇到HDF5错误,最终发现是中文日期导致的问题,并已通过更改日期格式解决。此外,作者强调使用GPU对于DeepLabCut的重要性,并计划分享GPU版本的安装指南。
摘要由CSDN通过智能技术生成

DeepLabCut 学习指南1

- 安装环境DLC-CPU版本,系统环境Windows

  • 安装参考官方给的视频以及下方GitHub链接

  • 需要注意的是,视频中使用的git clone 下载方法本人没成功实现,所以直接进入GitHub下载zip安装包在这里插入图片描述

  • 根据视频的步骤操作基本上安装就没什么问题

- 安装遇到的问题

`Traceback (most recent call last):
  File "D:\Anaconda\anaconda\envs\DLC-CPU\lib\site-packages\deeplabcut\gui\create_training_dataset.py", line 391, in create_training_dataset
    augmenter_type=self.aug_choice.GetValue(),
  File "D:\Anaconda\anaconda\envs\DLC-CPU\lib\site-packages\deeplabcut\generate_training_dataset\trainingsetmanipulation.py", line 882, in create_training_dataset
    cfg, Path(os.path.join(project_path, trainingsetfolder)), windows2linux
  File "D:\Anaconda\anaconda\envs\DLC-CPU\lib\site-packages\deeplabcut\generate_training_dataset\trainingsetmanipulation.py", line 634, in merge_annotateddatasets
    AnnotationData.to_hdf(filename + ".h5", key="df_with_missing", mode="w")
  File "D:\Anaconda\anaconda\envs\DLC-CPU\lib\site-packages\pandas\core\generic.py", line 2621, in to_hdf
    encoding=encoding,
  File "D:\Anaconda\anaconda\envs\DLC-CPU\lib\site-packages\pandas\io\pytables.py", line 278, in to_hdf
    path_or_buf, mode=mode, complevel=complevel, complib=complib
  File "D:\Anaconda\anaconda\envs\DLC-CPU\lib\site-packages\pandas\io\pytables.py", line 561, in __init__
    self.open(mode=mode, **kwargs)
  File "D:\Anaconda\anaconda\envs\DLC-CPU\lib\site-packages\pandas\io\pytables.py", line 710, in open
    self._handle = tables.open_file(self._path, self._mode, **kwargs)
  File "D:\Anaconda\anaconda\envs\DLC-CPU\lib\site-packages\tables\file.py", line 315, in open_file
    return File(filename, mode, title, root_uep, filters, **kwargs)
  File "D:\Anaconda\anaconda\envs\DLC-CPU\lib\site-packages\tables\file.py", line 778, in __init__
    self._g_new(filename, mode, **params)
  File "tables\hdf5extension.pyx", line 492, in tables.hdf5extension.File._g_new
tables.exceptions.HDF5ExtError: HDF5 error back trace

  File "D:\pytables_hdf5\CMake-hdf5-1.10.5\hdf5-1.10.5\src\H5F.c", line 444, in H5Fcreate
    unable to create file
  File "D:\pytables_hdf5\CMake-hdf5-1.10.5\hdf5-1.10.5\src\H5Fint.c", line 1509, in H5F_open
    unable to open file: time = Tue Jun 22 15:08:39 2021
, name = 'F:\deeplabcut\test-fj-2021-06-18\training-datasets\iteration-0\UnaugmentedDataSet_test六月18\CollectedData_fj.h5', tent_flags = 13
  File "D:\pytables_hdf5\CMake-hdf5-1.10.5\hdf5-1.10.5\src\H5FD.c", line 734, in H5FD_open
    open failed
  File "D:\pytables_hdf5\CMake-hdf5-1.10.5\hdf5-1.10.5\src\H5FDsec2.c", line 346, in H5FD_sec2_open
    unable to open file: name = 'F:\deeplabcut\test-fj-2021-06-18\training-datasets\iteration-0\UnaugmentedDataSet_test 六月18\CollectedData_fj.h5', errno = 2, error message = 'No such file or directory', flags = 13, o_flags = 302

End of HDF5 error back trace

Unable to open/create file 'F:\deeplabcut\test-fj-2021-06-18\training-datasets\iteration-0\UnaugmentedDataSet_test六月18\CollectedData_fj.h5'`
  • 21-6-23更新,我一直觉得是因为中文日期的出现导致了问题。但是没有足个File去对,然后就查“End of HDF5 error back trace”,结果没有找到。
  • 尝试将系统日期改为英文版本,失败。
  • 然后逐个File溯源。在路径下找到了py文件然后根据报错位置查看。
    在这里插入图片描述
    在这里插入图片描述
  • 在GetTrainingSetFolder里面的date获取就应该是英文日期,但是项目的yaml文件中date还是中文的,所以把中文的date改为英文,done!
    在这里插入图片描述
    在这里插入图片描述

- DeepLabCut GUI 操作指南

  • 第一条建议!very important!请使用GPU!!!
    -本人一开始使用CPU跑默认设置的Resnet50,一个晚上iteration才到1000,默认参数设置如下。目前准备换服务器跑,看来是我年少无知了。GPU版本的Deeplabcut安装指南后续出。
    在这里插入图片描述在这里插入图片描述
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值