Build Organizational On Device Model
Generate code to run the impulse on an embedded device using an organizational deployment block. When this step is complete use `downloadBuild` to download the artefacts. Updates are streamed over th
post
https://studio.edgeimpulse.com/v1
/api/{projectId}/jobs/build-ondevice-model/organization
Build organizational on-device model
Generate code to run the impulse on an embedded device using an organizational deployment block. When this step is complete use
downloadBuild
to download the artefacts. Updates are streamed over the websocket API.Parameters
Path
projectId*
integer
Project ID
Body
Example
Schema
{
"engine": "tflite",
"deployBlockId": 0,
"modelType": "int8"
}
Responses
200: OK
OK
cURL
Python
Node.js
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/build-ondevice-model/organization \
--header 'content-type: application/json' \
--header 'x-jwt-token: REPLACE_KEY_VALUE' \
--data '{"engine":"tflite","deployBlockId":0,"modelType":"int8"}'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
payload = "{\"engine\":\"tflite\",\"deployBlockId\":0,\"modelType\":\"int8\"}"
headers = {
'content-type': "application/json",
'x-jwt-token': "REPLACE_KEY_VALUE"
}
conn.request("POST", "/v1/api/{projectId}/jobs/build-ondevice-model/organization", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const request = require('request');
const options = {
method: 'POST',
url: 'https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/build-ondevice-model/organization',
headers: {'content-type': 'application/json', 'x-jwt-token': 'REPLACE_KEY_VALUE'},
body: {engine: 'tflite', deployBlockId: 0, modelType: 'int8'},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
Last modified 1mo ago