class_docstr: Load mutiple types of annotations.
  
  Args:
      with_bbox (bool): Whether to parse and load the bbox annotation.
           Default: True.
      with_label (bool): Whether to parse and load the label annotation.
          Default: True.
      with_keypoints (bool): Whether to parse and load the keypoints annotation.
          Default: False.
      with_mask (bool): Whether to parse and load the mask annotation.
           Default: False.
      with_seg (bool): Whether to parse and load the semantic segmentation
          annotation. Default: False.
      poly2mask (bool): Whether to convert the instance masks from polygons
          to bitmaps. Default: True.
      file_client_args (dict): Arguments to instantiate a FileClient.
          See :class:`mmcv.fileio.FileClient` for details.
          Defaults to ``dict(backend='disk')``.
class_docstr_tok: ["Load","mutiple","types","of","annotations",".","Args",":","with_bbox","(","bool",")",":","Whether","to","parse","and","load","the","bbox","annotation",".","Default",":","True",".","with_label","(","bool",")",":","Whether","to","parse","and","load","the","label","annotation",".","Default",":","True",".","with_keypoints","(","bool",")",":","Whether","to","parse","and","load","the","keypoints","annotation",".","Default",":","False",".","with_mask","(","bool",")",":","Whether","to","parse","and","load","the","mask","annotation",".","Default",":","False",".","with_seg","(","bool",")",":","Whether","to","parse","and","load","the","semantic","segmentation","annotation",".","Default",":","False",".","poly2mask","(","bool",")",":","Whether","to","convert","the","instance","masks","from","polygons","to","bitmaps",".","Default",":","True",".","file_client_args","(","dict",")",":","Arguments","to","instantiate","a","FileClient",".","See",":","class",":","`","mmcv.fileio.FileClient","`","for","details",".","Defaults","to","``","dict","(","backend='disk","'",")","``","."]
code: def __init__(
      self,
      with_bbox=True,
      with_label=True,
      with_keypoints=False,
      with_mask=False,
      with_seg=False,
      poly2mask=True,
      file_client_args=dict(backend="disk"),
  ):
      self.with_bbox = with_bbox
      self.with_label = with_label
      self.with_keypoints = with_keypoints
      self.with_mask = with_mask
      self.with_seg = with_seg
      self.poly2mask = poly2mask
      self.file_client_args = file_client_args.copy()
      self.file_client = None
  
imports: import os.path
  import mmcv
  import numpy
  import pycocotools.mask
  from mmdet.core import BitmapMasks, PolygonMasks
  from ..builder import PIPELINES
label_desc: Use image node_id 1 to create a new LoadAnnotations object from inherited base classes: object with example: obj = LoadAnnotations(with_bbox, with_label, with_keypoints, with_mask, with_seg, poly2mask, file_client_args)