Skip to content

Commit 618dd57

Browse files
committed
minor fix
1 parent 249411f commit 618dd57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ def evaluate(segmentation_module, loader, args):
9696
# summary
9797
iou = intersection_meter.sum / (union_meter.sum + 1e-10)
9898
for i, _iou in enumerate(iou):
99-
print('class [{}], IoU: {}'.format(i, _iou))
99+
print('class [{}], IoU: {:.4f}'.format(i, _iou))
100100

101101
print('[Eval Summary]:')
102-
print('Mean IoU: {:.4}, Accuracy: {:.2f}%, Inference Time: {:.4}s'
102+
print('Mean IoU: {:.4f}, Accuracy: {:.2f}%, Inference Time: {:.4f}s'
103103
.format(iou.mean(), acc_meter.average()*100, time_meter.average()))
104104

105105

0 commit comments

Comments
 (0)