Imagenet

enum Imagenet : Enum<Imagenet>

Type of Imagenet dataset labels. Some models are trained on the vanilla ImageNet dataset, which contains 1000 classes, but some models also output additional 'background' class.

Entries

V1001
Link copied to clipboard
common

ImageNet labels with 1001 classes, where the 0th class is 'background'.

V1k
Link copied to clipboard
common
V1k()

Vanilla ImageNet labels with 1000 classes.

Functions

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

Returns map of Imagenet labels according to the Imagenet version.

Properties

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