From 89feee2a5abf10f6677c7f873f2512600e37dca7 Mon Sep 17 00:00:00 2001 From: Suraj Patni Date: Fri, 4 Nov 2022 13:19:57 +0530 Subject: [PATCH] minor correction in line no.116 Signed-off-by: Suraj Patni --- tools/testing_kitti00.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing_kitti00.py b/tools/testing_kitti00.py index 679063e..fc26541 100644 --- a/tools/testing_kitti00.py +++ b/tools/testing_kitti00.py @@ -113,7 +113,7 @@ def eval(self): true_negative = true_negative + 1 elif (not (max_idx in gt_idxes)) and max_overlap > thresh: false_positive = false_positive + 1 - elif max_idx in gt_idxes > thresh and max_overlap < thresh: + elif max_idx in gt_idxes and max_overlap < thresh: false_negative = false_negative + 1 # used_num = used_num + 1 recall = true_positive / (true_positive + false_negative+1e-4) @@ -159,4 +159,4 @@ def eval(self): data_root_folder = data_root_folder, features_folder=features_folder, ground_truth_file_name=ground_truth_file_name, pre_trained_weights=pretrained_model) - test_handler.eval() \ No newline at end of file + test_handler.eval()