fix: Change the structure of builder
Some checks failed
build / checks-matrix (push) Successful in 19m21s
build / codecov (push) Failing after 19m18s
docs / docs (push) Has been cancelled
build / checks-build (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-08-18 12:03:00 +05:30
parent 050e937408
commit 087d841959
3 changed files with 11 additions and 10 deletions

View File

@@ -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)