deepfashion.py 819 B

12345678910111213141516171819
  1. # Copyright (c) OpenMMLab. All rights reserved.
  2. from mmdet.registry import DATASETS
  3. from .coco import CocoDataset
  4. @DATASETS.register_module()
  5. class DeepFashionDataset(CocoDataset):
  6. """Dataset for DeepFashion."""
  7. METAINFO = {
  8. 'classes': ('top', 'skirt', 'leggings', 'dress', 'outer', 'pants',
  9. 'bag', 'neckwear', 'headwear', 'eyeglass', 'belt',
  10. 'footwear', 'hair', 'skin', 'face'),
  11. # palette is a list of color tuples, which is used for visualization.
  12. 'palette': [(0, 192, 64), (0, 64, 96), (128, 192, 192), (0, 64, 64),
  13. (0, 192, 224), (0, 192, 192), (128, 192, 64), (0, 192, 96),
  14. (128, 32, 192), (0, 0, 224), (0, 0, 64), (0, 160, 192),
  15. (128, 0, 96), (128, 0, 192), (0, 32, 192)]
  16. }