【使用AutoDL运行开放步态识别框架OpenGait】

最近在使用AutoDL云服务器跑步态识别的代码,用的是开放步态识别框架OpenGait,记录一下自己跑代码的步骤和遇到的问题以及解决方式。


一、上传OpenGait项目到AutoDL

AutoDL网址:https://www.autodl.com/home
OpenGait网址:https://github.com/ShiqiYu/OpenGait/

二、CASIA-B数据预处理

1、下载CASIA-B数据集
CASIA-B下载网址:http://www.cbsr.ia.ac.cn/GaitDatasetB-silh.zip
2、上传CASIA-B数据集到AutoDL
3、解压数据集→进入解压后的目录→再次解压

unzip CASIA-B
cd CASIA-B
sudo ls *.tar.gz | xargs -n1 tar xzvf

4、数据预处理,代码中的预处理主要包括①裁剪②转为pkl文件

python datasets/pretreatment.py --input_path /root/CASIA-B --output_path /root/CASIA-B-pkl

三、运行Gaitbase

# 4块卡跑
# 训练
CUDA_VISIBLE_DEVICES=0,1,2,3 python -m torch.distributed.launch --nproc_per_node=4 opengait/main.py --cfgs ./configs/gaitbase/gaitbase_da_casiab.yaml --phase train

# 测试
CUDA_VISIBLE_DEVICES=0,1,2,3 python -m torch.distributed.launch --nproc_per_node=4 opengait/main.py --cfgs ./configs/gaitbase/gaitbase_da_casiab.yaml --phase test

CUDA_VISIBLE_DEVICES=0:哪一块显卡
nproc_per_node=1: GPU数量
根据服务器GPU数量进行调整

四、运行结果

NMBGCL备注
97.694.077.4原文
97.9694.0677.45复现

复现结果

五、问题及解决

RuntimeError: Unable to find a valid cuDNN algorithm to run convolution
模型的训练的batch-size训练过大了,调整更小,就可以了


总结

欢迎使用OpenGait研究步态识别的伙伴进行交流

  • 31
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

努力的小菜包

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

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

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

打赏作者

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

抵扣说明:

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

余额充值