From b7356676442214ede7a7bae22f39817d920c47b8 Mon Sep 17 00:00:00 2001 From: Cedric Luo Date: Mon, 14 Mar 2022 19:06:54 +0800 Subject: [PATCH] [Fix] fix misplaced arguments in LoadPanopticAnnotations (#7388) --- mmdet/datasets/pipelines/loading.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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.