Replaced torch7 by onnx model in js_face_recognition dnn sample#24244
Merged
asmorkalov merged 2 commits intoopencv:4.xfrom Sep 8, 2023
Merged
Conversation
alexlyulkov
commented
Sep 8, 2023
| //! [Get 128 floating points feature vector] | ||
| function face2vec(face) { | ||
| var blob = cv.blobFromImage(face, 1.0 / 255, {width: 96, height: 96}, [0, 0, 0, 0], true, false) | ||
| var blob = cv.blobFromImage(face, 1.0, {width: 112, height: 112}, [0, 0, 0, 0], true, false) |
Contributor
Author
There was a problem hiding this comment.
Contributor
There was a problem hiding this comment.
It makes sense to add reference to the model and parameters as comment to the code.
dkurt
reviewed
Sep 8, 2023
dkurt
approved these changes
Sep 8, 2023
Merged
thewoz
pushed a commit
to thewoz/opencv
that referenced
this pull request
Jan 4, 2024
…e-recognition-sample Replaced torch7 by onnx model in js_face_recognition dnn sample opencv#24244 Changed face recognition model in js_face_recognition dnn sample: replaced torch7 model from https://github.com/pyannote/pyannote-data by ONNX model from https://github.com/opencv/opencv_zoo/tree/main/models/face_recognition_sface
thewoz
pushed a commit
to thewoz/opencv
that referenced
this pull request
May 29, 2024
…e-recognition-sample Replaced torch7 by onnx model in js_face_recognition dnn sample opencv#24244 Changed face recognition model in js_face_recognition dnn sample: replaced torch7 model from https://github.com/pyannote/pyannote-data by ONNX model from https://github.com/opencv/opencv_zoo/tree/main/models/face_recognition_sface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changed face recognition model in js_face_recognition dnn sample: replaced torch7 model from https://github.com/pyannote/pyannote-data by ONNX model from https://github.com/opencv/opencv_zoo/tree/main/models/face_recognition_sface