class_docstr: `KITTI <http://www.cvlibs.net/datasets/kitti/eval_object.php?obj_benchmark>`_ Dataset.
  
  It corresponds to the "left color images of object" dataset, for object detection.
  
  Args:
      root (string): Root directory where images are downloaded to.
          Expects the following folder structure if download=False:
  
          .. code::
  
              <root>
                  └── Kitti
                      └─ raw
                          ├── training
                          |   ├── image_2
                          |   └── label_2
                          └── testing
                              └── image_2
      train (bool, optional): Use ``train`` split if true, else ``test`` split.
          Defaults to ``train``.
      transform (callable, optional): A function/transform that takes in a PIL image
          and returns a transformed version. E.g, ``transforms.PILToTensor``
      target_transform (callable, optional): A function/transform that takes in the
          target and transforms it.
      transforms (callable, optional): A function/transform that takes input sample
          and its target as entry and returns a transformed version.
      download (bool, optional): If true, downloads the dataset from the internet and
          puts it in root directory. If dataset is already downloaded, it is not
          downloaded again.
class_docstr_tok: ["`","KITTI","<","http",":","\/\/www.cvlibs.net\/datasets\/kitti\/eval_object.php","?","obj_benchmark",">","`","_","Dataset",".","It","corresponds","to","the","``","left","color","images","of","object","''","dataset",",","for","object","detection",".","Args",":","root","(","string",")",":","Root","directory","where","images","are","downloaded","to",".","Expects","the","following","folder","structure","if","download=False",":","..","code",":",":","<","root",">","\u2514\u2500\u2500","Kitti","\u2514\u2500","raw","\u251c\u2500\u2500","training","|","\u251c\u2500\u2500","image_2","|","\u2514\u2500\u2500","label_2","\u2514\u2500\u2500","testing","\u2514\u2500\u2500","image_2","train","(","bool",",","optional",")",":","Use","``","train","``","split","if","true",",","else","``","test","``","split",".","Defaults","to","``","train","``",".","transform","(","callable",",","optional",")",":","A","function\/transform","that","takes","in","a","PIL","image","and","returns","a","transformed","version",".","E.g",",","``","transforms.PILToTensor","``","target_transform","(","callable",",","optional",")",":","A","function\/transform","that","takes","in","the","target","and","transforms","it",".","transforms","(","callable",",","optional",")",":","A","function\/transform","that","takes","input","sample","and","its","target","as","entry","and","returns","a","transformed","version",".","download","(","bool",",","optional",")",":","If","true",",","downloads","the","dataset","from","the","internet","and","puts","it","in","root","directory",".","If","dataset","is","already","downloaded",",","it","is","not","downloaded","again","."]
docstr: Download the KITTI data if it doesn't exist already.
docstr_tok: ["Download","the","KITTI","data","if","it","does","n't","exist","already","."]
code: def download(self) -> None:
      """Download the KITTI data if it doesn't exist already."""
  
      if self._check_exists():
          return
  
      os.makedirs(self._raw_folder, exist_ok=True)
  
      # download files
      for fname in self.resources:
          download_and_extract_archive(
              url=f"{self.data_url}{fname}",
              download_root=self._raw_folder,
              filename=fname,
          )
  
file_path: vision/torchvision/datasets/kitti.py
imports: import csv
  import os
  from typing import Any, Callable, List, Optional, Tuple
  from PIL import Image
  from .utils import download_and_extract_archive
  from .vision import VisionDataset
label_desc: Use image node_id 7 for calling the Kitti obj's underlying member method code with example usage: obj.download() without return types