Recognition Version
Version object
Definition
A recognition version implements a specification: this is the link between a specification and a neural network.
Attribute | Type | Attributes | Description |
---|---|---|---|
id | int | read-only | The ID of the recognition version. |
spec_id | int | immutable | The ID of the parent recognition specification. |
network_id | int | immutable | The ID of the neural network which will cary on the computation. |
post_processings | immutable | The post-processing object that defines some network specific adjustments like the output tensor, some thresholds, etc. The length of this array must exactly match the length of the | |
spec_name | string | read-only | The name of the recognition specification corresponding to |
network_name | string | read-only | The name of the neural network corresponding to |
update_date | string | read-only | Date time (ISO 8601 format) of the creation specification version. |
Post-processing
The fields of this object are mutually exclusive: you must specify exactly one of them.
Attribute | Type | Description |
---|---|---|
classification | A post-processing of type classification for an output of type labels. | |
detection | A post-processing of type detection for an output of type labels. |
Classification post-processing
Attribute | Type | Description |
---|---|---|
thresholds | array(float) | A list of threshold for each label of the recognition specification. The label will be considered present if its score is greater than the threshold. The length of this array must exactly match the length of the |
Detection post-processing
You must specify exactly one of the anchored_output
, direct_output
or yolo_output
fields. When we specify an expected tensor size in the description of those fields, we omit the first dimension of the tensor (i.e. the batch size).
Attribute | Type | Description |
---|---|---|
thresholds | array(float) | A list of threshold for each label of the recognition specification. The label will be considered present if its score is greater than the threshold. The length of this array must exactly match the length of the |
nms_threshold | float | The Jaccard index threshold that will be applied to NMS to decide if two boxes of the same label represent the same object. |
Definition
Creates a new recognition version.
Arguments
Parameter | Type | Default | Description |
---|---|---|---|
spec_id | int | The ID of the parent recognition specification. | |
network_id | int | The ID of the neural network which will cary on the computation. | |
post_processings | The post-processing object that defines some network specific adjustments like the output tensor, some thresholds, etc. The length of this array must exactly match the length of the |
Code sample
Response
List versions
Definition
Get the list of existing recognition versions.
Code sample
Response
A paginated list of responses.
Attribute | Type | Description |
---|---|---|
count | int | The total number of results. |
next | string | The URL to the next page. |
previous | string | The URL to the previous page. |
results | array(object) | A list of your recognition version objects. Please note that the |
Retrieve a version
Definition
Retrieve a recognition version by ID.
Arguments
Parameter | Type | Default | Description |
---|---|---|---|
version_id | int | The ID of the version to retrieve. |
Code sample
Response
Delete a version
Definition
Permanently deletes a recognition version.
This cannot be undone.
Arguments
Parameter | Type | Default | Description |
version_id | int | The ID of the version to delete. |
Code sample
Response
Return 204 (no content).
Version inference
Definition
Run inference on this specification version. This endpoint returns a task ID. Please refer to the Specification Inference to have a comprehensive list of the inference request arguments and response.
Code sample
Response
A task JSON.
Last updated