Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
Warn users when eval is skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
gadcam authored Aug 16, 2018
1 parent 9387594 commit d7ab41e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions detectron/datasets/json_dataset_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def evaluate_masks(
if json_dataset.name.find('test') == -1:
coco_eval = _do_segmentation_eval(json_dataset, res_file, output_dir)
else:
logger.warning('Segmentation eval was ignored as annotations are undisclosed on test: {} ignored'
.format(json_dataset.name))
coco_eval = None
# Optionally cleanup results json file
if cleanup:
Expand Down Expand Up @@ -137,6 +139,8 @@ def evaluate_boxes(
if json_dataset.name.find('test') == -1:
coco_eval = _do_detection_eval(json_dataset, res_file, output_dir)
else:
logger.warning('Bbox eval was ignored as annotations are undisclosed on test: {} ignored'
.format(json_dataset.name))
coco_eval = None
# Optionally cleanup results json file
if cleanup:
Expand Down Expand Up @@ -337,6 +341,8 @@ def evaluate_keypoints(
if json_dataset.name.find('test') == -1:
coco_eval = _do_keypoint_eval(json_dataset, res_file, output_dir)
else:
logger.warning('Keypoints evaluation was ignored as annotations are undisclosed on test:{} ignored'
.format(json_dataset.name))
coco_eval = None
# Optionally cleanup results json file
if cleanup:
Expand Down

0 comments on commit d7ab41e

Please sign in to comment.