-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.sh
52 lines (45 loc) · 1.5 KB
/
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
set -e
TF_VERSION_UPPER_BOUND=1.14
VALID_TF_VERSION=$(python -c "import tensorflow as tf; from pkg_resources import parse_version; print(parse_version(tf.VERSION) < parse_version('$TF_VERSION_UPPER_BOUND'))")
if [ $VALID_TF_VERSION != "True" ]; then
TF_VERSION=$(python -c "import tensorflow as tf; print(tf.VERSION)")
echo "tensorflow version $TF_VERSION too new, must be < $TF_VERSION_UPPER_BOUND. See README.md for explanation."
exit
fi
GIT_BRANCH=$(git branch | sed -n '/\* /s///p')
echo "*** git branch for silot is <"$GIT_BRANCH">."
# Install dps
echo "*** Installing dps on branch "$GIT_BRANCH
git clone /~https://github.com/e2crawfo/dps.git
cd dps
git checkout "$GIT_BRANCH"
echo "*** git branch for dps is <"$GIT_BRANCH">."
pip install -r requirements.txt
pip install -e .
# Install auto_yolo, and custom tf op "render_sprites"
echo "*** Installing auto_yolo on branch "$GIT_BRANCH
cd ../
git clone /~https://github.com/e2crawfo/auto_yolo.git
cd auto_yolo
git checkout "$GIT_BRANCH"
echo "*** git branch for auto_yolo is <"$GIT_BRANCH">."
pip install -r requirements.txt
pip install -e .
cd auto_yolo/tf_ops/render_sprites/
make
cd ../resampler_edge
make
cd ../../../
# Optional: install fork of SQAIR.
echo "*** Installing sqair on branch "$GIT_BRANCH
cd ../
git clone /~https://github.com/e2crawfo/sqair.git
cd sqair
git checkout "$GIT_BRANCH"
echo "*** git branch for sqair is <"$GIT_BRANCH">."
pip install -r requirements.txt
pip install -e .
# Install silot
cd ../
pip install -r requirements.txt
pip install -e .