pixano.inference.providers.pixano_inference
¶
PixanoInferenceProvider(url)
¶
Bases: HTTPProvider
Provider for pixano-inference server.
This provider communicates with a pixano-inference server using its HTTP API. It translates between Pixano's types and the pixano-inference API format.
Example
Source code in pixano/inference/providers/base.py
name
property
¶
Provider name.
connect(url)
async
classmethod
¶
Connect to a pixano-inference server.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
The URL of the pixano-inference server. |
required |
Returns:
| Type | Description |
|---|---|
PixanoInferenceProvider
|
A connected PixanoInferenceProvider instance. |
Raises:
| Type | Description |
|---|---|
ProviderConnectionError
|
If connection fails. |
Source code in pixano/inference/providers/pixano_inference.py
get_capabilities()
async
¶
Return provider capabilities.
Source code in pixano/inference/providers/pixano_inference.py
get_server_info()
async
¶
Get server information.
Source code in pixano/inference/providers/pixano_inference.py
image_mask_generation(input_data, timeout=60.0)
async
¶
Generate masks for an image.
Source code in pixano/inference/providers/pixano_inference.py
image_zero_shot_detection(input_data, timeout=60.0)
async
¶
Detect objects using zero-shot detection.
Source code in pixano/inference/providers/pixano_inference.py
list_models(task=None)
async
¶
List available models.
Source code in pixano/inference/providers/pixano_inference.py
text_image_conditional_generation(input_data, timeout=60.0)
async
¶
Generate text conditioned on images.
Source code in pixano/inference/providers/pixano_inference.py
video_mask_generation(input_data, timeout=120.0)
async
¶
Generate masks for video frames.