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 5e31e00 commit 4c7ba46Copy full SHA for 4c7ba46
train.py
@@ -1043,7 +1043,7 @@ def validate(
1043
1044
batch_time_m.update(time.time() - end)
1045
end = time.time()
1046
- if should_log_to_tensorboard(args):
+ if should_log_to_tensorboard(args) and epoch is not None:
1047
#by the updates
1048
tensorboard_writer.add_scalar('val/loss', losses_m.val, epoch*last_idx+batch_idx)
1049
tensorboard_writer.add_scalar('val/acc1', top1_m.val, epoch*last_idx+batch_idx)
0 commit comments