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
class_docstr_tok: ["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 XML style ann_file.
  
  Returns:
      list[dict]: Annotation info from XML file.
docstr_tok: ["Load","annotation","from","XML","style","ann_file",".","Returns",":","list","[","dict","]",":","Annotation","info","from","XML","file","."]
code: def load_data_list(self) -> List[dict]:
      """Load annotation from XML style ann_file.
  
      Returns:
          list[dict]: Annotation info from XML file.
      """
      assert (
          self._metainfo.get("classes", None) is not None
      ), "classes in `XMLDataset` can not be None."
      self.cat2label = {
          cat: i for i, cat in enumerate(self._metainfo["classes"])
      }
  
      data_list = []
      img_ids = list_from_file(
          self.ann_file, backend_args=self.backend_args
      )
  
      # loading process takes around 10 mins
      if is_main_process():
          prog_bar = ProgressBar(len(img_ids))
  
      for img_id in img_ids:
          raw_img_info = {}
          raw_img_info["img_id"] = img_id
          raw_img_info["file_name"] = f"{img_id}.jpg"
          parsed_data_info = self.parse_data_info(raw_img_info)
          data_list.append(parsed_data_info)
  
          if is_main_process():
              prog_bar.update()
      return data_list
  
file_path: mmdetection/mmdet/datasets/wider_face.py
imports: import os.path
  import xml.etree.ElementTree
  from mmengine.dist import is_main_process
  from mmengine.fileio import get_local_path, list_from_file
  from mmengine.utils import ProgressBar
  from mmdet.registry import DATASETS
  from mmdet.utils.typing_utils import List, Union
  from .xml_style import XMLDataset
label_desc: Use image node_id 1 for calling the WIDERFaceDataset obj's underlying member method code with example usage: obj.load_data_list() and returns: data_list