赞
踩
搭建slowfast人体动作识别框架遇到的一些问题,特此记录!
原文博客地址:SlowFast环境安装爬坑记录-旅程blog (cxy.red)
安装命令:
pip install -U git+https://github.com/facebookresearch/fvcore.git git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI
出现问题:
解决方法:
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
执行命令:
python setup.py build develop
出现问题:
解决方法:sklearn 换为 scikit-learn
执行命令:
python setup.py build develop
出现问题:
解决方法:PIL 换为 Pillow
执行demo命令:
python tools/run_net.py --cfg demo/AVA/SLOWFAST_32x2_R101_50_50.yaml
出现问题:
解决办法:
从本地源代码构建它:
执行demo命令:
python tools/run_net.py --cfg demo/AVA/SLOWFAST_32x2_R101_50_50.yaml
出现问题:
解决方法:
法一:torch 升级到2.0之后,这个api不能用了,降低torch版本
法二:找到代码处替换为以下代码
# from torch._six import int_classes as _int_classes
int_classes = int
string_classes = str
执行demo命令:
python tools/run_net.py --cfg demo/AVA/SLOWFAST_32x2_R101_50_50.yaml
出现问题:
解决方法:
ava配置文件注释以下内容
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。