Ubuntu16.04+caffe-cuda9.0-cudnn7+tensorflow-gpu+detectron安装

一. Ubuntu16.04安装
文件:硬盘
安装双系统
1,在win7中文件管理里整理出一个空的磁盘,如果太大,压缩一个200G左右的磁盘
2,正常模式安装(lenove台式机的开机引导项是F1)
3,安装ubuntu时,选择其他安装
4,在那个空磁盘中拿出500M当成引导项,挂载/boot,50G挂载在/(系统7G,软件等都安装这个目录),10G挂载在/swap.剩下挂载/home

二. 显卡驱动,Miniconda,nccl2,caffe2,tensorflow-gpu安装
(参考官网https://caffe2.ai/docs/getting-started.html?platform=ubuntu&configuration=prebuilt)

1.在软件与更新中安装nvidia驱动,用nvidia-smi命令检测是否安装好
(也可以根据官网安装cuda,其自带nvidia驱动)
(https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#verify-you-have-cuda-enabled-system)
(卸载CUDA https://blog.csdn.net/Teeyohuang/article/details/81052770)
CUDNN
https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#installlinux-tar
2.安装miniconda(anaconda的迷你版)—./miniconda.sh

3.conda install nccl2 #conda可以安装nccl,nccl2。但是只有nccl2支持detectron的使用。具体的nccl2的安装好像不是这条命令,但安装nccl2可以看官网的安装
https://docs.nvidia.com/deeplearning/sdk/nccl-install-guide/index.html

4.conda install tensorflow-gpu [会自动安装cuda,cudnn]

5.conda install -c caffe2 caffe2-cuda9.0-cudnn7 [版本是5月7号]
如果conda自动下载最新版的,请用conda remove caffe2 caffe2-cuda9.0-cudnn7删掉,找到5.17版的,用conda install 安装包本地地址。
检测:from caffe2.python import core
其中conda list版本要注意
python2.7
miniconda
opencv
cuda9.0
cudnn7.1
tensorflow-gpu
caffe2-cudan9.0-cudnn7.0(5月7号)

三. Detectron,coco,Flask安装
1.Detectron:

Clone the Detectron repository:
DETECTRON=/path/to/clone/detectron
git clone https://github.com/facebookresearch/detectron detectron

Install Python dependencies:
pip install -r detectron/requirements.txt

Set up Python modules:
cd detectron && make

Check that Detectron tests pass (e.g. for SpatialNarrowAsOp test):
python2 detectrondetectron/tests/test_spatial_narrow_as_op.py

2.cocotools
https://blog.csdn.net/u011961856/article/details/77676461
错误来自编译cocoapi PythonAPI.
解决办法是,先安装cython,再编译
pip install cython
第一步:git clone https://github.com/pdollar/coco.git
第二步:cd coco/PythonAPI
make -j8
第三步:rom pycocotools.coco import COCO 检查

3.Flask
Conda install flask

遇到问题请Google
问题:
1.更换显卡驱动重启的时候,出现登入界面循环登入。
证明显卡驱动不兼容。ctr+alt+F1换到无界面系统删掉刚才下好的显卡驱动。具体操作百度

Densepose
conda install protobuf=3.5.1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值