-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathwav2letter.Dockerfile
More file actions
22 lines (15 loc) · 894 Bytes
/
wav2letter.Dockerfile
File metadata and controls
22 lines (15 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM wav2letter/wav2letter:cpu-latest
ENV USE_CUDA=0
ENV KENLM_ROOT_DIR=/root/kenlm
# will use Intel MKL for featurization but this may cause dynamic loading conflicts.
# ENV USE_MKL=1
ENV LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.5.274/linux/mkl/lib/intel64:$LD_IBRARY_PATH
WORKDIR /root/wav2letter/bindings/python
#added editdistance package as pip install
RUN TMPDIR=/data/mydir/ pip install --upgrade pip && pip install --cache-dir=/data/vincents/ --build /data/mydir/ editdistance soundfile packaging && pip install -e .
WORKDIR /root
RUN git clone https://github.com/pytorch/fairseq.git
RUN mkdir data
COPY src/recognize.py /root/fairseq/examples/wav2vec/recognize.py
WORKDIR /root/fairseq
RUN TMPDIR=/data/mydir/ pip install --cache-dir=/data/mydir/ --editable ./ && python examples/speech_recognition/infer.py --help && python examples/wav2vec/recognize.py --help