cleanup train.py
This commit is contained in:
parent
0cc8f2be01
commit
e7cd5d01c4
4
train.py
4
train.py
|
@ -156,8 +156,8 @@ def main(opt):
|
||||||
s = ('%10s%10s' + '%10.3g' * 14) % (
|
s = ('%10s%10s' + '%10.3g' * 14) % (
|
||||||
'%g/%g' % (epoch, opt.epochs - 1), '%g/%g' % (i, len(dataloader) - 1), rloss['x'],
|
'%g/%g' % (epoch, opt.epochs - 1), '%g/%g' % (i, len(dataloader) - 1), rloss['x'],
|
||||||
rloss['y'], rloss['w'], rloss['h'], rloss['conf'], rloss['cls'],
|
rloss['y'], rloss['w'], rloss['h'], rloss['conf'], rloss['cls'],
|
||||||
rloss['loss'], mean_precision, mean_recall, model.losses['nT'], TP.sum(),
|
rloss['loss'], mean_precision, mean_recall, model.losses['nT'], rloss['TP'],
|
||||||
FP.sum(), FN.sum(), time.time() - t1)
|
rloss['FP'], rloss['FN'], time.time() - t1)
|
||||||
t1 = time.time()
|
t1 = time.time()
|
||||||
print(s)
|
print(s)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue