搭建faster RCNN运行环境时遇见的一些问题
# 搭建faster RCNN运行环境时遇见的一些问题
xiangyaobing 2019/1/16
关键词
windows;tensorflow-gpu;faster RCNN;环境配置;
先看运行结果
环境
CPU: i7-8700k
GPU: 1080ti
内存:32G
系统:windows10 专业版
python版本:python 3.5
正文
sudo update-alternatives –install /usr/bin/python python /usr/bin/python3 150
更改默认python
ctrl+z #僵化进程
bg %n # 后台运行
command >out.file 2>&1 & #输出重新定向,输出内容不打印到屏幕上,而是输出到out.file文件中,后台运行
pip-修改国内镜像源
mkdir ~/.pip
vim ~/.pip/pip.conf
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com
Ubuntu 删除 pip安装缓存目录
sudo rm -rf ~/.cache/pip
yum whatprovides libSM.so.6 yum问题
使用yum安装软件出现“The requested URL returned error: 404”
修改ubuntu.repod.d文件
[base]
name=CentOS-$releasever - Base - 163.com
#baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
baseurl=http://mirrors.163.com/centos/6/os/i386/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
from .cv2 import *
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
#定位问题
yum whatprovides libSM.so.6
下一步
#解决问题
yum install libSM-1.2.1-2.el6.i686 --setopt=protected_multilib=false
faster RCNN matlab 模型文件
https://onedrive.live.com/download?resid=36FEC490FBC32F1A!111&authkey=!AFVWFGTbViiX5tg&ithint=file%2Czip
caffe_mex.zip
https://onedrive.live.com/download?resid=D7AF52BADBA8A4BC!114&authkey=!AERHoxZ-iAx_j34&ithint=file%2Czip
‘faster_rcnn_final_model.zip’
windows add path for python
path=%path%;path
winows python import tensorflow
error:Unable to find vcvarsall.bat
安装VS2015 vc++ 编译器
anaconda 配置python3.5环境
conda create -n python35 python=3.5 anaconda
activate python35
#查看python版本:python --version
windows下pip换源
c:/user/(用户名)/ 下创建pip文件夹,创建pip.ini文件
文件内容:
[global]
index-url = https://pypi.douban.com/simple/
[install]
trusted-host = pypi.douban.com
(cudnn+cuda)与 tensorflow-gpu的适配问题
version:
tensorflow-gpu==1.10.0
cuda 9.0
cuDNN 9.0-windows10-x64-v7.4.2.24
python 3.54
本文内容来自网络搜集与个人试验,仅供参考