显卡驱动、cuda、cudnn、nccl等见我的另一篇博客caffe的安装中有
https://blog.csdn.net/CSDN_dzh/article/details/83245514
进caffe2官网
https://caffe2.ai/docs/getting-started.html?platform=ubuntu&configuration=compile
按照里面的提示
安装依赖项
确认
cmake3.9 ,OpenCV,等已按我的caffe安装博客中正常安装
安装caffe2
先执行
sudo pip install pyyaml
sudo pip install typing
git clone https://github.com/pytorch/pytorch.git && cd pytorch
git submodule update --init --recursive
make -j16
cd build
sudo make install
测试是否安装成功
cd ~ && python -c 'from caffe2.python import core' 2>/dev/null && echo "Success" || echo "Failure"
出现了success
COCO API
参考
https://github.com/facebookresearch/Detectron/blob/master/INSTALL.md
网址里git下来的包make不了
于是我到这里下载,还不清楚会有什么问题
https://github.com/philferriere/cocoapi
Detectron
先下下来,后面先不管
出错了试试
sudo pip install --upgrade pip
sudo pip install opencv-python
开始detectron之旅
https://github.com/facebookresearch/Detectron/blob/master/GETTING_STARTED.md