Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit a7016e9

Browse files
committed
format label_image output
1 parent 2d8b235 commit a7016e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/label_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,6 @@ def load_labels(label_file):
132132
labels = load_labels(label_file)
133133

134134
print('\nEvaluation time (1-image): {:.3f}s\n'.format(end-start))
135-
135+
template = "{} (score={:0.5f})"
136136
for i in top_k:
137-
print(labels[i], results[i])
137+
print(template.format(labels[i], results[i]))

0 commit comments

Comments
 (0)