Utilities for interfacing with the ETA library.
Class |
|
Wrapper for running an eta.core.learning.Model model. |
Class |
|
Meta-config class that encapsulates the configuration of an eta.core.learning.Model that is to be run via the ETAModel wrapper. |
Function | from |
Creates a fiftyone.core.labels.Classification from an eta.core.data.Attribute. |
Function | from |
Creates a fiftyone.core.labels.Classifications from a list of attributes. |
Function | from |
Creates a fiftyone.core.labels.Detection from an eta.core.objects.DetectedObject. |
Function | from |
Creates a fiftyone.core.labels.Detections from an eta.core.objects.DetectedObjectContainer. |
Function | from |
Loads the eta.core.image.ImageLabels or eta.core.frames.FrameLabels into a dictionary of labels. |
Function | from |
Creates a fiftyone.core.labels.Keypoint from an eta.core.keypoints.Keypoints. |
Function | from |
Creates a fiftyone.core.labels.Keypoints from an eta.core.keypoints.KeypointsContainer. |
Function | from |
Creates a fiftyone.core.labels.Polyline from an eta.core.polylines.Polyline. |
Function | from |
Creates a fiftyone.core.labels.Polylines from an eta.core.polylines.PolylineContainer. |
Function | from |
Creates a fiftyone.core.labels.TemporalDetection from an eta.core.events.VideoEvent. |
Function | from |
Creates a fiftyone.core.labels.TemporalDetections from an eta.core.events.VideoEventContainer. |
Function | from |
Loads the eta.core.video.VideoLabels into a frame labels dictionary. |
Function | to |
Returns an eta.core.data.Attribute representation of the fiftyone.core.labels.Classification . |
Function | to |
Returns an eta.core.objects.DetectedObject representation of the given fiftyone.core.labels.Detection . |
Function | to |
Converts the image label(s) to eta.core.image.ImageLabels format. |
Function | to |
Returns an eta.core.keypoints.Keypoints representation of the given fiftyone.core.labels.Keypoint . |
Function | to |
Returns an eta.core.polylines.Polyline representation of the given fiftyone.core.labels.Polyline . |
Function | to |
Returns an eta.core.events.VideoEvent representation of the given fiftyone.core.labels.TemporalDetection . |
Function | to |
Converts the given labels to eta.core.video.VideoLabels format. |
Function | _add |
Undocumented |
Function | _add |
Undocumented |
Function | _add |
Undocumented |
Function | _expand |
Undocumented |
Function | _expand |
Undocumented |
Function | _from |
Undocumented |
Function | _from |
Undocumented |
Function | _squeeze |
Undocumented |
Function | _to |
Undocumented |
Constant | _IMAGE |
Undocumented |
Constant | _VIDEO |
Undocumented |
Creates a fiftyone.core.labels.Classification
from an
eta.core.data.Attribute.
The attribute value is cast to a string, if necessary.
Parameters | |
attr | an eta.core.data.Attribute |
Returns | |
a fiftyone.core.labels.Classification |
Creates a fiftyone.core.labels.Classifications
from a list of
attributes.
Parameters | |
attrs | an iterable of eta.core.data.Attribute instances |
skipFalse | whether to skip non-categorical attributes (True) or cast all attribute values to strings (False) |
Returns | |
a fiftyone.core.labels.Classifications |
Creates a fiftyone.core.labels.Detection
from an
eta.core.objects.DetectedObject.
Parameters | |
dobj | a eta.core.objects.DetectedObject |
Returns | |
a fiftyone.core.labels.Detection |
Creates a fiftyone.core.labels.Detections
from an
eta.core.objects.DetectedObjectContainer.
Parameters | |
objects | a eta.core.objects.DetectedObjectContainer |
Returns | |
a fiftyone.core.labels.Detections |
Loads the eta.core.image.ImageLabels or eta.core.frames.FrameLabels into a dictionary of labels.
Provide labels_dict if you want to customize which components of the labels are expanded. Otherwise, all labels are expanded as explained below.
If multilabel is False, frame attributes will be stored in separate
Classification
fields with names prefix + attr.name.
If multilabel if True, all frame attributes will be stored in a
Classifications
field called prefix + "attributes".
Objects are expanded into fields with names prefix + obj.name, or prefix + "detections" for objects that do not have their name field populated.
Polylines are expanded into fields with names prefix + polyline.name, or prefix + "polylines" for polylines that do not have their name field populated.
Keypoints are expanded into fields with names prefix + keypoints.name, or prefix + "keypoints" for keypoints that do not have their name field populated.
Segmentation masks are expanded into a field with name prefix + "mask".
Parameters | |
image | can be a eta.core.image.ImageLabels instance, a eta.core.frames.FrameLabels instance, a serialized dict representation of either, or the path to either on disk |
prefix:None | a string prefix to prepend to each field name in the output dict |
labelsNone | a dictionary mapping names of labels to keys to assign them in the output dictionary |
multilabel:False | whether to store attributes in a single
Classifications instance |
skipFalse | whether to skip non-categorical attributes (True) or cast them to strings (False) |
Returns | |
a dict mapping names to fiftyone.core.labels.Label instances |
Creates a fiftyone.core.labels.Keypoint
from an
eta.core.keypoints.Keypoints.
Parameters | |
keypoints | an eta.core.keypoints.Keypoints |
Returns | |
a fiftyone.core.labels.Keypoint |
Creates a fiftyone.core.labels.Keypoints
from an
eta.core.keypoints.KeypointsContainer.
Parameters | |
keypoints | an eta.core.keypoints.KeypointsContainer |
Returns | |
a fiftyone.core.labels.Keypoints |
Creates a fiftyone.core.labels.Polyline
from an
eta.core.polylines.Polyline.
Parameters | |
polyline | an eta.core.polylines.Polyline |
Returns | |
a fiftyone.core.labels.Polyline |
Creates a fiftyone.core.labels.Polylines
from an
eta.core.polylines.PolylineContainer.
Parameters | |
polylines | an eta.core.polylines.PolylineContainer |
Returns | |
a fiftyone.core.labels.Polylines |
Creates a fiftyone.core.labels.TemporalDetection
from an
eta.core.events.VideoEvent.
Parameters | |
video | an eta.core.events.VideoEvent |
Returns | |
a fiftyone.core.labels.TemporalDetection |
Creates a fiftyone.core.labels.TemporalDetections
from an
eta.core.events.VideoEventContainer.
Parameters | |
video | an eta.core.events.VideoEventContainer |
Returns | |
a fiftyone.core.labels.TemporalDetections |
Loads the eta.core.video.VideoLabels into a frame labels dictionary.
Parameters | |
video | can be a eta.core.video.VideoLabels instance, a serialized dict representation of one, or the path to one on disk |
prefix:None | a string prefix to prepend to each label name in the expanded sample/frame label dictionaries |
labelsNone | a dictionary mapping names of attributes/objects in the sample labels to field names into which to expand them. By default, all sample labels are loaded |
frameNone | a dictionary mapping names of attributes/objects in the frame labels to field names into which to expand them. By default, all frame labels are loaded |
multilabel:False | whether to store attributes in a single
fiftyone.core.labels.Classifications instance |
skipFalse | whether to skip non-categorical attributes (True) or cast them to strings (False) |
Returns | |
a tuple of |
|
Returns an eta.core.data.Attribute representation of the
fiftyone.core.labels.Classification
.
Parameters | |
classification | a fiftyone.core.labels.Classification |
name:None | the name of the label field |
Returns | |
a eta.core.data.CategoricalAttribute |
Returns an eta.core.objects.DetectedObject representation of the
given fiftyone.core.labels.Detection
.
Parameters | |
detection | a fiftyone.core.labels.Detection |
name:None | the name of the label field |
extraTrue | whether to include custom attributes in the conversion |
Returns | |
an eta.core.objects.DetectedObject |
Converts the image label(s) to eta.core.image.ImageLabels format.
Parameters | |
labels | a fiftyone.core.labels.Label instance or a dict
mapping names to fiftyone.core.labels.Label instances |
warnTrue | whether to issue warnings if unsupported label values are encountered |
Returns | |
an eta.core.image.ImageLabels instance |
Returns an eta.core.keypoints.Keypoints representation of the given
fiftyone.core.labels.Keypoint
.
Parameters | |
keypoint | a fiftyone.core.labels.Keypoint |
name:None | the name of the label field |
extraTrue | whether to include custom attributes in the conversion |
Returns | |
an eta.core.keypoints.Keypoints |
Returns an eta.core.polylines.Polyline representation of the given
fiftyone.core.labels.Polyline
.
Parameters | |
polyline | a fiftyone.core.labels.Polyline |
name:None | the name of the label field |
extraTrue | whether to include custom attributes in the conversion |
Returns | |
an eta.core.polylines.Polyline |
Returns an eta.core.events.VideoEvent representation of the given
fiftyone.core.labels.TemporalDetection
.
Parameters | |
temporal | a fiftyone.core.labels.TemporalDetection |
name:None | the name of the label field |
extraTrue | whether to include custom attributes in the conversion |
Returns | |
an eta.core.events.VideoEvent |
Converts the given labels to eta.core.video.VideoLabels format.
Parameters | |
label:None | video-level labels provided as a
fiftyone.core.labels.Label instance or dict mapping field
names to fiftyone.core.labels.Label instances |
frames:None | frame-level labels provided as a dict mapping frame
numbers to dicts mapping field names to
fiftyone.core.labels.Label instances |
support:None | an optional [first, last] support to store on the returned labels |
warnTrue | whether to issue warnings if unsupported label values are encountered |
Returns | |
a eta.core.video.VideoLabels |
Undocumented
Undocumented