class_docstr: AVA Dataset
class_docstr_tok: ["AVA","Dataset"]
docstr: Load frame paths and annotations from files
  
  Args:
      cfg (CfgNode): config
docstr_tok: ["Load","frame","paths","and","annotations","from","files","Args",":","cfg","(","CfgNode",")",":","config"]
code: def _load_data(self, cfg):
      """
      Load frame paths and annotations from files
  
      Args:
          cfg (CfgNode): config
      """
      # Loading frame paths.
      (
          self._image_paths,
          self._video_idx_to_name,
      ) = ava_helper.load_image_lists(
          cfg, is_train=(self._split == "train")
      )
  
      # Loading annotations for boxes and labels.
      boxes_and_labels = ava_helper.load_boxes_and_labels(
          cfg, mode=self._split
      )
  
      assert len(boxes_and_labels) == len(self._image_paths)
  
      boxes_and_labels = [
          boxes_and_labels[self._video_idx_to_name[i]]
          for i in range(len(self._image_paths))
      ]
  
      # Get indices of keyframes and corresponding boxes and labels.
      (
          self._keyframe_indices,
          self._keyframe_boxes_and_labels,
      ) = ava_helper.get_keyframe_data(boxes_and_labels)
  
      # Calculate the number of used boxes.
      self._num_boxes_used = ava_helper.get_num_boxes_used(
          self._keyframe_indices, self._keyframe_boxes_and_labels
      )
  
      self.print_summary()
  
file_path: SlowFast/slowfast/datasets/ava_dataset.py
imports: import logging
  import numpy
  import torch
  from .None import ava_helper
  from .None import cv2_transform
  from .None import transform
  from .None import utils
  from .build import DATASET_REGISTRY
label_desc: Use image node_id 2 for calling the Ava obj's underlying member method code with example usage: obj._load_data(cfg) without return types