mmaction2摄像头使用教程

mmaction2摄像头使用教程

1.克隆项目

git clone https://github.com/open-mmlab/mmaction2.git

2.安装mmcv-full

pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/{cu_version}/{torch_version}/index.html

3.安装依赖包

pip install -r requirements/build.txt
pip install -v -e .  # or "python setup.py develop"

4.进入configs/recognition,下载py名对应的权重文件

5.运行摄像头代码

python demo/webcam_demo.py configs/recognition/timesformer/timesformer_spaceOnly_8x32x1_15e_kinetics400_rgb.py checkpoints/timesformer_spaceOnly_8x32x1_15e_kinetics400_rgb.pth tools/data/kinetics/label_map_k400.txt --average-size 5 --threshold 0.2

猜你喜欢

转载自blog.csdn.net/weixin_45921929/article/details/122626373
今日推荐