Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
ef4e2c54
M
models
项目概览
PaddlePaddle
/
models
大约 1 年 前同步成功
通知
222
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
ef4e2c54
编写于
7月 04, 2018
作者:
Y
Yibing Liu
提交者:
GitHub
7月 04, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1031 from kuke/upload_graph
Upload auxilary files for decoding
上级
3bb9ab77
ff1cc191
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
7 deletion
+13
-7
fluid/DeepASR/examples/aishell/infer_by_ckpt.sh
fluid/DeepASR/examples/aishell/infer_by_ckpt.sh
+6
-6
fluid/DeepASR/examples/aishell/prepare_data.sh
fluid/DeepASR/examples/aishell/prepare_data.sh
+6
-0
fluid/DeepASR/examples/aishell/score_cer.sh
fluid/DeepASR/examples/aishell/score_cer.sh
+1
-1
未找到文件。
fluid/DeepASR/examples/aishell/infer_by_ckpt.sh
浏览文件 @
ef4e2c54
decode_to_path
=
./decoding_result.txt
decode_to_path
=
./decoding_result.txt
export
CUDA_VISIBLE_DEVICES
=
2,3,4,5
export
CUDA_VISIBLE_DEVICES
=
0,1,2,3
python
-u
../../infer_by_ckpt.py
--batch_size
96
\
python
-u
../../infer_by_ckpt.py
--batch_size
96
\
--checkpoint
checkpoints/deep_asr.
pass_20
.checkpoint
\
--checkpoint
checkpoints/deep_asr.
latest
.checkpoint
\
--infer_feature_lst
data/test_feature.lst
\
--infer_feature_lst
data/test_feature.lst
\
--mean_var
data/global_mean_var
\
--mean_var
data/global_mean_var
\
--frame_dim
80
\
--frame_dim
80
\
...
@@ -10,9 +10,9 @@ python -u ../../infer_by_ckpt.py --batch_size 96 \
...
@@ -10,9 +10,9 @@ python -u ../../infer_by_ckpt.py --batch_size 96 \
--num_threads
24
\
--num_threads
24
\
--beam_size
11
\
--beam_size
11
\
--decode_to_path
$decode_to_path
\
--decode_to_path
$decode_to_path
\
--trans_model
mapped_decoder_data/exp/tri5a
/final.mdl
\
--trans_model
aux
/final.mdl
\
--log_prior
mapped_decoder_data
/logprior
\
--log_prior
aux
/logprior
\
--vocabulary
mapped_decoder_data/exp/tri5a
/graph/words.txt
\
--vocabulary
aux
/graph/words.txt
\
--graphs
mapped_decoder_data/exp/tri5a
/graph/HCLG.fst
\
--graphs
aux
/graph/HCLG.fst
\
--acoustic_scale
0.059
\
--acoustic_scale
0.059
\
--parallel
--parallel
fluid/DeepASR/examples/aishell/prepare_data.sh
浏览文件 @
ef4e2c54
data_dir
=
~/.cache/paddle/dataset/speech/deep_asr_data/aishell
data_dir
=
~/.cache/paddle/dataset/speech/deep_asr_data/aishell
data_url
=
'http://deep-asr-data.gz.bcebos.com/aishell_data.tar.gz'
data_url
=
'http://deep-asr-data.gz.bcebos.com/aishell_data.tar.gz'
lst_url
=
'http://deep-asr-data.gz.bcebos.com/aishell_lst.tar.gz'
lst_url
=
'http://deep-asr-data.gz.bcebos.com/aishell_lst.tar.gz'
aux_url
=
'http://deep-asr-data.gz.bcebos.com/aux.tar.gz'
md5
=
17669b8d63331c9326f4a9393d289bfb
md5
=
17669b8d63331c9326f4a9393d289bfb
aux_md5
=
50e3125eba1e3a2768a6f2e499cc1749
if
[
!
-e
$data_dir
]
;
then
if
[
!
-e
$data_dir
]
;
then
mkdir
-p
$data_dir
mkdir
-p
$data_dir
...
@@ -35,3 +37,7 @@ wget -c -P data $lst_url
...
@@ -35,3 +37,7 @@ wget -c -P data $lst_url
tar
xvf data/aishell_lst.tar.gz
-C
data
tar
xvf data/aishell_lst.tar.gz
-C
data
ln
-s
$data_dir
data/aishell
ln
-s
$data_dir
data/aishell
echo
"Download and untar aux files ..."
wget
-c
$aux_url
tar
xvf aux.tar.gz
fluid/DeepASR/examples/aishell/score_cer.sh
浏览文件 @
ef4e2c54
ref_txt
=
data/text.tes
t
ref_txt
=
aux/test.ref.tx
t
hyp_txt
=
decoding_result.txt
hyp_txt
=
decoding_result.txt
python ../../score_error_rate.py
--error_rate_type
cer
--ref
$ref_txt
--hyp
$hyp_txt
python ../../score_error_rate.py
--error_rate_type
cer
--ref
$ref_txt
--hyp
$hyp_txt
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录