Code Monkey home page Code Monkey logo

Comments (5)

hpc203 avatar hpc203 commented on May 25, 2024 1

我已经修改了get_face_feature.py和detect_face_align_rec.py里的程序逻辑,您可以同步更新一下

from 10kinds-light-face-detector-align-recognition.

yililiangbaikai avatar yililiangbaikai commented on May 25, 2024

image
我需要修改这段代码才能跑成功 不知道是不是这个问题

from 10kinds-light-face-detector-align-recognition.

hpc203 avatar hpc203 commented on May 25, 2024

出现这个错误,你的faces_feature应该是只包含有1个人脸的特征向量的。做人脸识别,通常是需要提取多个人脸的特征向量,然后保存到faces_feature矩阵里的。看get_face_feature.py里第99行代码:
face_feature = (np.squeeze(np.asarray(feature_list)), name_list)
这里之所以使用了np.squeeze去消除维度是1的维,是因为在arcface输出的特征量是1x512的,如果提取10个人脸特征向量,那么就得到10x1x512的矩阵,显然1是多余的,因此就是用np.squeeze消除它。而如果只提取了一个人脸特征向量,那么得到1x1x512的矩阵,这是使用np.squeeze会把人脸个数1这个维度信息也消除掉,得到长度是512的一维数组,那么在后面运行detect_face_align_rec.py时,就会出现上面的错误:XA必须是2维数组

from 10kinds-light-face-detector-align-recognition.

yililiangbaikai avatar yililiangbaikai commented on May 25, 2024

我想通过两张人脸欧拉距离得到人脸相似度,要怎么做呢,翻了很久资料没找到答案。个人感觉目前这个arcface的特征值比对结果也不太理想,有没有更好的选择。

from 10kinds-light-face-detector-align-recognition.

hpc203 avatar hpc203 commented on May 25, 2024

arcface建议重新训练,我用的是arcface已开源的训练模型

from 10kinds-light-face-detector-align-recognition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.