Package examples.onnx.cv

Functions

preprocessing
Link copied to clipboard
fun preprocessing(resizeTo: Pair<Int, Int>, model: OnnxInferenceModel): Preprocessing
runImageRecognitionPrediction
Link copied to clipboard
fun runImageRecognitionPrediction(modelType: ONNXModels.CV<OnnxInferenceModel>)
runONNXAdditionalTraining
Link copied to clipboard
fun runONNXAdditionalTraining(modelType: ONNXModels.CV<out OnnxInferenceModel>, resizeTo: Pair<Int, Int> = Pair(224, 224))

This examples demonstrates the transfer learning concept on the Image Recognition model:

runONNXImageRecognitionPrediction
Link copied to clipboard
fun runONNXImageRecognitionPrediction(modelType: ONNXModels.CV<out OnnxInferenceModel>, resizeTo: Pair<Int, Int> = Pair(224, 224))