OnnxHighLevelModel

interface OnnxHighLevelModel<I, R> : ExecutionProviderCompatible

Base class for pre-trained high-level onnx models.

Parameters

I

input type

R

output type

Functions

convert
Link copied to clipboard
common
abstract fun convert(output: <ERROR CLASS>): R

Converts raw model output to the result.

initializeWith
Link copied to clipboard
common
open override fun initializeWith(vararg executionProviders: ExecutionProvider)

Initialize the model with the specified executions providers.

predict
Link copied to clipboard
common
open fun predict(input: I): R

Makes prediction on the given input.

summary
Link copied to clipboard
common
open fun summary(): <ERROR CLASS>

Properties

internalModel
Link copied to clipboard
common
abstract val internalModel: OnnxInferenceModel

Model used to make predictions.

modelKindDescription
Link copied to clipboard
common
abstract val modelKindDescription: String?

High-level description of the model. Used for model summary printing. For the model hub models it equals to the string representation of the OnnxModelType

preprocessing
Link copied to clipboard
common
abstract val preprocessing: <ERROR CLASS><I, <ERROR CLASS><FloatArray, <ERROR CLASS>>>

Preprocessing operation specific to this model.

Inheritors

FaceAlignmentModelBase
Link copied to clipboard
FaceDetectionModelBase
Link copied to clipboard
ObjectDetectionModelBase
Link copied to clipboard
MultiPoseDetectionModelBase
Link copied to clipboard
SinglePoseDetectionModelBase
Link copied to clipboard