FastMaskRCNN

1.git clone https://github.com/CharlesShang/FastMaskRCNN.git

2.Go to ./libs/datasets/pycocotools and run make

3.Download pretrained resnet50 model, wget http://download.tensorflow.org/models/resnet_v1_50_2016_08_28.tar.gz, unzip it, place it into ./data/pretrained_models/

4.Download COCO dataset, place it into ./data, then run python download_and_convert_data.py to build tf-records. It takes a while.

5.用virtualenv安装配置Tensorflow1.2
首先通过如下命令安装pip和virtualenv

sudo apt-get install python-pip python-dev python-virtualenv # for Python 2.7 
sudo apt-get install python3-pip python3-dev python-virtualenv # for Python 3.n

使用如下命令创建virtualenv环境

virtualenv --system-site-packages targetDirectory # for Python 2.7 
virtualenv --system-site-packages -p python3 targetDirectory # for Python 3.n

上述名称中的targetDirectory是自己命名的一个空间,这里假定是 ~/tensorflow1.2,你也可名命名其他名称

使用如下命令激活virtualenv环境

source ~/tensorflow1.2/bin/activate # bash, sh, ksh, or zsh
source ~/tensorflow/bin/activate.csh  # csh or tcsh

pip install tensorflow-gpu==1.2.1

测试安装结果

python
import tensorflow as tf

在这里插入图片描述

在这里插入图片描述
训练失败,放弃该版本。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值