class documentation
class _HasInstance(Label): (source)
Known subclasses: fiftyone.core.labels.Detection
, fiftyone.core.labels.Keypoint
, fiftyone.core.labels.Polyline
Mixin for Label
classes that contain an instance configuration
via an instance attribute.
Contrary to the id field, which is unique to each label, the instance field is unique to each label instance either temporally or across different modalities, allowing you to identify the same logical label across different samples.
Property | instance |
The label's instance ID, or None if it does not have one. |
Inherited from Label
:
Method | delete |
Deletes the attribute with the given name. |
Method | get |
Gets the value of the attribute with the given name. |
Method | has |
Determines whether the label has an attribute with the given name. |
Method | iter |
Returns an iterator over the custom attributes of the label. |
Method | set |
Sets the value of the attribute with the given name. |