Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
db96da3e
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 2 年 前同步成功
通知
210
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看板
未验证
提交
db96da3e
编写于
11月 03, 2021
作者:
H
Hui Zhang
提交者:
GitHub
11月 03, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #963 from yt605155624/fix_benchmark
[TTS]fix pwgan benchmark
上级
58b24aa4
d35daff5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
8 deletion
+8
-8
tests/benchmark/pwgan/run_all.sh
tests/benchmark/pwgan/run_all.sh
+6
-6
tests/benchmark/pwgan/run_benchmark.sh
tests/benchmark/pwgan/run_benchmark.sh
+2
-2
未找到文件。
tests/benchmark/pwgan/run_all.sh
浏览文件 @
db96da3e
...
...
@@ -25,11 +25,11 @@ fi
# 数据预处理
if
[
${
stage
}
-le
2
]
&&
[
${
stop_stage
}
-ge
2
]
;
then
python
3
paddlespeech/t2s/exps/gan_vocoder/preprocess.py
--rootdir
=
BZNSYP/
--dumpdir
=
dump
--num-cpu
=
20
--cut-sil
=
True
--dur-file
=
durations.txt
--config
=
examples/csmsc/voc1/conf/default.yaml
python
3
utils/compute_statistics.py
--metadata
=
dump/train/raw/metadata.jsonl
--field-name
=
"feats"
python
3
paddlespeech/t2s/exps/gan_vocoder/normalize.py
--metadata
=
dump/train/raw/metadata.jsonl
--dumpdir
=
dump/train/norm
--stats
=
dump/train/feats_stats.npy
python
3
paddlespeech/t2s/exps/gan_vocoder/normalize.py
--metadata
=
dump/dev/raw/metadata.jsonl
--dumpdir
=
dump/dev/norm
--stats
=
dump/train/feats_stats.npy
python
3
paddlespeech/t2s/exps/gan_vocoder/normalize.py
--metadata
=
dump/test/raw/metadata.jsonl
--dumpdir
=
dump/test/norm
--stats
=
dump/train/feats_stats.npy
python paddlespeech/t2s/exps/gan_vocoder/preprocess.py
--rootdir
=
BZNSYP/
--dumpdir
=
dump
--num-cpu
=
20
--cut-sil
=
True
--dur-file
=
durations.txt
--config
=
examples/csmsc/voc1/conf/default.yaml
python utils/compute_statistics.py
--metadata
=
dump/train/raw/metadata.jsonl
--field-name
=
"feats"
python paddlespeech/t2s/exps/gan_vocoder/normalize.py
--metadata
=
dump/train/raw/metadata.jsonl
--dumpdir
=
dump/train/norm
--stats
=
dump/train/feats_stats.npy
python paddlespeech/t2s/exps/gan_vocoder/normalize.py
--metadata
=
dump/dev/raw/metadata.jsonl
--dumpdir
=
dump/dev/norm
--stats
=
dump/train/feats_stats.npy
python paddlespeech/t2s/exps/gan_vocoder/normalize.py
--metadata
=
dump/test/raw/metadata.jsonl
--dumpdir
=
dump/test/norm
--stats
=
dump/train/feats_stats.npy
fi
# 3 批量运行(如不方便批量,1,2需放到单个模型中)
if
[
${
stage
}
-le
3
]
&&
[
${
stop_stage
}
-ge
3
]
;
then
...
...
@@ -46,7 +46,7 @@ if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
sleep
60
echo
"index is speed, 8gpus, run_mode is multi_process, begin,
${
model_name
}
"
run_mode
=
mp
CUDA_VISIBLE_DEVICES
=
0,1,2,3,4,5,6,7 bash
benchmark
/run_benchmark.sh
${
run_mode
}
${
bs_item
}
${
fp_item
}
100
${
model_mode
}
CUDA_VISIBLE_DEVICES
=
0,1,2,3,4,5,6,7 bash
tests/benchmark/pwgan
/run_benchmark.sh
${
run_mode
}
${
bs_item
}
${
fp_item
}
100
${
model_mode
}
sleep
60
done
done
...
...
tests/benchmark/pwgan/run_benchmark.sh
浏览文件 @
db96da3e
...
...
@@ -29,8 +29,8 @@ function _train(){
--run-benchmark=true"
case
${
run_mode
}
in
sp
)
train_cmd
=
"python
3
paddlespeech/t2s/exps/gan_vocoder/parallelwave_gan/train.py --nprocs=1
${
train_cmd
}
"
;;
mp
)
train_cmd
=
"python
3
paddlespeech/t2s/exps/gan_vocoder/parallelwave_gan/train.py --nprocs=8
${
train_cmd
}
"
sp
)
train_cmd
=
"python paddlespeech/t2s/exps/gan_vocoder/parallelwave_gan/train.py --nprocs=1
${
train_cmd
}
"
;;
mp
)
train_cmd
=
"python paddlespeech/t2s/exps/gan_vocoder/parallelwave_gan/train.py --nprocs=8
${
train_cmd
}
"
log_parse_file
=
"mylog/workerlog.0"
;;
*
)
echo
"choose run_mode(sp or mp)"
;
exit
1
;
esac
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录