Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
e3dcfa88
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看板
未验证
提交
e3dcfa88
编写于
4月 25, 2023
作者:
H
Hui Zhang
提交者:
GitHub
4月 25, 2023
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3186 from PaddlePaddle/vits_pr
[TTS]update lr schedulers from per iter to per epoch for VITS
上级
7cab869d
305375c3
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
12 addition
and
10 deletion
+12
-10
examples/csmsc/vits/conf/default.yaml
examples/csmsc/vits/conf/default.yaml
+3
-3
paddlespeech/t2s/exps/vits/train.py
paddlespeech/t2s/exps/vits/train.py
+3
-5
paddlespeech/t2s/models/vits/vits_updater.py
paddlespeech/t2s/models/vits/vits_updater.py
+6
-2
未找到文件。
examples/csmsc/vits/conf/default.yaml
浏览文件 @
e3dcfa88
...
...
@@ -179,7 +179,7 @@ generator_first: False # whether to start updating generator first
# OTHER TRAINING SETTING #
##########################################################
num_snapshots
:
10
# max number of snapshots to keep while training
train_max_steps
:
350000
# Number of training steps. == total_iters / ngpus, total_iters = 1000000
save_interval_
steps
:
1000
# Interval step
s to save checkpoint.
eval_interval_
steps
:
250
# Interval steps to evaluate the network.
max_epoch
:
1000
# Number of training epochs.
save_interval_
epochs
:
1
# Interval epoch
s to save checkpoint.
eval_interval_
epochs
:
1
# Interval steps to evaluate the network.
seed
:
777
# random seed number
paddlespeech/t2s/exps/vits/train.py
浏览文件 @
e3dcfa88
...
...
@@ -230,17 +230,15 @@ def train_sp(args, config):
output_dir
=
output_dir
)
trainer
=
Trainer
(
updater
,
stop_trigger
=
(
config
.
train_max_steps
,
"iteration"
),
out
=
output_dir
)
updater
,
stop_trigger
=
(
config
.
max_epoch
,
'epoch'
),
out
=
output_dir
)
if
dist
.
get_rank
()
==
0
:
trainer
.
extend
(
evaluator
,
trigger
=
(
config
.
eval_interval_
steps
,
'iteration
'
))
evaluator
,
trigger
=
(
config
.
eval_interval_
epochs
,
'epoch
'
))
trainer
.
extend
(
VisualDL
(
output_dir
),
trigger
=
(
1
,
'iteration'
))
trainer
.
extend
(
Snapshot
(
max_size
=
config
.
num_snapshots
),
trigger
=
(
config
.
save_interval_
steps
,
'iteration
'
))
trigger
=
(
config
.
save_interval_
epochs
,
'epoch
'
))
print
(
"Trainer Done!"
)
trainer
.
run
()
...
...
paddlespeech/t2s/models/vits/vits_updater.py
浏览文件 @
e3dcfa88
...
...
@@ -166,6 +166,8 @@ class VITSUpdater(StandardUpdater):
gen_loss
.
backward
()
self
.
optimizer_g
.
step
()
# learning rate updates on each epoch.
if
self
.
state
.
iteration
%
self
.
updates_per_epoch
==
0
:
self
.
scheduler_g
.
step
()
# reset cache
...
...
@@ -202,6 +204,8 @@ class VITSUpdater(StandardUpdater):
dis_loss
.
backward
()
self
.
optimizer_d
.
step
()
# learning rate updates on each epoch.
if
self
.
state
.
iteration
%
self
.
updates_per_epoch
==
0
:
self
.
scheduler_d
.
step
()
# reset cache
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录