forked from AASHISHAG/deepspeech-german
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
57 lines (43 loc) · 1.72 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
FROM mozilla_deep_speech:latest
#FROM mds_slurm:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y
RUN apt-get update && apt-get install -y --no-install-recommends nano file zip
RUN apt-get update && apt-get install -y --no-install-recommends sox libsox-dev
# Dependencies for noise normalization
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg
RUN pip install --no-cache-dir --upgrade pydub
# Tool to convert output graph for inference
RUN python3 util/taskcluster.py --source tensorflow --artifact convert_graphdef_memmapped_format --branch r1.15 --target .
# Delete apt cache to save space
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
# Update pip
RUN python3 -m pip install --upgrade pip
# Install python packages
RUN pip3 install --no-cache-dir --upgrade \
num2words \
google-cloud-texttospeech
# Fix error: AttributeError: module 'gast' has no attribute 'Num'
RUN pip3 install --no-cache-dir gast==0.2.2
# Parallel pandas functions
RUN pip3 install --no-cache-dir pandarallel
# Upgrade setuptools for tensorboard
RUN pip3 install --upgrade --no-cache-dir setuptools
# Update pandas version to fix an error
RUN pip3 install --upgrade --no-cache-dir pandas
# Build kenlm
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential cmake libboost-all-dev
RUN cd /DeepSpeech/native_client/ && rm -r kenlm/ \
&& git clone --depth 1 https://github.com/kpu/kenlm \
&& cd kenlm \
&& mkdir -p build \
&& cd build \
&& cmake .. \
&& make -j 4
# Install audiomate
RUN pip3 install git+https://github.com/danbmh/audiomate.git@new_features
#RUN pip3 install --no-cache-dir audiomate
COPY . /DeepSpeech/deepspeech-german/
CMD ["/bin/bash"]