format module

class datumaro.plugins.voc_format.format.VocTask(value)[source]

Bases: enum.Enum

An enumeration.

classification = 1
detection = 2
segmentation = 3
action_classification = 4
person_layout = 5
class datumaro.plugins.voc_format.format.VocLabel(value)[source]

Bases: enum.Enum

An enumeration.

background = 0
aeroplane = 1
bicycle = 2
bird = 3
boat = 4
bottle = 5
bus = 6
car = 7
cat = 8
chair = 9
cow = 10
diningtable = 11
dog = 12
horse = 13
motorbike = 14
person = 15
pottedplant = 16
sheep = 17
sofa = 18
train = 19
tvmonitor = 20
ignored = 255
class datumaro.plugins.voc_format.format.VocPose(value)[source]

Bases: enum.Enum

An enumeration.

Unspecified = 1
Left = 2
Right = 3
Frontal = 4
Rear = 5
class datumaro.plugins.voc_format.format.VocBodyPart(value)[source]

Bases: enum.Enum

An enumeration.

head = 1
hand = 2
foot = 3
class datumaro.plugins.voc_format.format.VocAction(value)[source]

Bases: enum.Enum

An enumeration.

other = 1
jumping = 2
phoning = 3
playinginstrument = 4
reading = 5
ridingbike = 6
ridinghorse = 7
running = 8
takingphoto = 9
usingcomputer = 10
walking = 11
datumaro.plugins.voc_format.format.generate_colormap(length=256)[source]
class datumaro.plugins.voc_format.format.VocPath[source]

Bases: object

IMAGES_DIR = 'JPEGImages'
ANNOTATIONS_DIR = 'Annotations'
SEGMENTATION_DIR = 'SegmentationClass'
INSTANCES_DIR = 'SegmentationObject'
SUBSETS_DIR = 'ImageSets'
IMAGE_EXT = '.jpg'
SEGM_EXT = '.png'
LABELMAP_FILE = 'labelmap.txt'
TASK_DIR = {<VocTask.classification: 1>: 'Main', <VocTask.detection: 2>: 'Main', <VocTask.segmentation: 3>: 'Segmentation', <VocTask.action_classification: 4>: 'Action', <VocTask.person_layout: 5>: 'Layout'}
datumaro.plugins.voc_format.format.make_voc_label_map()[source]
datumaro.plugins.voc_format.format.parse_label_map(path)[source]
datumaro.plugins.voc_format.format.parse_meta_file(path)[source]
datumaro.plugins.voc_format.format.write_label_map(path, label_map)[source]
datumaro.plugins.voc_format.format.write_meta_file(path, label_map)[source]
datumaro.plugins.voc_format.format.make_voc_categories(label_map=None)[source]