Skip to content

Commit

Permalink
Update script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WenmuZhou committed Jul 24, 2019
1 parent 359d09d commit 5c03174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cal_recall/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def compute_ap(confList, matchList, numGtCare):
Rectangle = namedtuple('Rectangle', 'xmin ymin xmax ymax')

gt = rrc_evaluation_funcs.load_folder_file(gtFilePath, evaluationParams['GT_SAMPLE_NAME_2_ID'])
subm = rrc_evaluation_funcs.load_folder_file(submFilePath, evaluationParams['DET_SAMPLE_NAME_2_ID'], True)
subm = rrc_evaluation_funcs.load_folder_file(submFilePath, evaluationParams['DET_SAMPLE_NAME_2_ID'])

numGlobalCareGt = 0;
numGlobalCareDet = 0;
Expand Down Expand Up @@ -321,4 +321,4 @@ def cal_recall_precison_f1(gt_path, result_path, show_result=False):
p = {'g': gt_path, 's': result_path}
result = rrc_evaluation_funcs.main_evaluation(p, default_evaluation_params, validate_data, evaluate_method,
show_result)
return result['method']
return result['method']

0 comments on commit 5c03174

Please sign in to comment.