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

Commit

Permalink
Reformat messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gadcam authored Aug 30, 2018
1 parent d7ab41e commit 39d18de
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions detectron/datasets/json_dataset_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +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('Segmentation eval was ignored as annotations are undisclosed on test: {} ignored'
.format(json_dataset.name))
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 @@ -139,8 +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('Bbox eval was ignored as annotations are undisclosed on test: {} ignored'
.format(json_dataset.name))
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 @@ -341,8 +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('Keypoints evaluation was ignored as annotations are undisclosed on test:{} ignored'
.format(json_dataset.name))
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

0 comments on commit 39d18de

Please sign in to comment.