forked from espnet/espnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_muskits.sh
executable file
·58 lines (53 loc) · 1.49 KB
/
install_muskits.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
#!/usr/bin/env bash
set -euo pipefail
if [ $# != 0 ]; then
echo "Usage: $0"
exit 1;
fi
if [ ! -e muskits.done ]; then
(
# Install ParallelWaveGAN
if ! python3 -c "import parallel_wavegan.version" &> /dev/null; then
(
set -euo pipefail
rm -rf ParallelWaveGAN
git clone https://github.com/kan-bayashi/ParallelWaveGAN.git
cd ParallelWaveGAN
pip install -e .
cd ../
)
else
echo "parallel_wavegan is already installed."
fi
# Install pytsmod
if ! python3 -c "import pytsmod.version" &> /dev/null; then
(
set -euo pipefail
python3 -m pip install pytsmod
)
else
echo "pytsmod is already installed."
fi
# Install miditoolkit
if ! python3 -c "import miditoolkit.version" &> /dev/null; then
(
set -euo pipefail
python3 -m pip install miditoolkit
)
else
echo "miditoolkit is already installed."
fi
# Install music21
if ! python3 -c "import music21.version" &> /dev/null; then
(
set -euo pipefail
python3 -m pip install music21
)
else
echo "music21 is already installed."
fi
)
touch muskits.done
else
echo "muskits is already installed."
fi