Skip to content

Commit 2948a3b

Browse files
authored
Fix typo in clf_voc07.py
1 parent ff7fe24 commit 2948a3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/clf_voc07.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def train_test_single_svm(args):
8585
best_crossval_clf = clf
8686
best_cost = cost
8787

88-
logger.info(f"Best SVM {cls_name}: cost {best_cost}, mAP {best_crossval_ap}")
88+
logger.info(f"Best SVM {cls_name}: cost {best_cost}, mAP {best_crossval_ap * 100}")
8989
# fmt: on
9090

9191
# -------------------------------------------------------------------------
@@ -244,9 +244,9 @@ def main(_A: argparse.Namespace):
244244

245245
# Test set mAP for each class, for features from every layer.
246246
test_map = torch.tensor(pool_output).mean()
247-
logger.info(f"Iteration: {ITERATION}, mAP: {test_map}")
247+
logger.info(f"Iteration: {ITERATION}, mAP: {test_map * 100}")
248248
tensorboard_writer.add_scalars(
249-
"metrics/voc07_clf", {f"{_A.layer}_mAP": test_map}, ITERATION
249+
"metrics/voc07_clf", {f"voc07_mAP": test_map * 100}, ITERATION
250250
)
251251

252252

0 commit comments

Comments
 (0)