Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
2dadfba1
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 1 年 前同步成功
通知
207
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
2dadfba1
编写于
9月 15, 2021
作者:
H
Hui Zhang
提交者:
GitHub
9月 15, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #828 from PaddlePaddle/seed
do not set seed since break model covergence, aishell s0 seed 10086 test ok
上级
9576643a
ec76df6c
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
23 addition
and
46 deletion
+23
-46
examples/aishell/s0/local/train.sh
examples/aishell/s0/local/train.sh
+1
-0
examples/aishell/s1/local/train.sh
examples/aishell/s1/local/train.sh
+3
-2
examples/callcenter/s1/local/train.sh
examples/callcenter/s1/local/train.sh
+3
-2
examples/librispeech/s0/local/train.sh
examples/librispeech/s0/local/train.sh
+2
-1
examples/librispeech/s1/local/train.sh
examples/librispeech/s1/local/train.sh
+3
-2
examples/librispeech/s2/local/train.sh
examples/librispeech/s2/local/train.sh
+2
-1
examples/ted_en_zh/t0/local/train.sh
examples/ted_en_zh/t0/local/train.sh
+3
-2
examples/timit/s1/local/train.sh
examples/timit/s1/local/train.sh
+2
-1
examples/tiny/s0/local/train.sh
examples/tiny/s0/local/train.sh
+2
-1
examples/tiny/s0/local/tune.sh
examples/tiny/s0/local/tune.sh
+0
-33
examples/tiny/s1/local/train.sh
examples/tiny/s1/local/train.sh
+2
-1
未找到文件。
examples/aishell/s0/local/train.sh
浏览文件 @
2dadfba1
...
...
@@ -19,6 +19,7 @@ fi
mkdir
-p
exp
# seed may break model convergence
seed
=
10086
if
[
${
seed
}
!=
0
]
;
then
export
FLAGS_cudnn_deterministic
=
True
...
...
examples/aishell/s1/local/train.sh
浏览文件 @
2dadfba1
...
...
@@ -19,8 +19,9 @@ echo "using ${device}..."
mkdir
-p
exp
seed
=
10086
if
[
${
seed
}
!=
0]
;
then
# seed may break model convergence
seed
=
0
if
[
${
seed
}
!=
0
]
;
then
export
FLAGS_cudnn_deterministic
=
True
fi
...
...
examples/callcenter/s1/local/train.sh
浏览文件 @
2dadfba1
...
...
@@ -19,8 +19,9 @@ echo "using ${device}..."
mkdir
-p
exp
seed
=
10086
if
[
${
seed
}
!=
0]
;
then
# seed may break model convergence
seed
=
0
if
[
${
seed
}
!=
0
]
;
then
export
FLAGS_cudnn_deterministic
=
True
fi
...
...
examples/librispeech/s0/local/train.sh
浏览文件 @
2dadfba1
...
...
@@ -20,7 +20,8 @@ echo "using ${device}..."
mkdir
-p
exp
seed
=
10086
# seed may break model convergence
seed
=
0
if
[
${
seed
}
!=
0
]
;
then
export
FLAGS_cudnn_deterministic
=
True
fi
...
...
examples/librispeech/s1/local/train.sh
浏览文件 @
2dadfba1
...
...
@@ -19,7 +19,8 @@ echo "using ${device}..."
mkdir
-p
exp
seed
=
10086
# seed may break model convergence
seed
=
0
if
[
${
seed
}
!=
0
]
;
then
export
FLAGS_cudnn_deterministic
=
True
fi
...
...
@@ -31,7 +32,7 @@ python3 -u ${BIN_DIR}/train.py \
--output
exp/
${
ckpt_name
}
\
--seed
${
seed
}
if
[
${
seed
}
!=
0]
;
then
if
[
${
seed
}
!=
0
]
;
then
unset
FLAGS_cudnn_deterministic
fi
...
...
examples/librispeech/s2/local/train.sh
浏览文件 @
2dadfba1
...
...
@@ -19,7 +19,8 @@ echo "using ${device}..."
mkdir
-p
exp
seed
=
10086
# seed may break model convergence
seed
=
0
if
[
${
seed
}
!=
0
]
;
then
export
FLAGS_cudnn_deterministic
=
True
fi
...
...
examples/ted_en_zh/t0/local/train.sh
浏览文件 @
2dadfba1
...
...
@@ -19,7 +19,8 @@ echo "using ${device}..."
mkdir
-p
exp
seed
=
10086
# seed may break model convergence
seed
=
0
if
[
${
seed
}
!=
0
]
;
then
export
FLAGS_cudnn_deterministic
=
True
fi
...
...
@@ -31,7 +32,7 @@ python3 -u ${BIN_DIR}/train.py \
--output
exp/
${
ckpt_name
}
\
--seed
${
seed
}
if
[
${
seed
}
!=
0
]
;
then
if
[
${
seed
}
!=
0
]
;
then
unset
FLAGS_cudnn_deterministic
fi
...
...
examples/timit/s1/local/train.sh
浏览文件 @
2dadfba1
...
...
@@ -19,7 +19,8 @@ echo "using ${device}..."
mkdir
-p
exp
seed
=
10086
# seed may break model convergence
seed
=
0
if
[
${
seed
}
!=
0
]
;
then
export
FLAGS_cudnn_deterministic
=
True
fi
...
...
examples/tiny/s0/local/train.sh
浏览文件 @
2dadfba1
...
...
@@ -19,7 +19,8 @@ fi
mkdir
-p
exp
seed
=
10086
# seed may break model convergence
seed
=
0
if
[
${
seed
}
!=
0
]
;
then
export
FLAGS_cudnn_deterministic
=
True
fi
...
...
examples/tiny/s0/local/tune.sh
已删除
100755 → 0
浏览文件 @
9576643a
#!/bin/bash
if
[
$#
!=
1
]
;
then
echo
"usage: tune ckpt_path"
exit
1
fi
# grid-search for hyper-parameters in language model
python3
-u
${
BIN_DIR
}
/tune.py
\
--device
'gpu'
\
--nproc
1
\
--config
conf/deepspeech2.yaml
\
--num_batches
=
-1
\
--batch_size
=
128
\
--beam_size
=
500
\
--num_proc_bsearch
=
12
\
--num_alphas
=
45
\
--num_betas
=
8
\
--alpha_from
=
1.0
\
--alpha_to
=
3.2
\
--beta_from
=
0.1
\
--beta_to
=
0.45
\
--cutoff_prob
=
1.0
\
--cutoff_top_n
=
40
\
--checkpoint_path
${
1
}
if
[
$?
-ne
0
]
;
then
echo
"Failed in tuning!"
exit
1
fi
exit
0
examples/tiny/s1/local/train.sh
浏览文件 @
2dadfba1
...
...
@@ -18,7 +18,8 @@ fi
mkdir
-p
exp
seed
=
10086
# seed may break model convergence
seed
=
0
if
[
${
seed
}
!=
0
]
;
then
export
FLAGS_cudnn_deterministic
=
True
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录