File size: 970 Bytes
28c256d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

from mmdet.registry import DATASETS
from .coco import CocoDataset


@DATASETS.register_module()
class DeepFashionDataset(CocoDataset):
    """Dataset for DeepFashion."""

    METAINFO = {
        'classes': ('top', 'skirt', 'leggings', 'dress', 'outer', 'pants',
                    'bag', 'neckwear', 'headwear', 'eyeglass', 'belt',
                    'footwear', 'hair', 'skin', 'face'),
        # palette is a list of color tuples, which is used for visualization.
        'palette': [(0, 192, 64), (0, 64, 96), (128, 192, 192), (0, 64, 64),
                    (0, 192, 224), (0, 192, 192), (128, 192, 64), (0, 192, 96),
                    (128, 32, 192), (0, 0, 224), (0, 0, 64), (0, 160, 192),
                    (128, 0, 96), (128, 0, 192), (0, 32, 192)]
    }