Improve verbose printing for training

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-06-11 11:31:04 +02:00
parent e908248f89
commit f6f6a88c50

View File

@ -498,9 +498,9 @@ def _train_epochs(nr_batches_per_epoch: int,
if verbose:
print((
f"[{epoch + 1:d}/{nr_epochs:d} - "
f"[{epoch + 1:d}/{nr_epochs:d}] - "
f"train time: {outputs['per_epoch_time']:.2f}, "
f"SSD loss: {outputs['ssd_loss']:.3f}, "
f"SSD loss: {outputs['ssd_loss']:.3f}"
))
# save weights at end of epoch