Add transfer learning block

Add transfer learning block

post

Adds a transfer learning block.

Authorizations
Path parameters
organizationIdintegerRequired

Organization ID

Body
namestringRequired
dockerContainerstringRequired
descriptionstringRequired
operatesOnstring · enumRequiredPossible values:
objectDetectionLastLayerstring · enumOptionalPossible values:
implementationVersionintegerRequired
isPublicbooleanOptional

Whether this block is publicly available to Edge Impulse users (if false, then only for members of the owning organization)

isPublicForDevicesstring[]Optional

If isPublic is true, the list of devices (from latencyDevices) for which this model can be shown.

publicProjectTierAvailabilitystring · enumOptional

For public blocks, this indicates the project tiers for which this block is available.

Possible values:
repositoryUrlstringOptional

URL to the source code of this custom learn block.

parametersobject[]Optional
imageInputScalingstring · enumOptional

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.

Possible values:
indRequiresGpubooleanOptional

If set, requires this block to be scheduled on GPU.

displayCategorystring · enumOptional

Category to display this block in the UI.

Possible values:
indBlockNoLongerAvailablebooleanOptional

If set, then this block is no longer available for training; and blockNoLongerAvailableReason should be set.

blockNoLongerAvailableReasonstringOptional

In Markdown format. Should be set if indBlockNoLongerAvailable is true, contains migration information for existing users of this block.

sourceCodeDownloadStaffOnlybooleanOptional

Whether the source code is only available for staff users.

Responses
200
OK
application/json
Responseall of
post
POST /v1/api/organizations/{organizationId}/transfer-learning HTTP/1.1
Host: studio.edgeimpulse.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 677

{
  "name": "text",
  "dockerContainer": "text",
  "description": "text",
  "operatesOn": "object_detection",
  "objectDetectionLastLayer": "mobilenet-ssd",
  "implementationVersion": 1,
  "isPublic": true,
  "isPublicForDevices": [
    "text"
  ],
  "publicProjectTierAvailability": "enterprise-only",
  "repositoryUrl": "text",
  "parameters": [
    {}
  ],
  "imageInputScaling": "0..1",
  "indRequiresGpu": true,
  "customModelVariants": [
    {
      "key": "text",
      "name": "text",
      "inferencingEntrypoint": "text",
      "profilingEntrypoint": "text",
      "modelFiles": [
        {
          "id": "text",
          "name": "text",
          "type": "binary",
          "description": "text"
        }
      ]
    }
  ],
  "displayCategory": "classical",
  "indBlockNoLongerAvailable": true,
  "blockNoLongerAvailableReason": "text",
  "sourceCodeDownloadStaffOnly": true
}
200

OK

{
  "success": true,
  "error": "text",
  "id": 1
}

Last updated

Was this helpful?