class_docstr: VisDrone2019-DET Dataset.
  
  Parameters
  ----------
  root : str, default '~/mxnet/datasets/visdrone'
      Path to folder storing the dataset.
  splits : list of str, default ['train']
      Candidates can be: train, val.
  transform : callable, default None
      A function that takes data and label and transforms them. Refer to
      :doc:`./transforms` for examples.
  
      A transform function for object detection should take label into consideration,
      because any geometric modification will require label to be modified.
class_docstr_tok: ["VisDrone2019-DET","Dataset",".","Parameters","--","--","--","--","--","root",":","str",",","default","'~\/mxnet\/datasets\/visdrone'","Path","to","folder","storing","the","dataset",".","splits",":","list","of","str",",","default","[","'train","'","]","Candidates","can","be",":","train",",","val",".","transform",":","callable",",","default","None","A","function","that","takes","data","and","label","and","transforms","them",".","Refer","to",":","doc",":","`",".\/transforms","`","for","examples",".","A","transform","function","for","object","detection","should","take","label","into","consideration",",","because","any","geometric","modification","will","require","label","to","be","modified","."]
code: def __init__(
      self,
      root=os.path.join("~", ".mxnet", "datasets", "visdrone"),
      splits=("train",),
      transform=None,
  ):
      super(VisDroneDetection, self).__init__(root)
      self._im_shapes = {}
      self._root = os.path.expanduser(root)
      self._transform = transform
      self._splits = splits
      self._anno_path = os.path.join("{}", "annotations", "{}.txt")
      self._image_path = os.path.join("{}", "images", "{}.jpg")
      self._images_dir = os.path.join("{}", "images")
      self._items = self._load_items(self._splits)
      self.num_classes = len(self.CLASSES)
      self.index_map = dict(zip(self.CLASSES, range(self.num_class)))
  
file_path: gluon-cv/gluoncv/data/visdrone/detection.py
imports: from __future__ import absolute_import
  from __future__ import division
  import os
  import logging
  import numpy
  import mxnet
  from ..base import VisionDataset
label_desc: Use image node_id 1 to create a new VisDroneDetection object from inherited base classes: VisionDataset with example: obj = VisDroneDetection(root, splits, transform)