Skip to content

Commit

Permalink
add deploying ai addon instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mordka committed Jan 16, 2018
1 parent 9beb400 commit 4585fc9
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions source/includes/_addons.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Represents Unleash hardware addons

### Create a addon

Creates new addon item
Creates new addon item. All new addons must be approved by Unleash Development Team.

#### API Endpoint

Expand All @@ -28,8 +28,9 @@ Name | Type | Constraints | Description
`screenshots` | string array | optional | image url array of addon screenshots
`createdAt` | timestamp | (auto generated) | item created timestamp
`updatedAt` | timestamp | (auto generated) | item updated timestamp
`data` | object | optional | data block for AI enabled addons. See "AI addons"

### Get a addon
### Get an addon

Retrieve addon by ID

Expand Down Expand Up @@ -86,6 +87,8 @@ Name | Type | Constraints | Description
`currency` | string | optional | price currency in standard ISO 4217 - e.g. AUD
`type` | string | optional | addon's type. e.g. 'stream'
`screenshots` | string array | optional | image url array of addon screenshots
`data` | object | optional | data block for AI enabled addons. See "AI addons"


### Delete an addon

Expand All @@ -106,3 +109,40 @@ Name | Type | Constraints | Description
id | string | required, uuid format| id of the addon


### AI addons

Addons that have type flag set to `stream` are considered AI addons. They must have `data` block set to specified format below.

#### Data block
Data block specifies parameters that are passed to underlying machine learning solution.
The following properties build the data block.

```
"data": {
"classes": 3,
"clipping": true,
"pbPath": "animals/animals.pb",
"pbTxtPath": "animals/animals.pbtxt"
}
```
Name | Type | Constraints | Description
--------|-------|--------- | ------
`classes` | number | optional | number of categories used in the model
`clipping` | boolean | optional | whether model is used for adhoc AI jobs
`pbPath` | string | required | path to frozen graph definition
`pbTxtPath` | string | required | path to textual graph definition


<aside class="notice">
AI addons can be used in live streaming or static video analysis to clip scenes. Generally every AI addons can be used for live streaming, but only models with `clipping` flag can be used for clipping.
Clipping models are used in _Recognise_ feature available in the library action button options.
</aside>


#### Deploying AI addon

1. Create addon using `POST /addon` with specified data block
2. Upload model pb and pbTxt files to S3 at `pylot/unleash_models`.
3. Ensure `pbPath` and `pbTxtPath` are relative in folder `pylot/unleash_models`.
4. Test addon, if needed upload it to unleash server to `~/unleash_models` (this might change in the nearest future)

0 comments on commit 4585fc9

Please sign in to comment.