Deeplabv3-tenorflow环境配置

Installing with Virtualenv

1:install pip and Virtualenv
sudo apt-get install python-pip python-dev python-virtualenv #for python2.7
sudo apt-get install python3-pip python3-dev python-virtualenv #for python3.n

2:create a virtualenv environment
virtualenv --system-site-packages (targetDirectory) #for python2.7
virtualenv --system-site-packages -p python3 (targetDirectory) #for python3.n

3:Activate the virtualenv environment
cd targetDirectory
source /bin/activate

4:deactivate
deactivate

5:Ensure pip>=8.1
(targetDirectory)$easy_install -U pip

6: install tensorflow
(targetDirectory)$ pip install --upgrade tensorflow1.2 # for Python 2.7
(targetDirectory)$ pip3 install --upgrade tensorflow
1.2 # for Python 3.n
(targetDirectory)$ pip install --upgrade tensorflow-gpu1.2 # for Python 2.7 and GPU
(targetDirectory)$ pip3 install --upgrade tensorflow-gpu
1.2 # for Python 3.n and GPU

########DeepLabV3:https://github.com/NanqingD/DeepLabV3-Tensorflow
7:clone DeepLabV3
git clone https://github.com/NanqingD/DeepLabV3-Tensorflow.git

7:uninstall tensorflow
rm -r (targetDirectory)

猜你喜欢

转载自blog.csdn.net/PADS123/article/details/88338181