You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
423 B
Python
23 lines
423 B
Python
|
|
# Copyright (C) 2019 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
from enum import Enum
|
|
|
|
|
|
CocoAnnotationType = Enum('CocoAnnotationType', [
|
|
'instances',
|
|
'person_keypoints',
|
|
'captions',
|
|
'labels', # extension, does not exist in original COCO format
|
|
'image_info',
|
|
'panoptic',
|
|
'stuff',
|
|
])
|
|
|
|
class CocoPath:
|
|
IMAGES_DIR = 'images'
|
|
ANNOTATIONS_DIR = 'annotations'
|
|
|
|
IMAGE_EXT = '.jpg' |