pixano_inference.models.base
Base class for inference models.
BaseInferenceModel(name, provider)
Bases: ABC
Base class for inference models.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the model. |
required |
provider
|
str
|
Provider of the model. |
required |
Source code in pixano_inference/models/base.py
metadata
abstractmethod
property
Return the metadata of the model.
status
property
writable
Get the status of the model.
delete()
abstractmethod
image_mask_generation(*args, **kwargs)
image_zero_shot_detection(*args, **kwargs)
Perform zero shot detection on an image.
text_image_conditional_generation(*args, **kwargs)
Generate text from an image and a prompt.
Source code in pixano_inference/models/base.py
video_mask_generation(*args, **kwargs)
ModelStatus
Bases: Enum
Current status of the model.
Attributes: - IDLE: waiting for an input. - RUNNING: computing.