predictionfilter
predictionfilter ¶
Module for PredictionFilter
Classes¶
PredictionFilter ¶
Bases: ABC
Class to filter predictions
Functions¶
filter
abstractmethod
¶
Filters prediction arrays with corresponding class predictions Args: prediction_array_xywh: input predictions (n x (4 + num_classes))
Returns:
-
prediction_array_xywh
(ndarray
) –Filtered predictions (m x (4 + num_classes))
Source code in niceml/utilities/boundingboxes/filtering/predictionfilter.py
initialize ¶
Initialization method for the prediction filter
Args:
data_description: DataDescription
that can be used for initialization
Source code in niceml/utilities/boundingboxes/filtering/predictionfilter.py
to_dict ¶
Creates a representation of itself as a dict
Functions¶
get_filter_attributes ¶
Iterates the attributes of filter_class
and returns it.
Returns:
list of the attributes of filter_class
as a dict with name
and default
as keys