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

Warn users when eval is skipped #624

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions detectron/datasets/json_dataset_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def evaluate_masks(
if json_dataset.name.find('test') == -1:
coco_eval = _do_segmentation_eval(json_dataset, res_file, output_dir)
else:
logger.warning(
'{} eval ignored as annotations are undisclosed on test: {} ignored'
.format("Segmentation", json_dataset.name)
)
coco_eval = None
# Optionally cleanup results json file
if cleanup:
Expand Down Expand Up @@ -137,6 +141,10 @@ def evaluate_boxes(
if json_dataset.name.find('test') == -1:
coco_eval = _do_detection_eval(json_dataset, res_file, output_dir)
else:
logger.warning(
'{} eval ignored as annotations are undisclosed on test: {} ignored'
.format("Bbox", json_dataset.name)
)
coco_eval = None
# Optionally cleanup results json file
if cleanup:
Expand Down Expand Up @@ -337,6 +345,10 @@ def evaluate_keypoints(
if json_dataset.name.find('test') == -1:
coco_eval = _do_keypoint_eval(json_dataset, res_file, output_dir)
else:
logger.warning(
'{} eval ignored as annotations are undisclosed on test: {} ignored'
.format("Keypoints", json_dataset.name)
)
coco_eval = None
# Optionally cleanup results json file
if cleanup:
Expand Down