POST
/
api
/
{projectId}
/
jobs
/
train
/
keras
/
{learnId}
/
data
Export Keras block data
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/train/keras/{learnId}/data \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "overrideImageInputScaling": "0..1"
}'
{
  "success": true,
  "error": "<string>",
  "id": 12873488112
}

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

learnId
integer
required

Learn Block ID, use the impulse functions to retrieve the ID

Body

application/json
overrideImageInputScaling
enum<string>

Normalization that is applied to images. If this is not set then 0..1 is used. "0..1" gives you non-normalized pixels between 0 and 1. "-1..1" gives you non-normalized pixels between -1 and 1. "0..255" gives you non-normalized pixels between 0 and 255. "-128..127" gives you non-normalized pixels between -128 and 127. "torch" first scales pixels between 0 and 1, then applies normalization using the ImageNet dataset (same as torchvision.transforms.Normalize()). "bgr-subtract-imagenet-mean" scales to 0..255, reorders pixels to BGR, and subtracts the ImageNet mean from each channel.

Available options:
0..1,
-1..1,
-128..127,
0..255,
torch,
bgr-subtract-imagenet-mean

Response

200 - application/json

OK

success
boolean
required

Whether the operation succeeded

id
integer
required

Job identifier. Status updates will include this identifier.

Example:

12873488112

error
string

Optional error description (set if 'success' was false)