Skip to content

Commit 683320c

Browse files
committed
fix conflict
1 parent 0ab26ac commit 683320c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tensorflow_tts/models/melgan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@ def __init__(
376376
discriminator += [
377377
GroupConv1D(
378378
filters=out_chs,
379-
kernel_size=downsample_scale,
380-
strides=downsample_scale * 10 + 1,
379+
kernel_size=downsample_scale * 10 + 1,
380+
strides=downsample_scale,
381381
padding="same",
382382
use_bias=use_bias,
383383
groups=in_chs // 4,

tensorflow_tts/processor/ljspeech.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
class LJSpeechProcessor(object):
123123
"""LJSpeech processor."""
124124

125-
def __init__(self, data_dir, cleaner_names, target_rate=None, metadata_filename="metadata.csv"):
125+
def __init__(self, data_dir, cleaner_names, target_rate=22050, metadata_filename="metadata.csv"):
126126
self.data_dir = data_dir
127127
self.cleaner_names = cleaner_names
128128

@@ -195,4 +195,4 @@ def _arpabet_to_sequence(text):
195195

196196

197197
def _should_keep_symbol(s):
198-
return s in _symbol_to_id and s != "_" and s != "~"
198+
return s in _symbol_to_id and s != "_" and s != "~"

0 commit comments

Comments
 (0)