Upload a pretrained model
Upload a pretrained model and receive info back about the input/output tensors. If you want to deploy a pretrained model from the API, see startDeployPretrainedModelJob
.
Authorizations
Path parameters
projectIdintegerRequired
Project ID
Query parameters
impulseIdintegerOptional
Impulse ID. If this is unset then the default impulse is used.
Body
modelFilestring · binaryRequired
modelFileNamestringRequired
modelFileTypestring · enumRequiredPossible values:
representativeFeaturesstring · binaryOptional
devicestringOptional
MCU used for calculating latency, query latencyDevices
in listProject
for a list of supported devices (and use the "mcu" property here). If this is kept empty then we'll show an overview of multiple devices.
Responses
200
OK
application/json
Responseall of
post
POST /v1/api/{projectId}/pretrained-model/upload HTTP/1.1
Host: studio.edgeimpulse.com
x-api-key: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 120
{
"modelFile": "binary",
"modelFileName": "text",
"modelFileType": "tflite",
"representativeFeatures": "binary",
"device": "text"
}
200
OK
{
"success": true,
"error": "text",
"id": 12873488112
}
Last updated
Was this helpful?