if ann.get("iscrowd", False): gt_bboxes_ignore.append(bbox) else: gt_bboxes.append(bbox) gt_labels.append(self.cat2label[ann["category_id"]]) if self.use_instance_mask: gt_masks.append(self.coco_api.annToMask(ann)) if self.use_keypoint: gt_keypoints.append(ann["keypoints"])
As I know "iscrowd" mean bbox should be ignored.
I think if ann.get("iscrowd", False): should change into if ann.get("iscrowd", True):
In nanodet/data/dataset/coco.py:
if ann.get("iscrowd", False): gt_bboxes_ignore.append(bbox) else: gt_bboxes.append(bbox) gt_labels.append(self.cat2label[ann["category_id"]]) if self.use_instance_mask: gt_masks.append(self.coco_api.annToMask(ann)) if self.use_keypoint: gt_keypoints.append(ann["keypoints"])
As I know "iscrowd" mean bbox should be ignored.
I think if ann.get("iscrowd", False): should change into if ann.get("iscrowd", True):