-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy-chip-classifier.json
77 lines (77 loc) · 3.04 KB
/
deploy-chip-classifier.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"name": "deploy-chip-classifier",
"version": "0.1.4",
"taskOwnerEmail": "kostas.stamatiou@digitalglobe.com",
"description": "Deploy a tensorflow keras model to classify RGB image chips.",
"properties": {
"isPublic": true,
"timeout": 172800
},
"inputPortDescriptors": [
{
"name": "chips",
"type": "directory",
"description": "Contains the chips to deploy on in a single tar file. Acceptable formats include jpeg, tif and png.",
"required": true
},
{
"name": "model",
"type": "directory",
"description": "Contains an h5 file with the model trained using a Tensorflow backend. If a Theano backend was used, please use the deploy-chip-classifier-theano task.",
"required": true
},
{
"name": "classes",
"type": "string",
"description": "The class names in a single string, separated by commas and in the same order that the model was trained on, e.g., 'No swimming pool, Swimming pool'. If omitted, the class names are numbers starting from 0.",
"required": false
},
{
"name": "size",
"type": "string",
"description": "Chip size in pixels. If a chip has a different size, it is automatically resized to (size)x(size). Default is 224.",
"required": false
},
{
"name": "deploy_batch",
"type": "string",
"description": "Size of deploy batch. Default is 100.",
"required": false
},
{
"name": "normalization_vector",
"type": "string",
"description": "Pixel intensity values to subtract from R, G, B bands. The default is '123.68,116.779,103.939'.",
"required": false
},
{
"name": "normalization_value",
"type": "string",
"description": "Pixel intensity values to divide chips by. Division takes place after subtracting the normalization_vector. Defaults to None.",
"required": false
}
],
"outputPortDescriptors": [
{
"name": "results",
"type": "directory",
"description": "Contains classified.json. Each entry is a key:value pair, where the key is the chip name and the value is a dictionary which includes the classification of that chip ('class') and the certainty of the classification ('certainty')."
},
{
"name": "logs",
"type": "directory",
"description": "Contains out.log which includes information on the time required to load the model and the total classification time."
}
],
"containerDescriptors": [
{
"type": "DOCKER",
"properties": {
"image": "platformstories/deploy-chip-classifier",
"domain": "nvidiap2"
},
"command": "python /deploy-chip-classifier.py",
"isPublic": true
}
]
}