This repository has been archived by the owner on May 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 224
/
Dockerfile
83 lines (71 loc) · 1.64 KB
/
Dockerfile
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
FROM pytorch/pytorch:1.6.0-cuda10.1-cudnn7-devel
WORKDIR /app
RUN apt-get update && \
apt-get install -y apt-utils \
wget \
git \
gcc \
build-essential \
cmake \
libpq-dev \
libsndfile-dev \
libboost-system-dev \
libboost-thread-dev \
libboost-program-options-dev \
libboost-test-dev \
libeigen3-dev \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
libsndfile1-dev \
libopenblas-dev \
libfftw3-dev \
libgflags-dev \
libgoogle-glog-dev \
libgl1-mesa-glx \
libomp-dev
# 1. upgrade pip
RUN pip install --upgrade pip
# 2. install python-mecab-ko
RUN pip install python-mecab-ko==1.0.9
# 3. install pororo
RUN pip install pororo
# 4. install brainspeech
RUN pip install soundfile \
torchaudio==0.6.0 \
pydub
RUN conda install -y -c conda-forge librosa
# 5. install etc modules
RUN pip install librosa \
kollocate \
koparadigm \
g2pk \
fugashi \
ipadic \
romkan \
g2pM \
jieba \
opencv-python \
scikit-image \
editdistance==0.5.3 \
epitran==1.2 \
fastdtw==0.3.4 \
future \
Pillow==7.2.0 \
pinyin==0.4.0 \
scikit-learn \
scipy \
SoundFile==0.10.2 \
numba==0.48 \
ko_pron
WORKDIR /app/external_lib
RUN git clone https://github.com/kpu/kenlm.git
WORKDIR /app/external_lib/kenlm/build
RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON
RUN make
ENV KENLM_ROOT_DIR="/app/external_lib/kenlm/"
WORKDIR /app/external_lib
RUN git clone -b v0.2 https://github.com/facebookresearch/wav2letter.git
WORKDIR /app/external_lib/wav2letter/bindings/python
RUN pip install -e .
WORKDIR /app