class_docstr: Same as :class:`ILSVRC12`, but produces filenames of the images instead of nparrays.
  This could be useful when ``cv2.imread`` is a bottleneck and you want to
  decode it in smarter ways (e.g. in parallel).
class_docstr_tok: ["Same","as",":","class",":","`","ILSVRC12","`",",","but","produces","filenames","of","the","images","instead","of","nparrays",".","This","could","be","useful","when","``","cv2.imread","``","is","a","bottleneck","and","you","want","to","decode","it","in","smarter","ways","(","e.g",".","in","parallel",")","."]
docstr: Same as in :class:`ILSVRC12`.
docstr_tok: ["Same","as","in",":","class",":","`","ILSVRC12","`","."]
code: def __init__(
      self, dir, name, meta_dir=None, shuffle=None, dir_structure=None
  ):
      """
      Same as in :class:`ILSVRC12`.
      """
      assert name in ["train", "test", "val"], name
      dir = os.path.expanduser(dir)
      assert os.path.isdir(dir), dir
      self.full_dir = os.path.join(dir, name)
      self.name = name
      assert os.path.isdir(self.full_dir), self.full_dir
      assert meta_dir is None or os.path.isdir(meta_dir), meta_dir
      if shuffle is None:
          shuffle = name == "train"
      self.shuffle = shuffle
  
      if name == "train":
          dir_structure = "train"
      if dir_structure is None:
          dir_structure = ILSVRCMeta.guess_dir_structure(self.full_dir)
  
      meta = ILSVRCMeta(meta_dir)
      self.imglist = meta.get_image_list(name, dir_structure)
  
      for fname, _ in self.imglist[:10]:
          fname = os.path.join(self.full_dir, fname)
          assert os.path.isfile(fname), fname
  
imports: import numpy
  import os
  import tarfile
  import tqdm
  from pathlib import Path
  from ...utils import logger
  from ...utils.fs import download, get_dataset_path, mkdir_p
  from ...utils.loadcaffe import get_caffe_pb
  from ...utils.timer import timed_operation
  from ..base import RNGDataFlow
label_desc: Use image node_id 1 to create a new ILSVRC12Files object from inherited base classes: RNGDataFlow with example: obj = ILSVRC12Files(dir, name, meta_dir, shuffle, dir_structure)