class_docstr: Base video dataset for VID, MOT and VIS tasks.
class_docstr_tok: ["Base","video","dataset","for","VID",",","MOT","and","VIS","tasks","."]
docstr: Get the number of all the images in this video dataset.
docstr_tok: ["Get","the","number","of","all","the","images","in","this","video","dataset","."]
code: def num_all_imgs(self):
      """Get the number of all the images in this video dataset."""
      return sum(
          [
              len(self.get_data_info(i)["images"])
              for i in range(len(self))
          ]
      )
  
file_path: mmdetection/mmdet/datasets/base_video_dataset.py
imports: import copy
  import os.path
  from collections import defaultdict
  from typing import Any, List, Tuple
  import mmengine.fileio
  from mmengine.dataset import BaseDataset
  from mmengine.logging import print_log
  from mmdet.datasets.api_wrappers import COCO
  from mmdet.registry import DATASETS
label_desc: Use image node_id 7 for calling the BaseVideoDataset obj's underlying member method code with example usage: obj.num_all_imgs() and returns: sum