Extends
Methods
getFeeds(imgTensor)
get the feeds of the infer session.
Parameters:
| Name | Type | Description |
|---|---|---|
imgTensor |
image tensor |
Returns:
feeds of the infer session
infer(imgRGBA, topK)
classification infer.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
imgRGBA |
RGBA image | ||
topK |
5 | probs top K |
Returns:
probs of the classification
loadConfigs(inferConfig)
load infer configs
Parameters:
| Name | Type | Description |
|---|---|---|
inferConfig |
model infer config URL |
- Inherited From:
- Source:
postProcess(resultsTensors, …args)
classification postprocess.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
resultsTensors |
result tensors | ||
args |
<repeatable> |
postprocess args |
Returns:
probs of the classification
preProcess(…args)
model preprocess function.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
args |
<repeatable> |
preprocess args |
- Inherited From:
- Source:
Returns:
session infer feeds