![]() |
darknet
v3
|
Functions | |
| def | convert (size, box) |
| def | convert_annotation (year, image_id) |
Variables | |
| list | sets = [('2012', 'train'), ('2012', 'val'), ('2007', 'train'), ('2007', 'val'), ('2007', 'test')] |
| list | classes = ["aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", "motorbike", "person", "pottedplant", "sheep", "sofa", "train", "tvmonitor"] |
| wd = getcwd() | |
| image_ids = open('VOCdevkit/VOC%s/ImageSets/Main/%s.txt'%(year, image_set)).read().strip().split() | |
| list_file = open('%s_%s.txt'%(year, image_set), 'w') | |
| def voc_label.convert | ( | size, | |
| box | |||
| ) |
Definition at line 12 of file voc_label.py.
| def voc_label.convert_annotation | ( | year, | |
| image_id | |||
| ) |
Definition at line 25 of file voc_label.py.
| list voc_label.classes = ["aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", "motorbike", "person", "pottedplant", "sheep", "sofa", "train", "tvmonitor"] |
Definition at line 9 of file voc_label.py.
| voc_label.image_ids = open('VOCdevkit/VOC%s/ImageSets/Main/%s.txt'%(year, image_set)).read().strip().split() |
Definition at line 50 of file voc_label.py.
| voc_label.list_file = open('%s_%s.txt'%(year, image_set), 'w') |
Definition at line 51 of file voc_label.py.
| list voc_label.sets = [('2012', 'train'), ('2012', 'val'), ('2007', 'train'), ('2007', 'val'), ('2007', 'test')] |
Definition at line 7 of file voc_label.py.
| voc_label.wd = getcwd() |
Definition at line 45 of file voc_label.py.
1.8.13