Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ml): re-enable ARMNN integration #7053

Merged
merged 1 commit into from Feb 12, 2024
Merged

Conversation

fyfrey
Copy link
Contributor

@fyfrey fyfrey commented Feb 12, 2024

ARMNN is not working on the current release. This PR re-enables ARMNN.

Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: b5dad71
Status: ✅  Deploy successful!
Preview URL: https://5a1a3a44.immich.pages.dev
Branch Preview URL: https://fix-ml-armnn-integration.immich.pages.dev

View logs

@@ -28,7 +28,10 @@ def __init__(

def _load(self) -> None:
self.det_model = RetinaFace(session=self._make_session(self.det_file))
self.rec_model = ArcFaceONNX(self.rec_file.as_posix(), session=self._make_session(self.rec_file))
self.rec_model = ArcFaceONNX(
self.rec_file.with_suffix(".onnx").as_posix(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, what was the issue with passing the .armnn path here? Was ArcFaceONNX checking that it exists?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It analyzes the onnx model to get the input dimensions etc. This requires a file parsable by an onnx parser^^

@mertalev mertalev merged commit 49c378d into main Feb 12, 2024
24 of 25 checks passed
@mertalev mertalev deleted the fix/ml-armnn-integration branch February 12, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants