dataset_config.py 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Dataset config
  2. dataset_cfg = {
  3. 'voc': {
  4. 'data_name': 'VOCdevkit',
  5. 'num_classes': 20,
  6. 'class_indexs': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
  7. 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],
  8. 'class_names': ('aeroplane', 'bicycle', 'bird', 'boat',
  9. 'bottle', 'bus', 'car', 'cat', 'chair',
  10. 'cow', 'diningtable', 'dog', 'horse',
  11. 'motorbike', 'person', 'pottedplant',
  12. 'sheep', 'sofa', 'train', 'tvmonitor'),
  13. },
  14. 'coco':{
  15. 'data_name': 'COCO',
  16. 'num_classes': 80,
  17. 'class_indexs': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20,
  18. 21, 22, 23, 24, 25, 27, 28, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
  19. 41, 42, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58,
  20. 59, 60, 61, 62, 63, 64, 65, 67, 70, 72, 73, 74, 75, 76, 77, 78, 79,
  21. 80, 81, 82, 84, 85, 86, 87, 88, 89, 90],
  22. 'class_names': ('background',
  23. 'person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 'train', 'truck',
  24. 'boat', 'traffic light', 'fire hydrant', 'street sign', 'stop sign',
  25. 'parking meter', 'bench', 'bird', 'cat', 'dog', 'horse', 'sheep', 'cow',
  26. 'elephant', 'bear', 'zebra', 'giraffe', 'hat', 'backpack', 'umbrella',
  27. 'shoe', 'eye glasses', 'handbag', 'tie', 'suitcase', 'frisbee', 'skis',
  28. 'snowboard', 'sports ball', 'kite', 'baseball bat', 'baseball glove',
  29. 'skateboard', 'surfboard', 'tennis racket', 'bottle', 'plate', 'wine glass',
  30. 'cup', 'fork', 'knife', 'spoon', 'bowl', 'banana', 'apple', 'sandwich',
  31. 'orange', 'broccoli', 'carrot', 'hot dog', 'pizza', 'donut', 'cake', 'chair',
  32. 'couch', 'potted plant', 'bed', 'mirror', 'dining table', 'window', 'desk',
  33. 'toilet', 'door', 'tv', 'laptop', 'mouse', 'remote', 'keyboard', 'cell phone',
  34. 'microwave', 'oven', 'toaster', 'sink', 'refrigerator', 'blender', 'book',
  35. 'clock', 'vase', 'scissors', 'teddy bear', 'hair drier', 'toothbrush'),
  36. },
  37. 'widerface':{
  38. 'data_name': 'WiderFace',
  39. 'num_classes': 1,
  40. 'class_indexs': [0],
  41. 'class_names': ('face',),
  42. },
  43. 'crowdhuman':{
  44. 'data_name': 'CrowdHuman',
  45. 'num_classes': 1,
  46. 'class_indexs': [0],
  47. 'class_names': ('person',),
  48. },
  49. 'customed':{
  50. 'data_name': 'AnimalDataset',
  51. 'num_classes': 9,
  52. 'class_indexs': [0, 1, 2, 3, 4, 5, 6, 7, 8],
  53. 'class_names': ('bird', 'butterfly', 'cat', 'cow', 'dog', 'lion', 'person', 'pig', 'tiger', ),
  54. },
  55. }