Skip to content

instancefinder

instancefinder

Module of the abstract InstanceFinder

Classes

InstanceFinder

InstanceFinder(key, min_area, max_area, threshold)

Bases: TensorMetric, ABC

Abstract class of an instance finder that finds error instances in a mask.

Source code in niceml/mlcomponents/resultanalyzers/instancefinders/instancefinder.py
def __init__(
    self,
    key: str,
    min_area: int,
    max_area: int,
    threshold: float,
):
    super().__init__(key=key)
    self.threshold = threshold
    self.max_area = max_area
    self.min_area = min_area