Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
109c1358
M
models
项目概览
PaddlePaddle
/
models
大约 2 年 前同步成功
通知
232
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看板
提交
109c1358
编写于
9月 27, 2017
作者:
Y
Yibing Liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make *.sh files more robust in DS2
上级
49b97d96
变更
26
隐藏空白更改
内联
并排
Showing
26 changed file
with
66 addition
and
66 deletion
+66
-66
deep_speech_2/examples/aishell/run_data.sh
deep_speech_2/examples/aishell/run_data.sh
+1
-1
deep_speech_2/examples/aishell/run_infer.sh
deep_speech_2/examples/aishell/run_infer.sh
+3
-3
deep_speech_2/examples/aishell/run_infer_golden.sh
deep_speech_2/examples/aishell/run_infer_golden.sh
+5
-5
deep_speech_2/examples/aishell/run_test.sh
deep_speech_2/examples/aishell/run_test.sh
+3
-3
deep_speech_2/examples/aishell/run_test_golden.sh
deep_speech_2/examples/aishell/run_test_golden.sh
+5
-5
deep_speech_2/examples/aishell/run_train.sh
deep_speech_2/examples/aishell/run_train.sh
+1
-1
deep_speech_2/examples/librispeech/run_data.sh
deep_speech_2/examples/librispeech/run_data.sh
+1
-1
deep_speech_2/examples/librispeech/run_infer.sh
deep_speech_2/examples/librispeech/run_infer.sh
+3
-3
deep_speech_2/examples/librispeech/run_infer_golden.sh
deep_speech_2/examples/librispeech/run_infer_golden.sh
+5
-5
deep_speech_2/examples/librispeech/run_test.sh
deep_speech_2/examples/librispeech/run_test.sh
+3
-3
deep_speech_2/examples/librispeech/run_test_golden.sh
deep_speech_2/examples/librispeech/run_test_golden.sh
+5
-5
deep_speech_2/examples/librispeech/run_train.sh
deep_speech_2/examples/librispeech/run_train.sh
+1
-1
deep_speech_2/examples/librispeech/run_tune.sh
deep_speech_2/examples/librispeech/run_tune.sh
+1
-1
deep_speech_2/examples/mandarin/run_demo_client.sh
deep_speech_2/examples/mandarin/run_demo_client.sh
+1
-1
deep_speech_2/examples/mandarin/run_demo_server.sh
deep_speech_2/examples/mandarin/run_demo_server.sh
+5
-5
deep_speech_2/examples/tiny/run_data.sh
deep_speech_2/examples/tiny/run_data.sh
+1
-1
deep_speech_2/examples/tiny/run_infer.sh
deep_speech_2/examples/tiny/run_infer.sh
+3
-3
deep_speech_2/examples/tiny/run_infer_golden.sh
deep_speech_2/examples/tiny/run_infer_golden.sh
+5
-5
deep_speech_2/examples/tiny/run_test.sh
deep_speech_2/examples/tiny/run_test.sh
+3
-3
deep_speech_2/examples/tiny/run_test_golden.sh
deep_speech_2/examples/tiny/run_test_golden.sh
+5
-5
deep_speech_2/examples/tiny/run_train.sh
deep_speech_2/examples/tiny/run_train.sh
+1
-1
deep_speech_2/examples/tiny/run_tune.sh
deep_speech_2/examples/tiny/run_tune.sh
+1
-1
deep_speech_2/models/aishell/download_model.sh
deep_speech_2/models/aishell/download_model.sh
+1
-1
deep_speech_2/models/librispeech/download_model.sh
deep_speech_2/models/librispeech/download_model.sh
+1
-1
deep_speech_2/models/lm/download_lm_ch.sh
deep_speech_2/models/lm/download_lm_ch.sh
+1
-1
deep_speech_2/models/lm/download_lm_en.sh
deep_speech_2/models/lm/download_lm_en.sh
+1
-1
未找到文件。
deep_speech_2/examples/aishell/run_data.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download data, generate manifests
# download data, generate manifests
PYTHONPATH
=
.:
$PYTHONPATH
python data/aishell/aishell.py
\
PYTHONPATH
=
.:
$PYTHONPATH
python data/aishell/aishell.py
\
...
...
deep_speech_2/examples/aishell/run_infer.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_ch.sh
sh download_lm_ch.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# infer
# infer
...
...
deep_speech_2/examples/aishell/run_infer_golden.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_ch.sh
sh download_lm_ch.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# download well-trained model
# download well-trained model
push
d
models/aishell
>
/dev/null
c
d
models/aishell
>
/dev/null
sh download_model.sh
sh download_model.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# infer
# infer
...
...
deep_speech_2/examples/aishell/run_test.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_ch.sh
sh download_lm_ch.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# evaluate model
# evaluate model
...
...
deep_speech_2/examples/aishell/run_test_golden.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_ch.sh
sh download_lm_ch.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# download well-trained model
# download well-trained model
push
d
models/aishell
>
/dev/null
c
d
models/aishell
>
/dev/null
sh download_model.sh
sh download_model.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# evaluate model
# evaluate model
...
...
deep_speech_2/examples/aishell/run_train.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# train model
# train model
# if you wish to resume from an exists model, uncomment --init_model_path
# if you wish to resume from an exists model, uncomment --init_model_path
...
...
deep_speech_2/examples/librispeech/run_data.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download data, generate manifests
# download data, generate manifests
PYTHONPATH
=
.:
$PYPYTHONPATH
python data/librispeech/librispeech.py
\
PYTHONPATH
=
.:
$PYPYTHONPATH
python data/librispeech/librispeech.py
\
...
...
deep_speech_2/examples/librispeech/run_infer.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_en.sh
sh download_lm_en.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# infer
# infer
...
...
deep_speech_2/examples/librispeech/run_infer_golden.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_en.sh
sh download_lm_en.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# download well-trained model
# download well-trained model
push
d
models/librispeech
>
/dev/null
c
d
models/librispeech
>
/dev/null
sh download_model.sh
sh download_model.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# infer
# infer
...
...
deep_speech_2/examples/librispeech/run_test.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_en.sh
sh download_lm_en.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# evaluate model
# evaluate model
...
...
deep_speech_2/examples/librispeech/run_test_golden.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_en.sh
sh download_lm_en.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# download well-trained model
# download well-trained model
push
d
models/librispeech
>
/dev/null
c
d
models/librispeech
>
/dev/null
sh download_model.sh
sh download_model.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# evaluate model
# evaluate model
...
...
deep_speech_2/examples/librispeech/run_train.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# train model
# train model
# if you wish to resume from an exists model, uncomment --init_model_path
# if you wish to resume from an exists model, uncomment --init_model_path
...
...
deep_speech_2/examples/librispeech/run_tune.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# grid-search for hyper-parameters in language model
# grid-search for hyper-parameters in language model
CUDA_VISIBLE_DEVICES
=
0,1,2,3
\
CUDA_VISIBLE_DEVICES
=
0,1,2,3
\
...
...
deep_speech_2/examples/mandarin/run_demo_client.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# start demo client
# start demo client
CUDA_VISIBLE_DEVICES
=
0
\
CUDA_VISIBLE_DEVICES
=
0
\
...
...
deep_speech_2/examples/mandarin/run_demo_server.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
# TODO: replace the model with a mandarin model
# TODO: replace the model with a mandarin model
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_en.sh
sh download_lm_en.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# download well-trained model
# download well-trained model
push
d
models/librispeech
>
/dev/null
c
d
models/librispeech
>
/dev/null
sh download_model.sh
sh download_model.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# start demo server
# start demo server
...
...
deep_speech_2/examples/tiny/run_data.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# prepare folder
# prepare folder
if
[
!
-e
data/tiny
]
;
then
if
[
!
-e
data/tiny
]
;
then
...
...
deep_speech_2/examples/tiny/run_infer.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_en.sh
sh download_lm_en.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# infer
# infer
...
...
deep_speech_2/examples/tiny/run_infer_golden.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_en.sh
sh download_lm_en.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# download well-trained model
# download well-trained model
push
d
models/librispeech
>
/dev/null
c
d
models/librispeech
>
/dev/null
sh download_model.sh
sh download_model.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# infer
# infer
...
...
deep_speech_2/examples/tiny/run_test.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_en.sh
sh download_lm_en.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# evaluate model
# evaluate model
...
...
deep_speech_2/examples/tiny/run_test_golden.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# download language model
# download language model
push
d
models/lm
>
/dev/null
c
d
models/lm
>
/dev/null
sh download_lm_en.sh
sh download_lm_en.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# download well-trained model
# download well-trained model
push
d
models/librispeech
>
/dev/null
c
d
models/librispeech
>
/dev/null
sh download_model.sh
sh download_model.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
exit
1
exit
1
fi
fi
popd
>
/dev/null
cd
-
>
/dev/null
# evaluate model
# evaluate model
...
...
deep_speech_2/examples/tiny/run_train.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# train model
# train model
# if you wish to resume from an exists model, uncomment --init_model_path
# if you wish to resume from an exists model, uncomment --init_model_path
...
...
deep_speech_2/examples/tiny/run_tune.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
push
d
../..
>
/dev/null
c
d
../..
>
/dev/null
# grid-search for hyper-parameters in language model
# grid-search for hyper-parameters in language model
CUDA_VISIBLE_DEVICES
=
0,1,2,3,4,5,6,7
\
CUDA_VISIBLE_DEVICES
=
0,1,2,3,4,5,6,7
\
...
...
deep_speech_2/models/aishell/download_model.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
source
../../utils/utility.sh
.
../../utils/utility.sh
URL
=
'http://cloud.dlnel.org/filepub/?uuid=6c83b9d8-3255-4adf-9726-0fe0be3d0274'
URL
=
'http://cloud.dlnel.org/filepub/?uuid=6c83b9d8-3255-4adf-9726-0fe0be3d0274'
MD5
=
28521a58552885a81cf92a1e9b133a71
MD5
=
28521a58552885a81cf92a1e9b133a71
...
...
deep_speech_2/models/librispeech/download_model.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
source
../../utils/utility.sh
.
../../utils/utility.sh
URL
=
'http://cloud.dlnel.org/filepub/?uuid=8e3cf742-2ff3-41ce-a49d-f6158cc06a23'
URL
=
'http://cloud.dlnel.org/filepub/?uuid=8e3cf742-2ff3-41ce-a49d-f6158cc06a23'
MD5
=
2ef08f8b608a7c555592161fc14d81a6
MD5
=
2ef08f8b608a7c555592161fc14d81a6
...
...
deep_speech_2/models/lm/download_lm_ch.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
source
../../utils/utility.sh
.
../../utils/utility.sh
URL
=
http://cloud.dlnel.org/filepub/?uuid
=
d21861e4-4ed6-45bb-ad8e-ae417a43195e
URL
=
http://cloud.dlnel.org/filepub/?uuid
=
d21861e4-4ed6-45bb-ad8e-ae417a43195e
MD5
=
"29e02312deb2e59b3c8686c7966d4fe3"
MD5
=
"29e02312deb2e59b3c8686c7966d4fe3"
...
...
deep_speech_2/models/lm/download_lm_en.sh
浏览文件 @
109c1358
#! /usr/bin/env bash
#! /usr/bin/env bash
source
../../utils/utility.sh
.
../../utils/utility.sh
URL
=
http://paddlepaddle.bj.bcebos.com/model_zoo/speech/common_crawl_00.prune01111.trie.klm
URL
=
http://paddlepaddle.bj.bcebos.com/model_zoo/speech/common_crawl_00.prune01111.trie.klm
MD5
=
"099a601759d467cd0a8523ff939819c5"
MD5
=
"099a601759d467cd0a8523ff939819c5"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录