Create TrainedModel

A TrainedModel is a record that holds a set of weights that can be loaded by a model when starting a RunningSession

post/trained_models

Request

  • Base URL
    https://darwin.v7labs.com/ai
  • URL
    https://darwin.v7labs.com/ai/trained_models
  • Auth
    API key in header Authorization

Request body

model_template_idstring

The ID of the associated ModelTemplate

namestring

The name to be given to the newly created TrainedModel

weights_keystring

The S3 key in which the weights file is stored

classesstring json

The list of annotation classes the model was trained on

Response

200

idstring
inserted_atstring
namestring
team_idinteger
weights_keystring

Example response

{
  "classes": [
    {
      "display_name": "Cat",
      "name": "1",
      "type": "polygon"
    }
  ],
  "id": "aa36402e-6ad8-47d3-b121-d447fe2e80ed",
  "inserted_at": "2020-10-01T13:20:16",
  "name": "My TrainedModel",
  "team_id": 123,
  "weights_key": "path/to/weights/weights.pth"
}

Changes

No recorded changes to this operation across all 1 revision of this API.