Patches views.
Class |
|
A fiftyone.core.view.DatasetView containing evaluation patches from a fiftyone.core.dataset.Dataset . |
Class |
|
A patch in an EvaluationPatchesView . |
Class |
|
A fiftyone.core.view.DatasetView of patches from a fiftyone.core.dataset.Dataset . |
Class |
|
A patch in a PatchesView . |
Function | make |
Creates a dataset based on the results of the evaluation with the given key that contains one sample for each true positive, false positive, and false negative example in the input collection, respectively. |
Function | make |
Creates a dataset that contains one sample per object patch in the specified field of the collection. |
Class | _ |
No class docstring; 0/10 property, 0/6 instance variable, 0/1 class variable, 4/19 methods documented |
Class | _ |
Undocumented |
Function | _add |
Undocumented |
Function | _get |
Undocumented |
Function | _make |
Undocumented |
Function | _make |
Undocumented |
Function | _make |
Undocumented |
Function | _merge |
Undocumented |
Function | _upgrade |
Undocumented |
Function | _write |
Undocumented |
Constant | _NO |
Undocumented |
Constant | _PATCHES |
Undocumented |
Creates a dataset based on the results of the evaluation with the given key that contains one sample for each true positive, false positive, and false negative example in the input collection, respectively.
True positive examples will result in samples with both their ground truth and predicted fields populated, while false positive/negative examples will only have one of their corresponding predicted/ground truth fields populated, respectively.
If multiple predictions are matched to a ground truth object (e.g., if the evaluation protocol includes a crowd attribute), then all matched predictions will be stored in the single sample along with the ground truth object.
The returned dataset will also have top-level type and iou fields populated based on the evaluation results for that example, as well as a sample_id field recording the sample ID of the example, and a crowd field if the evaluation protocol defines a crowd attribute.
Note
The returned dataset will contain patches for the contents of the input collection, which may differ from the view on which the eval_key evaluation was performed. This may exclude some labels that were evaluated and/or include labels that were not evaluated.
If you would like to see patches for the exact view on which an
evaluation was performed, first call
load_evaluation_view()
to load the view and then convert to patches.
Parameters | |
sample | a
fiftyone.core.collections.SampleCollection |
eval | an evaluation key that corresponds to the evaluation of
ground truth/predicted fields that are of type
fiftyone.core.labels.Detections ,
fiftyone.core.labels.Polylines , or
fiftyone.core.labels.Keypoints |
otherNone | controls whether fields other than the ground truth/predicted fields and the default sample fields are included. Can be any of the following:
|
name:None | a name for the dataset |
persistent:False | whether the dataset should persist in the database after the session terminates |
_generated | Undocumented |
Returns | |
a fiftyone.core.dataset.Dataset |
Creates a dataset that contains one sample per object patch in the specified field of the collection.
A sample_id field will be added that records the sample ID from which each patch was taken.
By default, fields other than field and the default sample fields will not be included in the returned dataset.
Parameters | |
sample | a
fiftyone.core.collections.SampleCollection |
field | the patches field, which must be of type
fiftyone.core.labels.Detections ,
fiftyone.core.labels.Polylines , or
fiftyone.core.labels.Keypoints |
otherNone | controls whether fields other than field and the default sample fields are included. Can be any of the following:
|
keepFalse | whether to store the patches in label list fields of the same type as the input collection rather than using their single label variants |
name:None | a name for the dataset |
persistent:False | whether the dataset should persist in the database after the session terminates |
_generated | Undocumented |
Returns | |
a fiftyone.core.dataset.Dataset |
Undocumented