Skip to content

Replaced torch7 by onnx model in js_face_recognition dnn sample#24244

Merged
asmorkalov merged 2 commits intoopencv:4.xfrom
alexlyulkov:al/update-dnn-js-face-recognition-sample
Sep 8, 2023
Merged

Replaced torch7 by onnx model in js_face_recognition dnn sample#24244
asmorkalov merged 2 commits intoopencv:4.xfrom
alexlyulkov:al/update-dnn-js-face-recognition-sample

Conversation

@alexlyulkov
Copy link
Copy Markdown
Contributor

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

//! [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)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It makes sense to add reference to the model and parameters as comment to the code.

Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

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

👍

@asmorkalov asmorkalov added this to the 4.9.0 milestone Sep 8, 2023
@asmorkalov asmorkalov merged commit 91cf0d1 into opencv:4.x Sep 8, 2023
@asmorkalov asmorkalov mentioned this pull request Sep 11, 2023
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
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.

3 participants