Skip to content

Commit

Permalink
[Fix] fix misplaced arguments in LoadPanopticAnnotations (#7388)
Browse files Browse the repository at this point in the history
  • Loading branch information
chhluo authored and ZwwWayne committed Mar 16, 2022
1 parent ab16260 commit c546b50
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions mmdet/datasets/pipelines/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c546b50

Please sign in to comment.