-
Notifications
You must be signed in to change notification settings - Fork 0
/
ctc_installation.txt
42 lines (35 loc) · 994 Bytes
/
ctc_installation.txt
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
#! /bin/bash#-----------------------------------
# CTC
#-----------------------------------
sudo mkdir /data
sudo mount /dev/xvdf /data
# increase shared memory
sudo chmod 777 /etc/fstab
echo tmpfs /dev/shm tmpfs defaults,size=200g 0 0 > /etc/fstab
sudo mount -o remount /dev/shm
cat /etc/fstab
# set CUDA_HOME env variable
nvcc --version
export CUDA_HOME=/usr/local/cuda-9.0
source activate pytorch_p36
sudo pip install --upgrade pip
# Decoder
mkdir ~/ctc && cd ~/ctc
git clone --recursive https://github.com/parlance/ctcdecode.git
cd ~/ctc/ctcdecode
sudo pip install wget
wget https://github.com/cmudeeplearning11785/machine_learning_gpu/blob/master/boost_1_63_0.tar.gz
cp boost_1_63_0.tar.gz ~/ctc/ctcdecode/third_party/
pip install .
# Warp-CTC
cd ~/ctc
git clone https://github.com/SeanNaren/warp-ctc.git
cd warp-ctc
mkdir build; cd build
cmake ..
make
cd ../pytorch_binding
python setup.py install
pip install python-Levenshtein
cd /data/speech-recognition/
pip install tensorflow