class documentation
class OutputProcessor(object): (source)
Known subclasses: fiftyone.utils.torch.ClassifierOutputProcessor
, fiftyone.utils.torch.DetectorOutputProcessor
, fiftyone.utils.torch.InstanceSegmenterOutputProcessor
, fiftyone.utils.torch.KeypointDetectorOutputProcessor
, fiftyone.utils.torch.SemanticSegmenterOutputProcessor
, fiftyone.utils.ultralytics.UltralyticsOutputProcessor
Constructor: OutputProcessor(classes, **kwargs)
Interface for processing the outputs of Torch models.
Parameters | |
classes | the list of class labels for the model. This may not be required or used by some models |
overridden in
fiftyone.utils.torch.ClassifierOutputProcessor
, fiftyone.utils.torch.DetectorOutputProcessor
, fiftyone.utils.torch.InstanceSegmenterOutputProcessor
, fiftyone.utils.torch.KeypointDetectorOutputProcessor
, fiftyone.utils.torch.SemanticSegmenterOutputProcessor
, fiftyone.utils.ultralytics.UltralyticsOutputProcessor
Parses the model output.
Parameters | |
output | the model output for the batch of predictions |
frame | the (width, height) of the frames in the batch |
confidenceNone | an optional confidence threshold to use to filter any applicable predictions |
Returns | |
a list of fiftyone.core.labels.Label instances |