diff --git a/mmdet/datasets/pipelines/loading.py b/mmdet/datasets/pipelines/loading.py index 735b5573f02..b2e4131b028 100644 --- a/mmdet/datasets/pipelines/loading.py +++ b/mmdet/datasets/pipelines/loading.py @@ -442,9 +442,14 @@ def __init__(self, 'pip install git+https://github.com/cocodataset/' 'panopticapi.git.') - super(LoadPanopticAnnotations, - self).__init__(with_bbox, with_label, with_mask, with_seg, True, - file_client_args) + super(LoadPanopticAnnotations, self).__init__( + with_bbox=with_bbox, + with_label=with_label, + with_mask=with_mask, + with_seg=with_seg, + poly2mask=True, + denorm_bbox=False, + file_client_args=file_client_args) def _load_masks_and_semantic_segs(self, results): """Private function to load mask and semantic segmentation annotations.