class documentation
class HasZooModel(etal.HasPublishedModel): (source)
Known subclasses: fiftyone.utils.clip.zoo.TorchCLIPModelConfig
, fiftyone.utils.open_clip.TorchOpenClipModelConfig
, fiftyone.utils.sam.SegmentAnythingModelConfig
, fiftyone.utils.sam2.SegmentAnything2ImageModelConfig
, fiftyone.utils.sam2.SegmentAnything2VideoModelConfig
, fiftyone.utils.super_gradients.TorchYoloNasModelConfig
, fiftyone.utils.transformers.FiftyOneTransformerConfig
, fiftyone.utils.ultralytics.FiftyOneYOLOModelConfig
, fiftyone.zoo.models.torch.TorchvisionImageModelConfig
Mixin class for Config classes of fiftyone.core.models.Model
instances whose models are stored in the FiftyOne Model Zoo.
This class provides the following functionality:
- The model to load can be specified either by:
- providing a
model_name
, which specifies the zoo model to load. The model will be downloaded, if necessary - providing a
model_path
, which directly specifies the path to the model to load
- providing a
fiftyone.core.models.ModelConfig
definitions that use zoo models with default deployments will have default values for any unspecified parameters loaded and applied at runtime
Parameters | |
model | the name of the zoo model to load. If this value is
provided, model_path does not need to be |
model | the path to an already downloaded zoo model on disk to
load. If this value is provided, model_name does not need to be |
Method | download |
Undocumented |
Instance Variable | model |
Undocumented |
Class Method | _get |
Undocumented |