Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
f701882b
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看板
提交
f701882b
编写于
12月 09, 2021
作者:
小湉湉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update add_style_melgan
上级
7b2ecb6e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
10 deletion
+6
-10
paddlespeech/t2s/models/melgan/melgan.py
paddlespeech/t2s/models/melgan/melgan.py
+3
-6
paddlespeech/t2s/models/parallel_wavegan/parallel_wavegan_updater.py
...h/t2s/models/parallel_wavegan/parallel_wavegan_updater.py
+2
-2
paddlespeech/t2s/modules/residual_stack.py
paddlespeech/t2s/modules/residual_stack.py
+1
-2
未找到文件。
paddlespeech/t2s/models/melgan/melgan.py
浏览文件 @
f701882b
...
@@ -93,8 +93,7 @@ class MelGANGenerator(nn.Layer):
...
@@ -93,8 +93,7 @@ class MelGANGenerator(nn.Layer):
initialize
(
self
,
init_type
)
initialize
(
self
,
init_type
)
# for compatibility
# for compatibility
if
nonlinear_activation
==
"LeakyReLU"
:
nonlinear_activation
=
nonlinear_activation
.
lower
()
nonlinear_activation
=
"leakyrelu"
# check hyper parameters is valid
# check hyper parameters is valid
assert
channels
>=
np
.
prod
(
upsample_scales
)
assert
channels
>=
np
.
prod
(
upsample_scales
)
...
@@ -328,8 +327,7 @@ class MelGANDiscriminator(nn.Layer):
...
@@ -328,8 +327,7 @@ class MelGANDiscriminator(nn.Layer):
super
().
__init__
()
super
().
__init__
()
# for compatibility
# for compatibility
if
nonlinear_activation
==
"LeakyReLU"
:
nonlinear_activation
=
nonlinear_activation
.
lower
()
nonlinear_activation
=
"leakyrelu"
# initialize parameters
# initialize parameters
initialize
(
self
,
init_type
)
initialize
(
self
,
init_type
)
...
@@ -479,8 +477,7 @@ class MelGANMultiScaleDiscriminator(nn.Layer):
...
@@ -479,8 +477,7 @@ class MelGANMultiScaleDiscriminator(nn.Layer):
initialize
(
self
,
init_type
)
initialize
(
self
,
init_type
)
# for compatibility
# for compatibility
if
nonlinear_activation
==
"LeakyReLU"
:
nonlinear_activation
=
nonlinear_activation
.
lower
()
nonlinear_activation
=
"leakyrelu"
self
.
discriminators
=
nn
.
LayerList
()
self
.
discriminators
=
nn
.
LayerList
()
...
...
paddlespeech/t2s/models/parallel_wavegan/parallel_wavegan_updater.py
浏览文件 @
f701882b
...
@@ -10,8 +10,7 @@
...
@@ -10,8 +10,7 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations
# limitations under the License.
# under the License.
import
logging
import
logging
from
pathlib
import
Path
from
pathlib
import
Path
from
typing
import
Dict
from
typing
import
Dict
...
@@ -28,6 +27,7 @@ from paddlespeech.t2s.training.extensions.evaluator import StandardEvaluator
...
@@ -28,6 +27,7 @@ from paddlespeech.t2s.training.extensions.evaluator import StandardEvaluator
from
paddlespeech.t2s.training.reporter
import
report
from
paddlespeech.t2s.training.reporter
import
report
from
paddlespeech.t2s.training.updaters.standard_updater
import
StandardUpdater
from
paddlespeech.t2s.training.updaters.standard_updater
import
StandardUpdater
from
paddlespeech.t2s.training.updaters.standard_updater
import
UpdaterState
from
paddlespeech.t2s.training.updaters.standard_updater
import
UpdaterState
logging
.
basicConfig
(
logging
.
basicConfig
(
format
=
'%(asctime)s [%(levelname)s] [%(filename)s:%(lineno)d] %(message)s'
,
format
=
'%(asctime)s [%(levelname)s] [%(filename)s:%(lineno)d] %(message)s'
,
datefmt
=
'[%Y-%m-%d %H:%M:%S]'
)
datefmt
=
'[%Y-%m-%d %H:%M:%S]'
)
...
...
paddlespeech/t2s/modules/residual_stack.py
浏览文件 @
f701882b
...
@@ -60,8 +60,7 @@ class ResidualStack(nn.Layer):
...
@@ -60,8 +60,7 @@ class ResidualStack(nn.Layer):
"""
"""
super
().
__init__
()
super
().
__init__
()
# for compatibility
# for compatibility
if
nonlinear_activation
==
"LeakyReLU"
:
nonlinear_activation
=
nonlinear_activation
.
lower
()
nonlinear_activation
=
"leakyrelu"
# defile residual stack part
# defile residual stack part
if
not
use_causal_conv
:
if
not
use_causal_conv
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录