Update transfer learning block

Update transfer learning block

post

Updates a transfer learning block. Only values in the body will be updated.

Authorizations
Path parameters
organizationIdintegerRequired

Organization ID

transferLearningIdintegerRequired

Transfer learning ID

Body
namestringOptional
dockerContainerstringOptional
descriptionstringOptional
operatesOnstring · enumOptionalPossible values:
objectDetectionLastLayerstring · enumOptionalPossible values:
implementationVersionintegerOptional
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
post
POST /v1/api/organizations/{organizationId}/transfer-learning/{transferLearningId} 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,
  "displayCategory": "classical",
  "customModelVariants": [
    {
      "key": "text",
      "name": "text",
      "inferencingEntrypoint": "text",
      "profilingEntrypoint": "text",
      "modelFiles": [
        {
          "id": "text",
          "name": "text",
          "type": "binary",
          "description": "text"
        }
      ]
    }
  ],
  "indBlockNoLongerAvailable": true,
  "blockNoLongerAvailableReason": "text",
  "sourceCodeDownloadStaffOnly": true
}
200

OK

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

Last updated

Was this helpful?