forked from cdevin/objectattention
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_linux.sh
executable file
·46 lines (40 loc) · 1.3 KB
/
setup_linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
#echo "Installing system dependencies..."
if source objectattention/bin/activate
then
echo Virtualenv already exists, skipping to pip installs
else
echo "You may be asked for your sudo password to install virtualenv."
sudo pip install virtualenv
virtualenv -p python2.7 objectattention
sleep 2s
if source objectattention/bin/activate
then
echo Succesfully created virtualenv
else
echo ERROR Failed to activate virtualenv
exit 1
fi
fi
pip install --ignore-installed numpy==1.11.0
pip install matplotlib
pip install easydict
pip install Cython==0.26
pip install pyyaml
pip install rospy
pip install --upgrade --ignore-installed tensorflow-gpu #pip install --upgrade tensorflow
pip install opencv-python
pip install tkinter
pip install pillow
pip install IPython
pip install opencv-python
pip install rospkg
pip install catkin_pkg
echo "Downloading network weights"
wget https://people.eecs.berkeley.edu/~coline/data/bvlc_alexnet.npy .
mkdir rpn_net/model
cd rpn_net/model
wget https://people.eecs.berkeley.edu/~coline/data/fasterrcnn_vgg_coco_net.tfmodel .
cd ../util/faster_rcnn_lib && make
cd ../../..
echo "Virtual environment created! Make sure to run \`source objectattention/bin/activate\` whenever you open a new terminal and want to run programs under this package."