forked from Emrys365/espnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_visual.sh
64 lines (58 loc) · 1.58 KB
/
install_visual.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
57
58
59
60
61
62
63
64
#!/usr/bin/env bash
set -euo pipefail
if [ $# != 0 ]; then
echo "Usage: $0"
exit 1;
fi
if [ ! -e visual.done ]; then
(
# Install gdown
if ! python3 -c "import gdown" &> /dev/null; then
(
set -euo pipefail
python3 -m pip install gdown
)
else
echo "gdown is already installed."
fi
# Install skvideo
if ! python3 -c "import skvideo" &> /dev/null; then
(
set -euo pipefail
python3 -m pip install sk-video
)
else
echo "skvideo is already installed."
fi
# Install skimage
if ! python3 -c "import skimage" &> /dev/null; then
(
set -euo pipefail
python3 -m pip install scikit-image
)
else
echo "skimage is already installed."
fi
# Install cv2
if ! python3 -c "import cv2" &> /dev/null; then
(
set -euo pipefail
python3 -m pip install opencv-python
)
else
echo "cv2 is already installed."
fi
# Install python_speech_features
if ! python3 -c "import python_speech_features" &> /dev/null; then
(
set -euo pipefail
python3 -m pip install python_speech_features
)
else
echo "python_speech_features is already installed."
fi
)
touch visual.done
else
echo "visual components are already installed."
fi