class_docstr: Dataset for V3Det.
code: def __init__(
      self,
      *args,
      metainfo: Optional[dict] = None,
      data_root: str = "",
      label_file="annotations/category_name_13204_v3det_2023_v1.txt",  # noqa
      **kwargs,
  ) -> None:
      class_names = tuple(
          mmengine.list_from_file(os.path.join(data_root, label_file))
      )
      if metainfo is None:
          metainfo = {"classes": class_names}
      super().__init__(
          *args, data_root=data_root, metainfo=metainfo, **kwargs
      )
  
file_path: mmdetection/mmdet/datasets/v3det.py
imports: import os.path
  from typing import Optional
  import mmengine
  from mmdet.registry import DATASETS
  from .coco import CocoDataset
label_desc: Use image node_id 1 to create a new V3DetDataset object from inherited base classes: CocoDataset with example: obj = V3DetDataset()