lingvo.tasks.car.evaluation_metadata module

Base class specifying metadata used in evaluation.

class lingvo.tasks.car.evaluation_metadata.EvaluationMetadata(name)[source]

Bases: object

Interface for defining metadata of dataset.

ClassNames()[source]

Returns a list of human-interpretable strings.

LabelMap()[source]

Return a label map of int -> str for each class.

NumClasses()[source]

Total number of classes for the dataset.

DifficultyLevels()[source]

Dictionary of difficulty level strings to int32 indices.

EvalClassIndices()[source]

List of int32 indices for the classes that should be evaled.

IoUThresholds()[source]

Dictionary of IoU thresholds for every evaluated class.

The keys of the dictionary are used to compute EvalClassIndices().

IgnoreClassIndices()[source]

List of int32 indices for the classes that should be ignored.

A detection that matches with a groundtruth bbox of any neighbor class will not be considered as false positive in eval.

NumberOfPrecisionRecallPoints()[source]

Number of points on the precision-recall curve.

MaximumDistance()[source]

Maximum empirically observed Euclidean distance in world coordinates.

DistanceBinWidth()[source]

The width of each bin for Euclidean distance in world coordinates.

MaximumNumberOfPoints()[source]

Maximum empirically observed number of points in bounding box.

NumberOfPointsBins()[source]

Number of logarithmically space bins for examining points.

MaximumRotation()[source]

Maximum rotation angle in world coordinates.

NumberOfRotationBins()[source]

Number of linear spaced rotations to bin.

MinHeight2D()[source]

Minimum height of detections to be evaluated.

Returns

A dictionary of difficulty level strings to ints that are height

thresholds for each level.

RecallAtPrecision()[source]

Report the recall at a given precision level..