fix: Change the structure of builder
This commit is contained in:
@@ -28,7 +28,7 @@ pub fn main() -> Result<()> {
|
||||
match executor {
|
||||
cli::Executor::Mnn => {
|
||||
let retinaface =
|
||||
facedet::retinaface::mnn::FaceDetection::builder()(RETINAFACE_MODEL_MNN)
|
||||
facedet::retinaface::mnn::FaceDetection::builder(RETINAFACE_MODEL_MNN)
|
||||
.change_context(Error)?
|
||||
.with_forward_type(detect.forward_type)
|
||||
.build()
|
||||
@@ -45,7 +45,7 @@ pub fn main() -> Result<()> {
|
||||
}
|
||||
cli::Executor::Onnx => {
|
||||
let retinaface =
|
||||
facedet::retinaface::ort::FaceDetection::builder()(RETINAFACE_MODEL_ONNX)
|
||||
facedet::retinaface::ort::FaceDetection::builder(RETINAFACE_MODEL_ONNX)
|
||||
.change_context(Error)?
|
||||
.build()
|
||||
.change_context(errors::Error)
|
||||
|
||||
Reference in New Issue
Block a user