vlkit package

Subpackages

Submodules

vlkit.args module

vlkit.args.str2bool(v)[source]

vlkit.detection module

vlkit.detection.bbox2mask(bbox, size)[source]

convert bounding box to binary mask bbox: a bounding box represeting [x1, y1, x2, y2] size: size of the mask [H, W]

vlkit.detection.box_coverage(bbox, mask)[source]

coverage of a box w.r.t the GT mask bbox: a bounding box represeting [x1, y1, x2, y2] mask: the GT binary mask

vlkit.detection.visualize_bboxes(image, bboxes, width=2, color='red')[source]

vlkit.imagenet_labels module

vlkit.imagenet_labels.imagenet_labels()[source]

vlkit.semseg module

vlkit.semseg.color_encode(labelmap, colors=None)[source]
vlkit.semseg.rand_palette(num_classes=21)[source]

vlkit.utils module

Module contents