We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08de9aa commit 3c5b074Copy full SHA for 3c5b074
train.py
@@ -38,7 +38,7 @@ def network_train(args):
38
optimizer.step()
39
40
# print loss log and save network, loss log and output images
41
- if (iteration + 1) % 1000 == 0:
+ if (iteration + 1) % args.check_iter == 0:
42
loss_calculator.print_loss_seq()
43
torch.save(network.state_dict(), args.save_path+"network.pth")
44
torch.save(loss_calculator.loss_seq, args.save_path+"loss_seq.pth")
0 commit comments