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
81caa4ca
Commit
81caa4ca
authored
Mar 29, 2021
by
xuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the speed perturb for the must-c dataset
parent
6a2f4065
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
4 行增加
和
1 行删除
+4
-1
egs/mustc/st/run.sh
+4
-0
examples/speech_to_text/prep_mustc_data.py
+0
-0
fairseq_cli/generate.py
+0
-1
没有找到文件。
egs/mustc/st/run.sh
查看文件 @
81caa4ca
...
...
@@ -41,6 +41,7 @@ share_dict=1
org_data_dir
=
/media/data/
${
dataset
}
data_dir
=
~/st/data/
${
dataset
}
/st
data_dir
=
~/st/data/
${
dataset
}
/st_perturb_2
test_subset
=(
tst-COMMON
)
# exp
...
...
@@ -104,6 +105,7 @@ if [ ${stage} -le 0 ] && [ ${stop_stage} -ge 0 ]; then
if
[[
!
-e
${
data_dir
}
/
${
lang
}
]]
;
then
mkdir
-p
${
data_dir
}
/
${
lang
}
fi
source
audio/bin/activate
cmd
=
"python
${
root_dir
}
/examples/speech_to_text/prep_mustc_data.py
--data-root
${
org_data_dir
}
...
...
@@ -118,6 +120,7 @@ if [ ${stage} -le 0 ] && [ ${stop_stage} -ge 0 ]; then
cmd
=
"python
${
root_dir
}
/examples/speech_to_text/prep_mustc_data.py
--data-root
${
org_data_dir
}
--output-root
${
data_dir
}
--speed-perturb
--task st
--add-src
--cmvn-type utterance
...
...
@@ -133,6 +136,7 @@ if [ ${stage} -le 0 ] && [ ${stop_stage} -ge 0 ]; then
echo
-e
"
\0
33[34mRun command:
\n
${
cmd
}
\0
33[0m"
[[
$eval
-eq
1
]]
&&
eval
${
cmd
}
deactivate
fi
data_dir
=
${
data_dir
}
/
${
lang
}
...
...
examples/speech_to_text/prep_mustc_data.py
查看文件 @
81caa4ca
差异被折叠。
点击展开。
fairseq_cli/generate.py
查看文件 @
81caa4ca
...
...
@@ -81,7 +81,6 @@ def _main(cfg: DictConfig, output_file):
# Load dataset splits
task
=
tasks
.
setup_task
(
cfg
.
task
)
# Set dictionaries
try
:
src_dict
=
getattr
(
task
,
"source_dictionary"
,
None
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论