-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3097 from lissyx/update-0.8
Update 0.8
- Loading branch information
Showing
148 changed files
with
1,763 additions
and
1,730 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,5 @@ | |
/doc/.build/ | ||
/doc/xml-c/ | ||
/doc/xml-java/ | ||
Dockerfile.build | ||
Dockerfile.train |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Please refer to the TRAINING documentation, "Basic Dockerfile for training" | ||
|
||
FROM tensorflow/tensorflow:1.15.2-gpu-py3 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
ENV DEEPSPEECH_REPO=#DEEPSPEECH_REPO# | ||
ENV DEEPSPEECH_SHA=#DEEPSPEECH_SHA# | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
apt-utils \ | ||
bash-completion \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
git-lfs \ | ||
libbz2-dev \ | ||
locales \ | ||
python3-venv \ | ||
unzip \ | ||
wget | ||
|
||
# We need to remove it because it's breaking deepspeech install later with | ||
# weird errors about setuptools | ||
RUN apt-get purge -y python3-xdg | ||
|
||
# Install dependencies for audio augmentation | ||
RUN apt-get install -y --no-install-recommends libopus0 libsndfile1 | ||
|
||
WORKDIR / | ||
RUN git lfs install | ||
RUN git clone $DEEPSPEECH_REPO | ||
|
||
WORKDIR /DeepSpeech | ||
RUN git checkout $DEEPSPEECH_SHA | ||
|
||
# Build CTC decoder first, to avoid clashes on incompatible versions upgrades | ||
RUN cd native_client/ctcdecode && make NUM_PROCESSES=$(nproc) bindings | ||
RUN pip3 install --upgrade native_client/ctcdecode/dist/*.whl | ||
|
||
# Prepare deps | ||
RUN pip3 install --upgrade pip==20.0.2 wheel==0.34.2 setuptools==46.1.3 | ||
|
||
# Install DeepSpeech | ||
# - No need for the decoder since we did it earlier | ||
# - There is already correct TensorFlow GPU installed on the base image, | ||
# we don't want to break that | ||
RUN DS_NODECODER=y DS_NOTENSORFLOW=y pip3 install --upgrade -e . | ||
|
||
# Tool to convert output graph for inference | ||
RUN python3 util/taskcluster.py --source tensorflow --branch r1.15 \ | ||
--artifact convert_graphdef_memmapped_format --target . | ||
|
||
RUN ./bin/run-ldc93s1.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
DEEPSPEECH_REPO ?= https://github.com/mozilla/DeepSpeech.git | ||
DEEPSPEECH_SHA ?= origin/master | ||
|
||
Dockerfile%: Dockerfile%.tmpl | ||
sed \ | ||
-e "s|#DEEPSPEECH_REPO#|$(DEEPSPEECH_REPO)|g" \ | ||
-e "s|#DEEPSPEECH_SHA#|$(DEEPSPEECH_SHA)|g" \ | ||
< $< > $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.