-
Notifications
You must be signed in to change notification settings - Fork 7
/
Singularity.DeepSpeech2_Ubuntu
64 lines (55 loc) · 1.78 KB
/
Singularity.DeepSpeech2_Ubuntu
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
Bootstrap:docker
From:ubuntu:latest
%labels
MAINTAINER liontooth
%environment
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
%post
apt-get update
apt-get install -y cmake \
locales \
language-pack-en \
git \
python2.7 \
python-pip \
gcc \
pkg-config \
libogg-dev \
libvorbis-dev \
libboost-dev \
swig \
wget \
doxygen
# Manually compile flac-1.3.2
wget http://downloads.xiph.org/releases/flac/flac-1.3.2.tar.xz
tar -xvf flac-1.3.2.tar.xz
cd flac-1.3.2
./configure --prefix=$HOME/usr --disable-ogg
make
make install
cd
# Manually compile libmkldnn.so
git clone https://github.com/01org/mkl-dnn.git
cd mkl-dnn
cd scripts && ./prepare_mkl.sh && cd ..
mkdir -p build && cd build && cmake .. && make && make install
cd src
cp libmkldnn.so.0.14.0 /usr/lib/libmkldnn.so.0.14.0
cd /usr/lib
ln -s libmkldnn.so.0.14.0 libmkldnn.so.0
ln -s libmkldnn.so.0 libmkldnn.so
ldconfig
cd
locale-gen en_US.UTF-8 && dpkg-reconfigure locales
pip install paddlepaddle-gpu
# Get DeepSpeech2 via PaddlePaddle
git clone https://github.com/PaddlePaddle/DeepSpeech.git
cd DeepSpeech
sh setup.sh
# Notes
# There may be an issue if you want to run Jupyter Notebook from the Singularity image -- here's a hint for a workaround:
# Solve Jupyter permission issue
# CMD unset XDG_RUNTIME_DIR && \
# jupyter notebook --port=12220 --no-browser