darknet  v3
Namespaces | Functions | Variables
voc_label.py File Reference

Go to the source code of this file.

Namespaces

 voc_label
 

Functions

def voc_label.convert (size, box)
 
def voc_label.convert_annotation (year, image_id)
 

Variables

list voc_label.sets = [('2012', 'train'), ('2012', 'val'), ('2007', 'train'), ('2007', 'val'), ('2007', 'test')]
 
list voc_label.classes = ["aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", "motorbike", "person", "pottedplant", "sheep", "sofa", "train", "tvmonitor"]
 
 voc_label.wd = getcwd()
 
 voc_label.image_ids = open('VOCdevkit/VOC%s/ImageSets/Main/%s.txt'%(year, image_set)).read().strip().split()
 
 voc_label.list_file = open('%s_%s.txt'%(year, image_set), 'w')