dataeval.data.Targets

class dataeval.data.Targets

Dataclass defining targets for image classification or object detection.

labels

Labels (N,) for N images or objects

Type:

NDArray[np.intp]

scores

Probability scores (N, M) for N images of M classes or confidence score (N,) of objects

Type:

NDArray[np.float32]

bboxes

Bounding boxes (N, 4) for N objects in (x0, y0, x1, y1) format

Type:

NDArray[np.float32] | None

source

Source image index (N,) for N objects

Type:

NDArray[np.intp] | None

size

Count of objects

Type:

int

Return type:

int