Criterial for Object Detection Models

Provide base classes that define what is an adversarial for object detection models.

class perceptron.utils.criteria.detection.TargetClassMiss(target_class)[source]

Defines adversarials as images for which the target class is not in the detection result.

__init__(self, target_class)[source]

Initialize self. See help(type(self)) for accurate signature.

is_adversarial(self, predictions, annotation)[source]

Decides if predictions for an image are adversarial.

name(self)[source]

Return ctiterion name.

target_class(self)[source]

Return target class.