class FiftyOneRTDETRModel(Model): (source)
Constructor: FiftyOneRTDETRModel(config)
FiftyOne wrapper around an ultralytics.RTDETR model.
Parameters | |
config | a FiftyOneRTDETRModelConfig |
Method | __init__ |
Undocumented |
Method | predict |
Performs prediction on the given data. |
Instance Variable | config |
Undocumented |
Instance Variable | model |
Undocumented |
Property | media |
The media type processed by the model. |
Property | preprocess |
Whether to apply transforms during inference (True) or to assume that they have already been applied (False). |
Property | ragged |
True/False whether transforms may return tensors of different sizes. If True, then passing ragged lists of data to predict_all is not allowed. |
Property | transforms |
The preprocessing function that will/must be applied to each input before prediction, or None if no preprocessing is performed. |
Method | _format |
Undocumented |
Method | _load |
Undocumented |
Inherited from Model
:
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | predict |
Performs prediction on the given iterable of data. |
Method | preprocess |
Undocumented |
Property | can |
Whether this instance can generate prompt embeddings. |
Property | has |
Whether this instance can generate embeddings. |
Property | has |
Whether this instance can generate logits for its predictions. |
fiftyone.core.models.Model.predict
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 | |
arg | the data |
Returns | |
a fiftyone.core.labels.Label instance or dict of
fiftyone.core.labels.Label instances containing the
predictions |
fiftyone.core.models.Model.media_type
The media type processed by the model.
Supported values are "image" and "video".
fiftyone.core.models.Model.preprocess
Whether to apply transforms
during inference (True) or to
assume that they have already been applied (False).
True/False whether transforms
may return tensors of
different sizes. If True, then passing ragged lists of data to
predict_all
is not allowed.
fiftyone.core.models.Model.transforms
The preprocessing function that will/must be applied to each input before prediction, or None if no preprocessing is performed.