Skip to main content
POST
Upload Model Predictions
Click for Python SDK
After inference is complete, you’ll want to pack the model outputs into the format Nucleus requires to begin computation on your model’s performance. This JSON schema is almost exactly the same as that of Annotations, but predictions also take in optional confidence and class_pdf key-value pairs.

Definition: BoxGeometry

Definition: Point2D

Definition: PolygonGeometry

Definition: Point3D

Definition: CuboidGeometry

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

dataset_id
string
required

The Scale-generated ID of the Dataset.

model_id
string
required

The Scale-generated ID of the Model.

Body

application/json
annotations
object[]

Array of GeometricPrediction objects to upload. One or both of annotations or segmentations must be supplied.

segmentations
object[]

Array of SegmentationPrediction objects to upload. One or both of annotations or segmentations must be supplied.

update
boolean
default:false

Whether to overwrite existing predictions upon reference_id and annotation_id collision. For category predictions, determines whether to overwrite upon taxonomy_name and reference_id collision.

Response

200

The response is of type object.