class_docstr: Reader for the WIDER Face dataset in PASCAL VOC format.
  
  Conversion scripts can be found in
  https://github.com/sovrasov/wider-face-pascal-voc-annotations
docstr: Load annotation from WIDERFace XML style annotation file.
  
  Args:
      ann_file (str): Path of XML file.
  
  Returns:
      list[dict]: Annotation info from XML file.
docstr_tok: ["Load","annotation","from","WIDERFace","XML","style","annotation","file",".","Args",":","ann_file","(","str",")",":","Path","of","XML","file",".","Returns",":","list","[","dict","]",":","Annotation","info","from","XML","file","."]
code: def load_annotations(self, ann_file):
      """Load annotation from WIDERFace XML style annotation file.
  
      Args:
          ann_file (str): Path of XML file.
  
      Returns:
          list[dict]: Annotation info from XML file.
      """
  
      data_infos = []
      img_ids = mmcv.list_from_file(ann_file)
      for img_id in img_ids:
          filename = f"{img_id}.jpg"
          xml_path = osp.join(
              self.img_prefix, "Annotations", f"{img_id}.xml"
          )
          tree = ET.parse(xml_path)
          root = tree.getroot()
          size = root.find("size")
          width = int(size.find("width").text)
          height = int(size.find("height").text)
          folder = root.find("folder").text
          data_infos.append(
              dict(
                  id=img_id,
                  filename=osp.join(folder, filename),
                  width=width,
                  height=height,
              )
          )
  
      return data_infos
  
file_path: insightface/detection/scrfd/mmdet/datasets/wider_face.py
imports: import os.path
  import xml.etree.ElementTree
  import mmcv
  from .builder import DATASETS
  from .xml_style import XMLDataset
label_desc: Use image node_id 2 for calling the WIDERFaceDataset obj's underlying member method code with example usage: obj.load_annotations(ann_file) and returns: data_infos