This commit is contained in:
Glenn Jocher 2018-09-04 14:41:52 +02:00
parent f88b2bd153
commit b04ee34035
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ def main(opt):
# optimizer = torch.optim.SGD(model.parameters(), lr=.001, momentum=.9, weight_decay=5e-4, nesterov=True)
# optimizer = torch.optim.Adam(filter(lambda p: p.requires_grad, model.parameters()))
optimizer = torch.optim.Adam(model.parameters())
#optimizer.load_state_dict(checkpoint['optimizer'])
optimizer.load_state_dict(checkpoint['optimizer'])
start_epoch = checkpoint['epoch'] + 1
best_loss = checkpoint['best_loss']