forked from NWPU-DanceRobotBase-RescueTeam/deep_grasp_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dexnet_install.sh
executable file
·56 lines (45 loc) · 1.05 KB
/
dexnet_install.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
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# read cmd line inputs
VERSION=$1 # cpu or gpu
# set cpu/gpu conditional libraries
case "${VERSION}"
in
cpu)
pip install tensorflow==1.15.0
;;
gpu)
pip install tensorflow-gpu==1.13.1
;;
*)
echo "Usage: $0 {cpu|gpu}"
exit 1
esac
# install apt deps
sudo apt install cmake libvtk6-dev python-vtk6 python-sip python-qt4 libosmesa6-dev meshlab libhdf5-dev
# install pip deps
python3 -m pip install -r dexnet_requirements.txt
# install deps from source
mkdir dexnet_deps
cd dexnet_deps
# install autolab modules
git clone https://github.com/BerkeleyAutomation/autolab_core.git
git clone https://github.com/BerkeleyAutomation/perception.git
git clone https://github.com/BerkeleyAutomation/gqcnn.git
git clone https://github.com/BerkeleyAutomation/visualization.git
# install all Berkeley AUTOLAB modules
# autolab_core
cd autolab_core
sudo python3 setup.py develop
cd ..
# perception
cd perception
sudo python3 setup.py develop
cd ..
# gqcnn
cd gqcnn
sudo python3 setup.py develop
cd ..
# visualization
cd visualization
sudo python3 setup.py develop
cd ..