赞
踩
最近在使用AutoDL云服务器跑步态识别的代码,用的是开放步态识别框架OpenGait,记录一下自己跑代码的步骤和遇到的问题以及解决方式。
AutoDL网址:https://www.autodl.com/home
OpenGait网址:https://github.com/ShiqiYu/OpenGait/
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
# 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数量进行调整
NM | BG | CL | 备注 |
---|---|---|---|
97.6 | 94.0 | 77.4 | 原文 |
97.96 | 94.06 | 77.45 | 复现 |
RuntimeError: Unable to find a valid cuDNN algorithm to run convolution
模型的训练的batch-size训练过大了,调整更小,就可以了
欢迎使用OpenGait研究步态识别的伙伴进行交流
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。