Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/kakaobrain/pororo
Browse files Browse the repository at this point in the history
  • Loading branch information
Huffon committed Feb 2, 2021
2 parents e9b48ee + 7e26800 commit f6bd4a8
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
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

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

0 comments on commit f6bd4a8

Please sign in to comment.