Skip to content

Kind Batch[keypoint_detection_prediction]

'predictions' key from Keypoint Detection Model output

Details

This kind represents batch of predictions from Keypoint Detection Models.

Example:

# Each prediction in batch is list of dictionaries that contains detected objects (detections) and list of points of 
object skeleton. 
[
    [
        {"x": 300, "y": 400, "width": 100, "height" 50, "confidence": 0.3, "class": "car", "class_id": 0.1, "detection_id": "random-uuid", "keypoints": [{"x": 300, "y": 200, "confidence": 0.3, "class_id": 0, "class_name": "tire_center"}]},
        {"x": 600, "y": 900, "width": 100, "height" 50, "confidence": 0.3, "class": "car", "class_id": 0.1, "detection_id": "random-uuid", "keypoints": [{"x": 300, "y": 200, "confidence": 0.3, "class_id": 0, "class_name": "tire_center"}}
    ],
    [
        {"x": 300, "y": 400, "width": 100, "height" 50, "confidence": 0.3, "class": "car", "class_id": 0.1, "detection_id": "random-uuid", "keypoints": [{"x": 300, "y": 200, "confidence": 0.3, "class_id": 0, "class_name": "tire_center"}},
        {"x": 600, "y": 900, "width": 100, "height" 50, "confidence": 0.3, "class": "car", "class_id": 0.1, "detection_id": "random-uuid", "keypoints": [{"x": 300, "y": 200, "confidence": 0.3, "class_id": 0, "class_name": "tire_center"}}
    ]
]

Important note:

When you see Batch[<A>] in a name, it means that each group of data, called a batch, will contain elements of type <A>. This also implies that if there are multiple inputs or outputs for a batch-wise operation, they will maintain the same order of elements within each batch.