Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
F
Fairseq-S2T
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
xuchen
Fairseq-S2T
Commits
8b97a50b
Commit
8b97a50b
authored
Aug 09, 2021
by
xuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update the shell scripts
parent
ca78c4b8
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
26 行增加
和
7 行删除
+26
-7
egs/librispeech/asr/conf/train_ctc_debug.yaml
+0
-1
egs/mustc/st/conf/train_local_attn.yaml
+5
-0
egs/mustc/st/run.sh
+14
-4
egs/mustc/st/train.sh
+7
-2
没有找到文件。
egs/librispeech/asr/conf/train_ctc_debug.yaml
查看文件 @
8b97a50b
...
...
@@ -13,7 +13,6 @@ seed: 1
report-accuracy
:
True
arch
:
s2t_transformer_s
arch
:
s2t_sate
share-decoder-input-output-embed
:
True
optimizer
:
adam
clip-norm
:
10.0
...
...
egs/mustc/st/conf/train_local_attn.yaml
0 → 100644
查看文件 @
8b97a50b
encoder-attention-type
:
local
hard-mask-window
:
20
gauss-mask-sigma
:
0
init-mask-weight
:
0
\ No newline at end of file
egs/mustc/st/run.sh
查看文件 @
8b97a50b
...
...
@@ -32,14 +32,14 @@ src_lang=en
tgt_lang
=
de
lang
=
${
src_lang
}
-
${
tgt_lang
}
dataset
=
mustc
-v2
dataset
=
mustc
task
=
speech_to_text
vocab_type
=
unigram
asr_vocab_size
=
5000
vocab_size
=
10000
share_dict
=
1
speed_perturb
=
0
lcrm
=
1
lcrm
=
0
tokenizer
=
0
use_specific_dict
=
0
...
...
@@ -53,7 +53,7 @@ data_dir=~/st/data/${dataset}/st
test_subset
=
tst-COMMON
# exp
exp_prefix
=
$
{
time
}
exp_prefix
=
$
(
date
"+%m%d"
)
extra_tag
=
extra_parameter
=
exp_tag
=
baseline
...
...
@@ -61,6 +61,8 @@ exp_name=
# config
train_config
=
train_ctc.yaml
train_config1
=
train_config2
=
# training setting
fp16
=
1
...
...
@@ -225,7 +227,15 @@ if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then
--save-dir
${
model_dir
}
--tensorboard-logdir
${
model_dir
}
"
if
[[
-n
${
extra_parameter
}
]]
;
then
if
[[
-n
${
train_config1
}
]]
;
then
cmd
=
"
${
cmd
}
--train-config1
${
train_config1
}
"
fi
if
[[
-n
${
train_config2
}
]]
;
then
cmd
=
"
${
cmd
}
--train-config2
${
train_config2
}
"
fi
if
[[
-n
${
extra_parameter
}
]]
;
then
cmd
=
"
${
cmd
}
${
extra_parameter
}
"
fi
...
...
egs/mustc/st/train.sh
查看文件 @
8b97a50b
...
...
@@ -3,8 +3,8 @@
# training the model
gpu_num
=
8
update_freq
=
2
max_tokens
=
2
0000
update_freq
=
1
max_tokens
=
4
0000
exp_name
=
extra_tag
=
...
...
@@ -28,6 +28,8 @@ train_config=train_ctc.yaml
#train_config=train_ctc_sate_conformer.yaml
#train_config=train_ctc_sate_conformer_rpr.yaml
train_config1
=
train_local_attn.yaml
cmd
=
"./run.sh
--stage 1
--stop_stage 1
...
...
@@ -37,6 +39,9 @@ cmd="./run.sh
--max_tokens
${
max_tokens
}
"
if
[[
-n
${
train_config1
}
]]
;
then
cmd
=
"
$cmd
--train_config1
${
train_config1
}
"
fi
if
[[
-n
${
exp_name
}
]]
;
then
cmd
=
"
$cmd
--exp_name
${
exp_name
}
"
fi
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论