0a8e27413d721bf8d753e5e6061cc24f5bf6474f,train.py,,,#,917
Before Change
data_loaders = get_data_loaders(data_root, speaker_id, test_shuffle=True)
// Model
model = build_model()
print(model)
if use_cuda:
model = model.cuda()
receptive_field = model.receptive_field
print("Receptive field (samples / ms): {} / {}".format(
receptive_field, receptive_field / fs * 1000))
optimizer = optim.Adam(model.parameters(),
lr=hparams.initial_learning_rate, betas=(
hparams.adam_beta1, hparams.adam_beta2),
eps=hparams.adam_eps, weight_decay=hparams.weight_decay)
After Change
// Dataloader setup
data_loaders = get_data_loaders(data_root, speaker_id, test_shuffle=True)
device = torch.device("cuda" if use_cuda else "cpu")
// Model
model = build_model().to(device)
receptive_field = model.receptive_field
print("Receptive field (samples / ms): {} / {}".format(
receptive_field, receptive_field / fs * 1000))
optimizer = optim.Adam(model.parameters(),
lr=hparams.initial_learning_rate, betas=(
hparams.adam_beta1, hparams.adam_beta2),
eps=hparams.adam_eps, weight_decay=hparams.weight_decay,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: r9y9/wavenet_vocoder
Commit Name: 0a8e27413d721bf8d753e5e6061cc24f5bf6474f
Time: 2018-05-04
Author: zryuichi@gmail.com
File Name: train.py
Class Name:
Method Name:
Project Name: r9y9/wavenet_vocoder
Commit Name: 0a8e27413d721bf8d753e5e6061cc24f5bf6474f
Time: 2018-05-04
Author: zryuichi@gmail.com
File Name: train.py
Class Name:
Method Name:
Project Name: r9y9/deepvoice3_pytorch
Commit Name: 77b4642e9ba4ed3f9ebd9df7eed7913f3c6f20da
Time: 2018-05-03
Author: zryuichi@gmail.com
File Name: train.py
Class Name:
Method Name:
Project Name: r9y9/wavenet_vocoder
Commit Name: f3a62a8080bab4c5482887be46f54734f23e0b98
Time: 2018-05-04
Author: zryuichi@gmail.com
File Name: evaluate.py
Class Name:
Method Name: