mirror of https://github.com/coqui-ai/TTS.git
fix argument order for testing models
This commit is contained in:
parent
4336e1d338
commit
85bff627c9
|
@ -38,7 +38,7 @@ class TacotronTrainTest(unittest.TestCase):
|
||||||
|
|
||||||
criterion = MSELossMasked().to(device)
|
criterion = MSELossMasked().to(device)
|
||||||
criterion_st = nn.BCEWithLogitsLoss().to(device)
|
criterion_st = nn.BCEWithLogitsLoss().to(device)
|
||||||
model = Tacotron2(24, c.r, 5).to(device)
|
model = Tacotron2(num_chars=24, r=c.r, num_speakers=5).to(device)
|
||||||
model.train()
|
model.train()
|
||||||
model_ref = copy.deepcopy(model)
|
model_ref = copy.deepcopy(model)
|
||||||
count = 0
|
count = 0
|
||||||
|
|
|
@ -45,8 +45,8 @@ class TacotronTrainTest(unittest.TestCase):
|
||||||
criterion = L1LossMasked().to(device)
|
criterion = L1LossMasked().to(device)
|
||||||
criterion_st = nn.BCEWithLogitsLoss().to(device)
|
criterion_st = nn.BCEWithLogitsLoss().to(device)
|
||||||
model = Tacotron(
|
model = Tacotron(
|
||||||
32,
|
num_chars=32,
|
||||||
5,
|
num_speakers=5,
|
||||||
linear_dim=c.audio['num_freq'],
|
linear_dim=c.audio['num_freq'],
|
||||||
mel_dim=c.audio['num_mels'],
|
mel_dim=c.audio['num_mels'],
|
||||||
r=c.r,
|
r=c.r,
|
||||||
|
|
Loading…
Reference in New Issue