Repository navigation
Expand file tree
/
Copy pathmodel_bootstrap.sh
More file actions
59 lines (47 loc) · 1.48 KB
/
Copy pathmodel_bootstrap.sh
File metadata and controls
59 lines (47 loc) · 1.48 KB
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
echo "Setting up model dependencies...."
apt-get update
conda update -n base -c defaults conda
echo "**********************Setup conda ********************"
conda info
apt-get install -y liblzma-dev libbz2-dev libzstd-dev libsndfile1-dev libopenblas-dev libfftw3-dev libgflags-dev libgoogle-glog-dev
apt install -y build-essential cmake libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libeigen3-dev zlib1g-dev libbz2-dev liblzma-dev
apt-get install -y libsndfile1 ffmpeg
pip3 install git+https://github.com/Open-Speech-EkStep/indic-punct.git#egg=indic-punct
conda install -c conda-forge pynini==2.1.4 -y
pip3 install ray[tune]
pip3 install 'ray[default]'
pip3 install Cython
pip3 install nemo_toolkit[all]==v1.0.2
if [ ! -d kenlm ]; then
git clone https://github.com/kpu/kenlm.git
fi
cd kenlm
rm -rf build
mkdir -p build && cd build
cmake ..
make -j 16
cd ..
export KENLM_ROOT_DIR=$PWD
export USE_CUDA=0 ## for cpu
cd ..
# rm -rf kenlm
if [ ! -d wav2letter ]; then
git clone -b v0.2 https://github.com/facebookresearch/wav2letter.git
fi
cd wav2letter
cd bindings/python
pip3 install -e .
cd ../../../
# rm -rf wav2letter
if [ ! -d wav2vec-infer ]; then
git clone https://github.com/Open-Speech-EkStep/wav2vec-infer.git -b modularization
fi
cd wav2vec-infer/wav2vec
pip3 install -e .
cd ../../
if [ ! -d denoiser ]; then
git clone https://github.com/facebookresearch/denoiser.git
fi
apt-get install -y gcc-4.9
apt-get upgrade -y libstdc++6