diff --git a/PythonAPI/pycocotools/coco.py b/PythonAPI/pycocotools/coco.py index e4182c74..d39f8583 100644 --- a/PythonAPI/pycocotools/coco.py +++ b/PythonAPI/pycocotools/coco.py @@ -238,7 +238,7 @@ def showAnns(self, anns, draw_bbox=False): """ if len(anns) == 0: return 0 - if 'segmentation' in anns[0] or 'keypoints' in anns[0]: + if 'segmentation' in anns[0] or 'keypoints' in anns[0] or 'bbox' in anns[0]: datasetType = 'instances' elif 'caption' in anns[0]: datasetType = 'captions' @@ -438,4 +438,4 @@ def annToMask(self, ann): """ rle = self.annToRLE(ann) m = maskUtils.decode(rle) - return m \ No newline at end of file + return m