pixano_inference.routers.tasks.image
API routes for Image tasks.
delete_mask_generation(task_id)
async
Delete a image mask generation task.
delete_zero_shot_detection(task_id)
async
Delete a image zero shot detection task.
get_mask_generation(task_id)
async
Get the result of a image mask generation task.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task_id
|
str
|
ID of the task to retrieve. |
required |
Returns:
Type | Description |
---|---|
ImageMaskGenerationResponse | CeleryTask
|
Response for image mask generation. |
Source code in pixano_inference/routers/tasks/image.py
get_zero_shot_detection(task_id)
async
Get the result of a image zero shot detection task.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task_id
|
str
|
ID of the task to retrieve. |
required |
Returns:
Type | Description |
---|---|
ImageZeroShotDetectionResponse | CeleryTask
|
Response for image zero shot detection. |
Source code in pixano_inference/routers/tasks/image.py
mask_generation(request, settings)
async
Generate mask from an image and optionnaly points and bboxes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
ImageMaskGenerationRequest
|
Request for image mask generation. |
required |
settings
|
Annotated[Settings, Depends(get_pixano_inference_settings)]
|
Settings of the app. |
required |
Returns:
Type | Description |
---|---|
CeleryTask
|
Id and status of the task. |
Source code in pixano_inference/routers/tasks/image.py
zero_shot_detection(request, settings)
async
Perform zero shot detection on an image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request
|
ImageZeroShotDetectionRequest
|
Request for image zero shot detection. |
required |
settings
|
Annotated[Settings, Depends(get_pixano_inference_settings)]
|
Settings of the app. |
required |
Returns:
Type | Description |
---|---|
CeleryTask
|
Id and status of the task. |