code: def __init__(self, **kwargs):
      super(VOCDataset, self).__init__(**kwargs)
      if "VOC2007" in self.img_prefix:
          self.year = 2007
      elif "VOC2012" in self.img_prefix:
          self.year = 2012
      else:
          raise ValueError("Cannot infer dataset year from img_prefix")
  
file_path: insightface/detection/scrfd/mmdet/datasets/voc.py
imports: from collections import OrderedDict
  from mmdet.core import eval_map, eval_recalls
  from .builder import DATASETS
  from .xml_style import XMLDataset
label_desc: Use image node_id 1 to create a new VOCDataset object from inherited base classes: XMLDataset with example: obj = VOCDataset()