FaceAlignment

sealed class FaceAlignment<T : InferenceModel, U : InferenceModel> : ModelType<T, U>

Face alignment models and preprocessing.

Types

Fan2d106
Link copied to clipboard

This model is a neural network for face alignment that take RGB images of faces as input and produces coordinates of 106 faces landmarks.

Functions

model
Link copied to clipboard
open fun model(modelHub: ModelHub): T
preInit
Link copied to clipboard
open fun preInit(): InferenceModel
preprocessInput
Link copied to clipboard
open fun preprocessInput(imageFile: File, preprocessing: Preprocessing): FloatArray
abstract fun preprocessInput(data: FloatArray, tensorShape: LongArray): FloatArray
pretrainedModel
Link copied to clipboard
abstract fun pretrainedModel(modelHub: ModelHub): U

Properties

channelsFirst
Link copied to clipboard
open override val channelsFirst: Boolean = true
modelRelativePath
Link copied to clipboard
open override val modelRelativePath: String

Inheritors

ONNXModels.FaceAlignment
Link copied to clipboard