在Ubuntu 14.04下配置FCIS的运行环境
2017-10-06 23:18
561 查看
考完GRE赶紧回来继续搞实例分割,dockerhub上找了个fcis的docker,结果发现不好用=,=,折腾了一天也没弄好,还是在实验室的台式机上自己重新装个mxnet终于能跑fcis的demo了。
参考资料:
1. FCIS
2. Ubuntu14.04下MXNet安装
参考资料:
1. FCIS
2. Ubuntu14.04下MXNet安装
步骤:
1. Clone the FCIS repository, and we’ll call the directory that you cloned FCIS as ${FCIS_ROOT}.
git clone https://github.com/msracver/FCIS.git[/code]2. Build cython module
cd FCIS sh ./init.sh3. Install Opencv 3
FCIS代码里使用的是opencv33.1 Install dependencies
sudo apt-get install libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg62-dev cmake libswscale-dev libjasper-dev3.2 下载opencv并解压:
http://opencv.org/3.3 安装opencv,在opencv根目mkdir build
cd build cmake .. make sudo make install3.4 配置设置:
sudo gedit /etc/ld.so.conf.d/opencv.conf
在打开的文件中添加opencv的链接库路径:/usr/local/lib3.5 继续执行:
sudo ldconfig sudo gedit /etc/bash.bashrc
在打开的文件中添加如下语句:PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig export PKG_CONFIG_PATH4. Install MXNet:
4.1 Clone MXNet and checkout to MXNet@(commit 62ecb60)git clone --recursive https://github.com/dmlc/mxnet.git git checkout 62ecb60 git submodule update
4.2 Copy operators in $(FCIS_ROOT)/fcis/operator_cxx to $(YOUR_MXNET_FOLDER)/src/operator/contrib bycp -r $(FCIS_ROOT)/fcis/operator_cxx/* $(MXNET_ROOT)/src/operator/contrib/
注意:
新版本的mxnet在operator下是没有contrib文件夹的4.3 Compile MXNet
cd ${MXNET_ROOT} make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=14.4 Install the MXNet Python binding
cd python sudo python setup.py install5. 运行FCIS的demo进行测试
首先下载训练好的模型fcis_coco-0000.params,放到./model/pretrained_model/下,python ./fcis/demo.py
如果一切正常则可以看到如下结果:![]()
相关文章推荐
- 环境配置说明(无CUDA,caffe在CPU下运行)caffe+Ubuntu14.0.4 64bit
- ubuntu平台运行cooja的环境配置
- ubuntu配置MPICH2运行环境(转)
- ubuntu14.04下配置python环境
- ubuntu 14.04下 caffe环境中 fast rcnn安装与运行
- Ubuntu14.04下JDK8+Tomcat7 环境配置
- ubuntu下运行,配置java环境
- Ubuntu 16.04 + PyCharm + spark 运行环境配置
- ubuntu14.04下weka的安装与配置——数据分析环境搭建1
- ORB SLAM在Ubuntu14.04下环境配置
- 用 xampp 在ubuntu 下配置php 运行环境 lampp
- ORB_SLAM运行详细过程(ubuntu14.04系统和ROS Indigo环境搭建,配置及测试运行)
- ubuntu14.04下weka的安装与配置——数据分析环境搭建1
- ubuntu14.04下配置Java环境以及安装最新版本的eclipse
- ubuntu配置java运行环境
- ubuntu系统下eclipse配置hadoop开发环境并运行wordcount程序
- Ubuntu14.04下配置Emacs的Python IDE环境
- 小黑小波比.Ubuntu14.04下配置Nginx+php5+Mariadb开发环境
- ubuntu14.04下配置Java环境以及安装最新版本的eclipse
- Ubuntu 9.04 下使用Apache2,mod_mono 配置asp.net 2.0 运行环境