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","."]
docstr: Validate labels.
docstr_tok: ["Validate","labels","."]
code: def _validate_label(self, xmin, ymin, xmax, ymax, width, height):
      """Validate labels."""
      assert 0 <= xmin < width, "xmin must in [0, {}), given {}".format(
          width, xmin
      )
      assert (
          0 <= ymin < height
      ), "ymin must in [0, {}), given {}".format(height, ymin)
      assert (
          xmin < xmax <= width
      ), "xmax must in (xmin, {}], given {}".format(width, xmax)
      assert (
          ymin < ymax <= height
      ), "ymax must in (ymin, {}], given {}".format(height, ymax)
  
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 8 for calling the VisDroneDetection obj's underlying member method code with example usage: obj._validate_label(xmin, ymin, xmax, ymax, width, height) without return types