datadings.sets.VOC2012 module

datadings.sets.VOC2012.bitget(byteval, idx)[source]
datadings.sets.VOC2012.class_color_map(n=256)[source]

Create class colors as per VOC devkit.

Adapted from: https://gist.github.com/wllhf/a4533e0adebe57e3ed06d4b50c8419ae

Parameters:

n – Number of classes.

Returns:

Numpy array of shape (n, 3).

datadings.sets.VOC2012.index_to_color(array)[source]
datadings.sets.VOC2012.median_frequency_weights(counts)[source]