Skip to content

Commit 3c5b074

Browse files
committed
train.py: minor update, use 'check_iter' flag for checking training logs
1 parent 08de9aa commit 3c5b074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def network_train(args):
3838
optimizer.step()
3939

4040
# print loss log and save network, loss log and output images
41-
if (iteration + 1) % 1000 == 0:
41+
if (iteration + 1) % args.check_iter == 0:
4242
loss_calculator.print_loss_seq()
4343
torch.save(network.state_dict(), args.save_path+"network.pth")
4444
torch.save(loss_calculator.loss_seq, args.save_path+"loss_seq.pth")

0 commit comments

Comments
 (0)