This repository was archived by the owner on May 27, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM pytorch/pytorch:1.6.0-cuda10.1-cudnn7-devel
2+
3+ WORKDIR /app
4+
5+ RUN apt-get update && \
6+ apt-get install -y apt-utils \
7+ wget \
8+ git \
9+ gcc \
10+ build-essential \
11+ cmake \
12+ libpq-dev \
13+ libsndfile-dev \
14+ libboost-system-dev \
15+ libboost-thread-dev \
16+ libboost-program-options-dev \
17+ libboost-test-dev \
18+ libeigen3-dev \
19+ zlib1g-dev \
20+ libbz2-dev \
21+ liblzma-dev \
22+ libsndfile1-dev \
23+ libopenblas-dev \
24+ libfftw3-dev \
25+ libgflags-dev \
26+ libgoogle-glog-dev \
27+ libgl1-mesa-glx \
28+ libomp-dev
29+
30+ # 1. upgrade pip
31+ RUN pip install --upgrade pip
32+
33+ # 2. install python-mecab-ko
34+ RUN pip install python-mecab-ko==1.0.9
35+
36+ # 3. install pororo
37+ RUN pip install pororo
38+
39+ # 4. install brainspeech
40+ RUN pip install soundfile \
41+ torchaudio==0.6.0 \
42+ pydub
43+
44+ RUN conda install -y -c conda-forge librosa
45+
46+ # 5. install etc modules
47+ RUN pip install librosa \
48+ kollocate \
49+ koparadigm \
50+ g2pk \
51+ fugashi \
52+ ipadic \
53+ romkan \
54+ g2pM \
55+ jieba \
56+ opencv-python \
57+ scikit-image
58+
59+ WORKDIR /app/external_lib
60+
61+ RUN git clone https://github.com/kpu/kenlm.git
62+ WORKDIR /app/external_lib/kenlm/build
63+ RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON
64+ RUN make
65+ ENV KENLM_ROOT_DIR="/app/external_lib/kenlm/"
66+
67+ WORKDIR /app/external_lib
68+ RUN git clone -b v0.2 https://github.com/facebookresearch/wav2letter.git
69+ WORKDIR /app/external_lib/wav2letter/bindings/python
70+ RUN pip install -e .
71+
72+ WORKDIR /app
You can’t perform that action at this time.
0 commit comments