Tools for generating color palettes of various data-sets.

pascal_voc_palette[source]

pascal_voc_palette(num_cls=None)

Generates the PASCAL Visual Object Classes (PASCAL VOC) data-set color palette. Data-Set URL: http://host.robots.ox.ac.uk/pascal/VOC/ . Original source taken from: https://gluon-cv.mxnet.io/_modules/gluoncv/utils/viz/segmentation.html .

num_cls: the number of colors to generate return: the generated color palette

ade20k_palette[source]

ade20k_palette(num_cls=None)

Generates the ADE20K data-set color palette. Data-Set URL: http://host.robots.ox.ac.uk/pascal/VOC/ Color palette definition: https://docs.google.com/spreadsheets/d/1se8YEtb2detS7OuPE86fXGyD269pMycAWe2mtKUj2W8/edit#gid=0 . Original source taken from: https://gluon-cv.mxnet.io/_modules/gluoncv/utils/viz/segmentation.html .

num_cls: the number of colors to generate return: the generated color palette

cityscapes_palette[source]

cityscapes_palette(num_cls=None)

Generates the Cityscapes data-set color palette. Data-Set URL: https://www.cityscapes-dataset.com/ Color palette definition: https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/helpers/labels.py Original source taken from: https://gluon-cv.mxnet.io/_modules/gluoncv/utils/viz/segmentation.html .

num_cls: the number of colors to generate return: the generated color palette

mhp_palette_v1[source]

mhp_palette_v1(num_cls=None)

Generates the Multi-Human Parsing (MHP) v1.0 data-set color palette. Data-Set URL: https://lv-mhp.github.io/ Color palette definition: https://lv-mhp.github.io/human_parsing_task Original source taken from: https://gluon-cv.mxnet.io/_modules/gluoncv/utils/viz/segmentation.html .

num_cls: the number of colors to generate return: the generated color palette