зеркало из https://github.com/mozilla/TTS.git
Logging bug fix for evaly
This commit is contained in:
Родитель
8ae1ef72fc
Коммит
bacf5485e8
3
train.py
3
train.py
|
@ -264,7 +264,7 @@ def evaluate(model, criterion, criterion_st, data_loader, current_step):
|
||||||
# ('linear_loss', linear_loss.item()),
|
# ('linear_loss', linear_loss.item()),
|
||||||
# ('mel_loss', mel_loss.item()),
|
# ('mel_loss', mel_loss.item()),
|
||||||
# ('stop_loss', stop_loss.item())])
|
# ('stop_loss', stop_loss.item())])
|
||||||
if current_step % c.print_step == 0:
|
if num_iter % c.print_step == 0:
|
||||||
print(" | | > TotalLoss: {:.5f} LinearLoss: {:.5f} MelLoss:{:.5f} "\
|
print(" | | > TotalLoss: {:.5f} LinearLoss: {:.5f} MelLoss:{:.5f} "\
|
||||||
"StopLoss: {:.5f} ".format(loss.item(),
|
"StopLoss: {:.5f} ".format(loss.item(),
|
||||||
linear_loss.item(),
|
linear_loss.item(),
|
||||||
|
@ -319,7 +319,6 @@ def evaluate(model, criterion, criterion_st, data_loader, current_step):
|
||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
|
|
||||||
# Setup the dataset
|
|
||||||
# Setup the dataset
|
# Setup the dataset
|
||||||
train_dataset = LJSpeechDataset(os.path.join(c.data_path, 'metadata_train.csv'),
|
train_dataset = LJSpeechDataset(os.path.join(c.data_path, 'metadata_train.csv'),
|
||||||
os.path.join(c.data_path, 'wavs'),
|
os.path.join(c.data_path, 'wavs'),
|
||||||
|
|
Загрузка…
Ссылка в новой задаче