Skip to content

Commit

Permalink
Fix loss printing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCodez committed May 29, 2019
1 parent c817ec8 commit 46ff43f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train_kitti.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def log_validation_results(engine):
loss = metrics['loss']
iou = metrics['mIoU']

pbar.log_message('Validation results - Epoch: [{}/{}]: Loss: {:.4f}, mIoU: {:.1f}'
.format(loss, engine.state.epoch, engine.state.max_epochs, iou * 100.0))
pbar.log_message('Validation results - Epoch: [{}/{}]: Loss: {:.2e}, mIoU: {:.1f}'
.format(engine.state.epoch, engine.state.max_epochs, loss, iou * 100.0))

@trainer.on(Events.EXCEPTION_RAISED)
def handle_exception(engine, e):
Expand Down

0 comments on commit 46ff43f

Please sign in to comment.