T
- tensor-type that is both inputted to (representing an image), and outputted from the
model during inference.public interface ImageInferenceModel<T> extends InferenceModel
A model should always be closed, when it is no longer in use.
Modifier and Type | Method and Description |
---|---|
<S> S |
performInference(T input,
String inputName,
List<String> outputIdentifiers,
CheckedFunction<List<T>,S,OperationFailedException> convertOutput)
Performs inference on a single-input, to create an output.
|
close
<S> S performInference(T input, String inputName, List<String> outputIdentifiers, CheckedFunction<List<T>,S,OperationFailedException> convertOutput) throws OperationFailedException
S
- the data-type the output is exposed as.input
- the input for inference.inputName
- the name associated with input
in the model.outputIdentifiers
- convertOutput
- converts the output to type <S>
.OperationFailedException
- if the inference cannot successfully complete.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.