class DetectionEvaluation(BaseEvaluationMethod): (source)
Known subclasses: fiftyone.utils.eval.activitynet.ActivityNetEvaluation
, fiftyone.utils.eval.coco.COCOEvaluation
, fiftyone.utils.eval.openimages.OpenImagesEvaluation
Constructor: DetectionEvaluation(config)
Base class for detection evaluation methods.
Parameters | |
config | a DetectionEvaluationConfig |
Method | __init__ |
Undocumented |
Method | cleanup |
Cleans up the results of the run with the given key from the collection. |
Method | evaluate |
Evaluates the ground truth and predictions in the given document. |
Method | generate |
Generates aggregate evaluation results for the samples. |
Method | get |
Gets the fields that were involved in the given run. |
Method | register |
Registers the collection on which evaluation will be performed. |
Method | rename |
Performs any necessary operations required to rename this run's key. |
Instance Variable | gt |
Undocumented |
Instance Variable | pred |
Undocumented |
Method | _validate |
Subclass-specific validation when a run with the given key already exists. |
Inherited from BaseEvaluationMethod
:
Method | cleanup |
Undocumented |
Method | compute |
Undocumented |
Method | get |
Undocumented |
Method | rename |
Undocumented |
Method | _get |
Undocumented |
Inherited from EvaluationMethod
(via BaseEvaluationMethod
):
Class Method | run |
The BaseRunInfo class associated with this class. |
Class Method | _patch |
A function that can patch any ReferenceField issues with a dataset's runs. |
Class Method | _results |
The fiftyone.core.dataset.Dataset field that stores the results cache for these runs. |
Class Method | _run |
A string to use when referring to these runs in log messages. |
Class Method | _runs |
The fiftyone.core.odm.dataset.DatasetDocument field in which these runs are stored. |
Inherited from BaseRun
(via BaseEvaluationMethod
, EvaluationMethod
):
Class Method | delete |
Deletes the results associated with the given run key from the collection. |
Class Method | delete |
Deletes all runs from the collection. |
Class Method | get |
Gets the BaseRunInfo for the given key on the collection. |
Class Method | has |
Determines whether BaseRunResults for the given key are cached on the collection. |
Class Method | list |
Returns the list of run keys on the given collection. |
Class Method | load |
Loads the BaseRunResults for the given key on the collection. |
Class Method | load |
Loads the fiftyone.core.view.DatasetView on which the specified run was performed. |
Class Method | save |
Saves the run information on the collection. |
Class Method | save |
Saves the run results on the collection. |
Class Method | update |
Updates the BaseRunConfig for the given run on the collection. |
Class Method | update |
Replaces the key for the given run with a new key. |
Method | ensure |
Ensures that any necessary packages to execute this run are installed. |
Method | ensure |
Ensures that any necessary packages to use existing results for this run are installed. |
Method | register |
Registers a run of this method under the given key on the given collection. |
Method | validate |
Validates that the collection can accept this run. |
Class Method | _get |
Undocumented |
Class Method | _get |
Undocumented |
Class Method | _get |
Undocumented |
Method | _validate |
Undocumented |
Inherited from Configurable
(via BaseEvaluationMethod
, EvaluationMethod
, BaseRun
):
Instance Variable | config |
Undocumented |
fiftyone.core.runs.BaseRun.cleanup
Cleans up the results of the run with the given key from the collection.
Parameters | |
samples | a fiftyone.core.collections.SampleCollection |
eval | Undocumented |
key | a run key |
fiftyone.utils.eval.activitynet.ActivityNetEvaluation
, fiftyone.utils.eval.coco.COCOEvaluation
, fiftyone.utils.eval.openimages.OpenImagesEvaluation
Evaluates the ground truth and predictions in the given document.
Parameters | |
doc | a fiftyone.core.document.Document |
evalNone | the evaluation key for this evaluation |
Returns | |
a list of matched (gt_label, pred_label, iou, pred_confidence) tuples |
fiftyone.utils.eval.activitynet.ActivityNetEvaluation
, fiftyone.utils.eval.coco.COCOEvaluation
, fiftyone.utils.eval.openimages.OpenImagesEvaluation
Generates aggregate evaluation results for the samples.
Subclasses may perform additional computations here such as IoU sweeps in order to generate mAP, PR curves, etc.
Parameters | |
samples | a fiftyone.core.collections.SampleCollection |
matches | a list of (gt_label, pred_label, iou, pred_confidence, gt_id, pred_id) matches. Either label can be None to indicate an unmatched object |
evalNone | the evaluation key for this evaluation |
classes:None | the list of possible classes. If not provided, the observed ground truth/predicted labels are used for results purposes |
missing:None | a missing label string. Any unmatched objects are given this label for results purposes |
progress:None | whether to render a progress bar (True/False), use the default value fiftyone.config.show_progress_bars (None), or a progress callback function to invoke instead |
Returns | |
a DetectionResults |
fiftyone.core.runs.BaseRun.get_fields
Gets the fields that were involved in the given run.
Parameters | |
samples | a fiftyone.core.collections.SampleCollection |
eval | Undocumented |
key | a run key |
Returns | |
a list of fields |
Registers the collection on which evaluation will be performed.
This method will be called before the first call to evaluate
.
Subclasses can extend this method to perform any setup required for an
evaluation run.
Parameters | |
samples | a fiftyone.core.collections.SampleCollection |
eval | the evaluation key for this evaluation |
dynamic:True | whether to declare the dynamic object-level attributes that are populated on the dataset's schema |
fiftyone.core.runs.BaseRun.rename
Performs any necessary operations required to rename this run's key.
Parameters | |
samples | a fiftyone.core.collections.SampleCollection |
eval | Undocumented |
new | Undocumented |
key | a run key |
new | a new run key |
fiftyone.core.runs.BaseRun._validate_run
Subclass-specific validation when a run with the given key already exists.
Parameters | |
samples | a fiftyone.core.collections.SampleCollection |
eval | Undocumented |
existing | a BaseRunInfo |
key | a run key |
Raises | |
ValueError | if the run is invalid |