Fan2D106FaceAlignmentModel

class Fan2D106FaceAlignmentModel(internalModel: OnnxInferenceModel) : InferenceModel

The light-weight API for solving Face Alignment task via Fan2D106 model.

Constructors

Fan2D106FaceAlignmentModel
Link copied to clipboard
fun Fan2D106FaceAlignmentModel(internalModel: OnnxInferenceModel)

Functions

close
Link copied to clipboard
open override fun close()

Releases the model resources.

copy
Link copied to clipboard
open override fun copy(copiedModelName: String?, saveOptimizerState: Boolean, copyWeights: Boolean): TensorFlowInferenceModel
detectLandmarks
Link copied to clipboard
fun detectLandmarks(imageFile: File): List<Landmark>

Detects 106 Landmark objects for the given imageFile.

evaluate
Link copied to clipboard
fun evaluate(dataset: Dataset, metric: Metrics): Double
predict
Link copied to clipboard
open override fun predict(inputData: FloatArray): Int
fun predict(dataset: Dataset): List<Int>
predictSoftly
Link copied to clipboard
open override fun predictSoftly(inputData: FloatArray, predictionTensorName: String): FloatArray
reshape
Link copied to clipboard
open override fun reshape(vararg dims: Long)

Properties

inputDimensions
Link copied to clipboard
open override val inputDimensions: LongArray
name
Link copied to clipboard
var name: String?