class OpenImagesEvaluationConfig(DetectionEvaluationConfig): (source)
Constructor: OpenImagesEvaluationConfig(pred_field, gt_field, iou, classwise, ...)
Open Images-style evaluation config.
Parameters | |
pred | the name of the field containing the predicted
fiftyone.core.labels.Detections ,
fiftyone.core.labels.Polylines , or
fiftyone.core.labels.Keypoints |
gt | the name of the field containing the ground truth
fiftyone.core.labels.Detections ,
fiftyone.core.labels.Polylines , or
fiftyone.core.labels.Keypoints |
iou | the IoU threshold to use to determine matches |
classwise | whether to only match objects with the same class label (True) or allow matches between classes (False) |
iscrowd | the name of the crowd attribute |
use | whether to compute IoUs using the instances masks in
the mask attribute of the provided objects, which must be
fiftyone.core.labels.Detection instances |
use | whether to compute IoUs using the bounding boxes
of the provided fiftyone.core.labels.Polyline instances
rather than using their actual geometries |
tolerance | a tolerance, in pixels, when generating approximate polylines for instance masks. Typical values are 1-3 pixels. By default, IoUs are computed directly on the dense pixel masks |
max | the maximum number of predicted objects to evaluate when computing mAP and PR curves |
error | the error level to use when manipulating instance masks or polylines. Valid values are:
If error_level > 0, any calculation that raises a geometric error will default to an IoU of 0 |
hierarchy | an optional dict containing a hierarchy of classes for evaluation following the structure {"LabelName": label, "Subcategory": [{...}, ...]} |
pos | the name of a field containing image-level
fiftyone.core.labels.Classifications that specify which
classes should be evaluated in the image |
neg | the name of a field containing image-level
fiftyone.core.labels.Classifications that specify which
classes should not be evaluated in the image |
expand | whether to expand ground truth objects and labels according to the provided hierarchy |
expand | whether to expand predicted objects and labels according to the provided hierarchy |
custom | an optional list of custom metrics to compute or dict mapping metric names to kwargs dicts |
Method | __init__ |
Undocumented |
Instance Variable | error |
Undocumented |
Instance Variable | expand |
Undocumented |
Instance Variable | expand |
Undocumented |
Instance Variable | hierarchy |
Undocumented |
Instance Variable | iscrowd |
Undocumented |
Instance Variable | max |
Undocumented |
Instance Variable | neg |
Undocumented |
Instance Variable | pos |
Undocumented |
Instance Variable | tolerance |
Undocumented |
Instance Variable | use |
Undocumented |
Instance Variable | use |
Undocumented |
Property | method |
The name of the method. |
Property | requires |
Whether fields besides pred_field and gt_field are required in order to perform evaluation. |
Instance Variable | _hierarchy |
Undocumented |
Instance Variable | _hierarchy |
Undocumented |
Inherited from DetectionEvaluationConfig
:
Instance Variable | gt |
Undocumented |
Instance Variable | pred |
Undocumented |
Property | type |
The type of run. |
Inherited from BaseRunConfig
(via DetectionEvaluationConfig
, BaseEvaluationMethodConfig
, EvaluationMethodConfig
):
Class Method | from |
Constructs a BaseRunConfig from a serialized JSON dict representation of it. |
Static Method | base |
Returns the config class for the given run type. |
Method | attributes |
Returns the list of class attributes that will be serialized by serialize . |
Method | build |
Builds the BaseRun instance associated with this config. |
Method | load |
Loads any necessary credentials from the given keyword arguments or the relevant FiftyOne config. |
Property | cls |
The fully-qualified name of this BaseRunConfig class. |
Property | run |
The BaseRun class associated with this config. |
Class Method | _virtual |
A list of attributes that are serialized but should not be treated as parameters when loading the config class from the database. |
Inherited from Config
(via DetectionEvaluationConfig
, BaseEvaluationMethodConfig
, EvaluationMethodConfig
, BaseRunConfig
):
Method | __repr__ |
Undocumented |
Undocumented
Whether fields besides pred_field and gt_field are required in order to perform evaluation.
If True then the entire samples will be loaded rather than using
select_fields()
to optimize.