darknet  v3
Functions | Variables
voc_label Namespace Reference

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')
 

Function Documentation

◆ convert()

def voc_label.convert (   size,
  box 
)

Definition at line 12 of file voc_label.py.

◆ convert_annotation()

def voc_label.convert_annotation (   year,
  image_id 
)

Definition at line 25 of file voc_label.py.

Variable Documentation

◆ classes

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.

◆ image_ids

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.

◆ list_file

voc_label.list_file = open('%s_%s.txt'%(year, image_set), 'w')

Definition at line 51 of file voc_label.py.

◆ sets

list voc_label.sets = [('2012', 'train'), ('2012', 'val'), ('2007', 'train'), ('2007', 'val'), ('2007', 'test')]

Definition at line 7 of file voc_label.py.

◆ wd

voc_label.wd = getcwd()

Definition at line 45 of file voc_label.py.