post
https://api.scale.com/v1/nucleus/dataset//model//uploadPredictions
Dataset.upload_predictions( model: Model, predictions: List[Prediction], update: bool, asynchronous: bool ) -> Union[dict, AsyncJob]
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
BoxGeometry| Key | Type | Description |
|---|---|---|
x | float (required) | The distance, in pixels, between the left border of the bounding box and the left border of the image. |
y | float (required) | The distance, in pixels, between the top border of the bounding box and the top border of the image. |
width | float (required) | The width in pixels of the annotation. |
height | float (required) | The height in pixels of the annotation. |
Definition: Point2D
Point2D| Key | Type | Description |
|---|---|---|
x | float (required) | The distance, in pixels, between the left border of the bounding box and the left border of the image. |
y | float (required) | The distance, in pixels, between the top border of the bounding box and the top border of the image. |
Definition: PolygonGeometry
PolygonGeometry| Key | Type | Description |
|---|---|---|
vertices | array of Point2D | Array of Point objects that represent vertices of the polygon. |
Definition: Point3D
Point3D| Key | Type | Description |
|---|---|---|
x | float (required) | The x coordinate of the point. |
y | float (required) | The y coordinate of the point. |
z | float (required) | The z coordinate of the point. |
Definition: CuboidGeometry
CuboidGeometry