You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,8 @@ list = getInputs()
106
106
- None
107
107
-*Output*
108
108
- List of input blobs of the loaded model.
109
-
- The list format is: `[ {'name':blobName, 'data':blobData, 'shape':blobShape, 'type':blobType('imgae' or others)}, ... ]`.
109
+
- The list format is: `{ blobName : { 'data':blobData, 'shape':blobShape, 'type':blobType }, ... }`.
110
+
-`blobType` is a string. The value can be `image`, or others. If the type is `image`, the `blobData` will go through image preprocess before inferencing.
110
111
111
112
~~~python
112
113
list= getOutputs()
@@ -118,7 +119,7 @@ list = getOutputs()
118
119
- None
119
120
-*Output*
120
121
- List of output blobs of the loaded model.
121
-
- The list format is: `[ {'name':blobName, 'shape':blobShape}, ... ]`.
122
+
- The list format is: `{ blobName : { 'shape':blobShape}, ... }`.
122
123
123
124
~~~python
124
125
1. outBlob = blockInfer(ocvImg) # for single input model
@@ -132,14 +133,14 @@ list = getOutputs()
132
133
- You can obtain the input list with `getInputs()` and stuff your input data to infer to `data` element in the dictionary in the list.
133
134
- The dictionary has `type` attribute. If you set `image` to the type, the data stored in `data` is considered as an OpenCV image data and go through image preprocessing before inferencing (resize and transform), otherwise the data in the `data` will be just passed to the Inference Engine without any preprocessing.
134
135
- You must use this style of API when your model has multiple inputs.
- Single output model: `outBlob` contains the data of the output blob.
139
140
- Multiple output model: `outBlob` contains a dictionary which contains the outputs of the model.
140
141
- Key: The name of an output blob
141
142
- Value: The contents of an output blob
142
-
- e.g. `[{'name': 'prob', 'shape': [1, 1000]}]`
143
+
- e.g. `{ 'prob' : { 'shape': [1, 1000] } }`
143
144
144
145
~~~python
145
146
1. infID = asyncInfer(ocvimg) # for single input model
@@ -153,7 +154,7 @@ list = getOutputs()
153
154
- You can obtain the input list with `getInputs()` and stuff your input data to infer to `data` element in the dictionary in the list.
154
155
- The dictionary has `type` attribute. If you set `image` to the type, the data stored in `data` is considered as an OpenCV image data and go through image preprocessing before inferencing (resize and transform), otherwise the data in the `data` will be just passed to the Inference Engine without any preprocessing.
155
156
- You must use this style of API when your model has multiple inputs.
0 commit comments