minor
parent
1decc2473a
commit
4b93121496
|
@ -114,7 +114,7 @@ class ImageSoftmaxEngine(engine.Engine):
|
|||
losses.update(loss.item(), pids.size(0))
|
||||
accs.update(metrics.accuracy(outputs, pids)[0].item())
|
||||
|
||||
if (batch_idx+1) % print_freq==0:
|
||||
if (batch_idx+1) % print_freq == 0:
|
||||
print('Epoch: [{0}][{1}/{2}]\t'
|
||||
'Time {batch_time.val:.3f} ({batch_time.avg:.3f})\t'
|
||||
'Data {data_time.val:.3f} ({data_time.avg:.3f})\t'
|
||||
|
|
|
@ -129,7 +129,7 @@ class ImageTripletEngine(engine.Engine):
|
|||
losses_x.update(loss_x.item(), pids.size(0))
|
||||
accs.update(metrics.accuracy(outputs, pids)[0].item())
|
||||
|
||||
if (batch_idx+1) % print_freq==0:
|
||||
if (batch_idx+1) % print_freq == 0:
|
||||
print('Epoch: [{0}][{1}/{2}]\t'
|
||||
'Time {batch_time.val:.3f} ({batch_time.avg:.3f})\t'
|
||||
'Data {data_time.val:.3f} ({data_time.avg:.3f})\t'
|
||||
|
|
Loading…
Reference in New Issue