Coco

enum Coco : Enum<Coco>

This enum represents a types of COCO dataset labels. Some models are trained on the COCO dataset with 80 classes (2014), and some models are trained on the COCO dataset with 91 classes (2017). Also, sometimes labels are indexed from 1, and sometimes from 0.

Entries

V2017
Link copied to clipboard
common

COCO labels of version 2014 with 80 classes.

V2014
Link copied to clipboard
common

COCO labels of version 2014 with 80 classes.

Functions

labels
Link copied to clipboard
common
fun labels(zeroIndexed: Boolean = false): Map<Int, String>

Returns map of COCO labels according to the Coco version.

Properties

name
Link copied to clipboard
common
val name: String
ordinal
Link copied to clipboard
common
val ordinal: Int