Skip to content

Commit

Permalink
Merge pull request #256 from xinghai-sun/doc2
Browse files Browse the repository at this point in the history
Release librispeech model url.
  • Loading branch information
xinghai-sun authored Sep 15, 2017
2 parents 8b5c739 + 87c0abb commit 726c010
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deep_speech_2/examples/librispeech/run_infer_golden.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ python -u infer.py \
--use_gru=False \
--use_gpu=True \
--share_rnn_weights=True \
--infer_manifest='data/tiny/manifest.test-clean' \
--infer_manifest='data/librispeech/manifest.test-clean' \
--mean_std_path='models/librispeech/mean_std.npz' \
--vocab_path='models/librispeech/vocab.txt' \
--model_path='models/librispeech/params.tar.gz' \
Expand Down
2 changes: 1 addition & 1 deletion deep_speech_2/examples/librispeech/run_test_golden.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ python -u test.py \
--use_gru=False \
--use_gpu=True \
--share_rnn_weights=True \
--test_manifest='data/tiny/manifest.test-clean' \
--test_manifest='data/librispeech/manifest.test-clean' \
--mean_std_path='models/librispeech/mean_std.npz' \
--vocab_path='models/librispeech/vocab.txt' \
--model_path='models/librispeech/params.tar.gz' \
Expand Down
4 changes: 2 additions & 2 deletions deep_speech_2/models/librispeech/download_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
source ../../utils/utility.sh

# TODO: add urls
URL='to-be-added'
MD5=5b4af224b26c1dc4dd972b7d32f2f52a
URL='http://cloud.dlnel.org/filepub/?uuid=17404caf-cf19-492f-9707-1fad07c19aae'
MD5=ea5024a457a91179472f6dfee60e053d
TARGET=./librispeech_model.tar.gz


Expand Down
5 changes: 2 additions & 3 deletions deep_speech_2/utils/utility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ download() {
fi
fi

wget -c $URL -P `dirname "$TARGET"`
wget -c $URL -O "$TARGET"
md5_result=`md5sum $TARGET | awk -F[' '] '{print $1}'`
if [ $MD5 == $md5_result ]; then
echo "Fail to download the language model!"
if [ ! $MD5 == $md5_result ]; then
return 1
fi
}

0 comments on commit 726c010

Please sign in to comment.