class documentation
class COCOEvaluationConfig(DetectionEvaluationConfig): (source)
Constructor: COCOEvaluationConfig(pred_field, gt_field, iou, classwise, ...)
COCO-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 |
compute_m | whether to perform the necessary computations so that mAP, mAR, and PR curves can be generated |
iou | a list of IoU thresholds to use when computing mAP and PR curves. Only applicable when compute_mAP is True |
max | the maximum number of predicted objects to evaluate when computing mAP and PR curves. Only applicable when compute_mAP is True |
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 |
custom | an optional list of custom metrics to compute or dict mapping metric names to kwargs dicts |
Method | __init__ |
Undocumented |
Instance Variable | compute_m |
Undocumented |
Instance Variable | error |
Undocumented |
Instance Variable | iou |
Undocumented |
Instance Variable | iscrowd |
Undocumented |
Instance Variable | max |
Undocumented |
Instance Variable | tolerance |
Undocumented |
Instance Variable | use |
Undocumented |
Instance Variable | use |
Undocumented |
Property | method |
The name of the method. |
Inherited from DetectionEvaluationConfig
:
Instance Variable | gt |
Undocumented |
Instance Variable | pred |
Undocumented |
Property | requires |
Whether fields besides pred_field and gt_field are required in order to perform evaluation. |
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 |