class documentation
class TorchSamplesMixin(fom.SamplesMixin): (source)
Known subclasses: fiftyone.utils.sam.SegmentAnythingModel
Undocumented
Method | predict |
Performs prediction on the given data. |
Inherited from SamplesMixin
:
Method | __init__ |
Undocumented |
Method | needs |
Undocumented |
Method | predict |
Performs prediction on the given iterable of data. |
Property | needs |
A dict mapping model-specific keys to sample field names. |
Instance Variable | _fields |
Undocumented |
Performs prediction on the given data.
Image models should support, at minimum, processing arg values that are uint8 numpy arrays (HWC).
Video models should support, at minimum, processing arg values that are eta.core.video.VideoReader instances.
Parameters | |
img | Undocumented |
sample:None | the fiftyone.core.sample.Sample associated
with the data |
arg | the data |
Returns | |
a fiftyone.core.labels.Label instance or dict of
fiftyone.core.labels.Label instances containing the
predictions |