Skip to main content

Open In Colab

GitHub

Supported annotations

To upload predictions in Labelbox, you need to create a predictions payload. In this section, we provide this payload for every supported prediction type.

Uploading confidence scores is optional

If you do not specify a confidence score, the prediction will be treated as if it had a confidence score of 1. Note that confidence scores are not supported for VideoObjectAnnotation objects.Nested ClassificationAnnotation objects inside of a VideoObjectAnnotation can still have a confidence score.

Bounding box

Point

Polyline

Classification: Radio (global)

Classification: Radio (frame-based)

Classification: Checklist (global)

Classification: Checklist (frame-based)

Classification: Nested radio (global)

Classification: Nested checklist (global)

Bounding box with sub-classifications (frame-based)

Text

Masks

Raster segmentation masks are not yet supported in the Model product.

End-to-end example: Upload predictions to a Model Run

Follow the steps below to upload predictions to a model run.

Before you start

You will need to import these libraries to use the code examples in this section:
Replace the value of API_KEY with a valid API key to connect to the Labelbox client.

Step 1: Import data rows into Catalog

Step 2: Create/select an ontology for your model predictions

Your project should have the correct ontology setup with all the tools and classifications supported for your predictions and the tool and classifications name should match the name fields in your predictions to ensure the correct feature schemas are matched.

Step 3: Create a Model and model run

Step 4: Send data rows to the model run

Step 5: Create the predictions payload

Create the annotations payload using the snippets of code here.

Step 6: Upload the predictions payload to the model run

Step 7: Send annotations to the model run (optional)