imagenet_classes: ImageNet Class Labels

View source: R/imagenet.R

imagenet_classesR Documentation

ImageNet Class Labels

Description

Utilities for resolving ImageNet-1k class identifiers to their corresponding human readable labels. The labels are retrieved from the same source used by PyTorch's reference implementation.

Usage

imagenet_classes()

imagenet_label(id)

Arguments

id

Integer vector of 1-based class identifiers.

Value

A character vector with 1000 entries representing the ImageNet-1k class labels.

A character vector with the labels associated with id.


torchvision documentation built on Nov. 6, 2025, 9:07 a.m.