栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

记录下mmaction2安装过程中的问题

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

记录下mmaction2安装过程中的问题

1.pip安装失败可以换源,国内用官方文档给的这步安装不上去

建议使用

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple myqr -r requirements/build.txt

2. 亲测mmcv-full换源也装不好,可以到此网站手动选择 https://github.com/open-mmlab/mmcv

例如如下版本

pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7.0/index.html

最后测试

import torch
from mmaction.apis import init_recognizer, inference_recognizer

config_file = 'configs/recognition/tsn/tsn_r50_video_inference_1x1x3_100e_kinetics400_rgb.py'
device = 'cuda:0' # or 'cpu'
device = torch.device(device)

model = init_recognizer(config_file, device=device)
# inference the demo video
inference_recognizer(model, 'demo/demo.mp4')

结果如下就算安装成功啦

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/971860.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号