Stefan Oltmann
12/06/2022, 11:16 AMNikita Ermolenko
12/06/2022, 12:18 PMStefan Oltmann
12/06/2022, 12:22 PMNikita Ermolenko
12/06/2022, 12:38 PMJulia Beliaeva
12/08/2022, 12:27 AMval inferenceModel = OnnxInferenceModel {
loadModelBytes() // your function to load bytes from the model file
}
val faceDetectionModel = FaceDetectionModel(inferenceModel, "UltraFace320")
You'll also need either to initialize inferenceModel
itself by calling initializeWith()
, or you can use extensions like inferUsing
with the faceDetectionModel
to do the initialization.Stefan Oltmann
12/08/2022, 3:35 PM