Path prefix from where to load the model artifacts. These include the symbol, parameters, and synset.txt. Example: file://model-dir/resnet-152 (containing resnet-152-symbol.json, resnet-152-0000.params, and synset.txt).
Descriptors defining the input node names, shape, layout and type parameters
Device contexts on which you want to run inference; defaults to CPU
Model epoch to load; defaults to 0
Takes flat arrays as input and returns (Label, Score) tuples.
Takes flat arrays as input and returns (Label, Score) tuples.
The Scala equivalent of the DType used for the input array and return value
Indexed sequence one-dimensional array of floats/doubles
(Optional) How many result (sorting based on the last axis) elements to return. Default returns unsorted output.
Indexed sequence of (Label, Score) tuples
To classify the image according to the provided model
To classify the image according to the provided model
Path prefix of the input image
Number of result elements to return, sorted by probability
The precision at which to run the inference. specify the DType as DType.Float64 for Double precision. Defaults to DType.Float32
List of list of tuples of (Label, Probability)
To classify batch of input images according to the provided model
To classify batch of input images according to the provided model
Input array of buffered images
Number of result elements to return, sorted by probability
The precision at which to run the inference. specify the DType as DType.Float64 for Double precision. Defaults to DType.Float32
List of list of tuples of (Label, Probability)
Perform multiple classification operations on NDArrays.
Perform multiple classification operations on NDArrays. Also works with batched input.
Indexed sequence of NDArrays
(Optional) How many result (sorting based on the last axis) elements to return. Default returns unsorted output.
Traversable sequence of (Label, Score) tuples.
Device contexts on which you want to run inference; defaults to CPU
Device contexts on which you want to run inference; defaults to CPU
Model epoch to load; defaults to 0
Model epoch to load; defaults to 0
Descriptors defining the input node names, shape, layout and type parameters
Descriptors defining the input node names, shape, layout and type parameters
Get the names and shapes that would be returns by a classify call
Get the names and shapes that would be returns by a classify call
a list of (name, shape) tuples
A class for image classification tasks. Contains helper methods.