未验证 提交 77d2bf77 编写于 作者: X Xinghai Sun 提交者: GitHub

Merge pull request #422 from xinghai-sun/demo_example

Release BaiduEn8k model and prepare  the corresponding demo example.
...@@ -13,7 +13,7 @@ cd - > /dev/null ...@@ -13,7 +13,7 @@ cd - > /dev/null
# download well-trained model # download well-trained model
cd models/librispeech > /dev/null cd models/baidu_en8k > /dev/null
sh download_model.sh sh download_model.sh
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
...@@ -28,19 +28,19 @@ python -u deploy/demo_server.py \ ...@@ -28,19 +28,19 @@ python -u deploy/demo_server.py \
--host_port=8086 \ --host_port=8086 \
--num_conv_layers=2 \ --num_conv_layers=2 \
--num_rnn_layers=3 \ --num_rnn_layers=3 \
--rnn_layer_size=2048 \ --rnn_layer_size=1024 \
--alpha=0.36 \ --alpha=1.15 \
--beta=0.25 \ --beta=0.15 \
--cutoff_prob=0.99 \ --cutoff_prob=1.0 \
--cutoff_top_n=40 \ --cutoff_top_n=40 \
--use_gru=False \ --use_gru=True \
--use_gpu=True \ --use_gpu=True \
--share_rnn_weights=True \ --share_rnn_weights=False \
--speech_save_dir='demo_cache' \ --speech_save_dir='demo_cache' \
--warmup_manifest='data/tiny/manifest.test-clean' \ --warmup_manifest='data/tiny/manifest.test-clean' \
--mean_std_path='models/librispeech/mean_std.npz' \ --mean_std_path='models/baidu_en8k/mean_std.npz' \
--vocab_path='models/librispeech/vocab.txt' \ --vocab_path='models/baidu_en8k/vocab.txt' \
--model_path='models/librispeech/params.tar.gz' \ --model_path='models/baidu_en8k/params.tar.gz' \
--lang_model_path='models/lm/common_crawl_00.prune01111.trie.klm' \ --lang_model_path='models/lm/common_crawl_00.prune01111.trie.klm' \
--decoding_method='ctc_beam_search' \ --decoding_method='ctc_beam_search' \
--specgram_type='linear' --specgram_type='linear'
......
#! /usr/bin/env bash
. ../../utils/utility.sh
URL='To-be-added'
MD5=a19d40cb3b558eb696c44d883f32cfda
TARGET=./baidu_en8k_model.tar.gz
echo "Download BaiduEn8k model ..."
download $URL $MD5 $TARGET
if [ $? -ne 0 ]; then
echo "Fail to download BaiduEn8k model!"
exit 1
fi
tar -zxvf $TARGET
exit 0
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册