We consider zero is a positive number in this document
Every file in dataset can be opened in linux python environment
Dataset type must be same with value of '--format'
- Image file must exsist if there is corresponding annotation file.
- Each class number in annotation file must be int.
- Each class number in annotation file must be positive value.
- Each coordinate in annotation file must be positive.
- Each line in annotation file have 5 numbers.
- Each 'center_x' and 'center_y' in annotation file are equal or greater than 0.
- Each 'center_x' and 'center_y' in annotation file are less than 1.
- Each 'height' and 'width' in annotation file are equal or less than 1.
- Each 'height' and 'width' in annotation file are greater than 0.
- Image file must exsist if there is corresponding annotation information.
- Each 'images' key must exist in annotation file.
- Each 'categories' key must exist in annotation file.
- Each 'annotations' key must exist in annotation file.
- 'id' must exist for each elements of 'categories'.
- Each 'id' in 'categories' must be positive and int.
- 'id' must exist for each elements of 'images'.
- Each 'id' in 'images' must be positive and int.
- 'file_name' must exist for each elements of 'images'.
- 'width' must exist for each elements of 'images'.
- 'height' must exist for each elements of 'images'.
- 'id' must exist for each elements of 'annotations'.
- Each 'id' in 'annotations' must be positive and int.
- 'image_id' must exist for each elements of 'annotations'.
- 'bbox' must exist for each elements of 'annotations'.
- 'category_id' must exist for each elements of 'annotations'.
- Each 'category_id' in 'annotations' must be positive and int.
- Each coordinate in 'bbox' must be positive value.
- Each 'x', 'y' coordinate value in 'bbox' must be equal or greater than 0.
- Each 'width', 'height' coordinate value in 'bbox' must be greater than 0.
- Each sum of 'x' and 'width' in 'bbox' must be equal or less than corresponding image width.
- Each sum of 'y' and 'height' in 'bbox' must be equal or less than corresponding image height.
- Image file must exsist if there is corresponding annotation file.
- Each coordinate in annotation file must be positive.
- Each 'xmin' and 'ymin' in annotation file are equal or greater than 0.
- Each 'xmax' in annotation file must be greater than 'xmin'.
- Each 'xmax' in annotation file must be less than value of 'width' tag.
- Each 'ymax' in annotation file must be greater than 'ymin'.
- Each 'ymax' in annotation file must be less than value of 'height' tag.
- The 'filename' element value of the XML file should have the image file name corresponding to the label information.