GithubHelp home page GithubHelp logo

input data/diff size does not match target blob shape, input data/diff size: [ 100 100 1 2 ] vs target blob shape: [ 100 100 1 100 ] about faceverification HOT 17 OPEN

iscas-lee avatar iscas-lee commented on August 15, 2024 1
input data/diff size does not match target blob shape, input data/diff size: [ 100 100 1 2 ] vs target blob shape: [ 100 100 1 100 ]

from faceverification.

Comments (17)

happynear avatar happynear commented on August 15, 2024
  1. 这个m文件用的是 https://github.com/happynear/FaceVerification/blob/master/caffe_proto/CASIA_demo.prototxt
  2. 用了demo.prototxt,算出来的就是一个数字了;
  3. 欧氏距离越小越相似。

from faceverification.

iscas-lee avatar iscas-lee commented on August 15, 2024

CASIA_demo.prototxt 的 model是用的这个

CASIA_iter_666000.caffemodel

吗?

from faceverification.

happynear avatar happynear commented on August 15, 2024

对,我这个模型挺老的了,等你把我的跑通,可以试试吴翔的。

from faceverification.

iscas-lee avatar iscas-lee commented on August 15, 2024

还有一个问题,再麻烦下,

Invalid MEX-file 'E:\face\caffee\caffee-windows\caffe-windows\matlab\FaceVerification\MatAlignment.mexw64': 找不到指定的模块。

Error in VerificationDemo2 (line 36)
face1 = MatAlignment('alignment',image1);

这一句执行成功了
MatAlignment('init_model','E:\ThirdPartyLibrary\dlib-18.14\shape_predictor_68_face_landmarks.dat');

但是执行这句
face1 = MatAlignment('Alignment',image1);
就出现上面那个错了。

麻烦了。

wuxiang,又是一个大神哦

from faceverification.

happynear avatar happynear commented on August 15, 2024

这个MatAlignment挺难编译的,编译方法跟caffe-windows里的matcaffe差不多,除了caffe 的3rdparty之外,还需要dlib库。把生成好的matAlignment.mexw64拿来才能用。

from faceverification.

iscas-lee avatar iscas-lee commented on August 15, 2024

我先尝试下,谢谢了。

from faceverification.

iscas-lee avatar iscas-lee commented on August 15, 2024

VerificationDemo
Read Mat to OpenCV done.
1 face detected.
Face alignment done.
Convert to mat done.
Read Mat to OpenCV done.
1 face detected.
Face alignment done.
Convert to mat done.
distance:0.340565
The two faces are from the same people.
终于调通你的程序了。

大神再咨询个问题,你的model是100_100,meanfile也是,但是wuxiang的model好像是128_128的,能共享下wuxiang的128*128的meanfile吗?

from faceverification.

happynear avatar happynear commented on August 15, 2024

他没有mean file的,除个256就好了。

from faceverification.

tanzf avatar tanzf commented on August 15, 2024

@iscas-lee 我也在编译这个MatAlignment.cpp,能不能把编译的流程详细的介绍一下,编译好久了,一直不成功,麻烦你了,万分感激

from faceverification.

iscas-lee avatar iscas-lee commented on August 15, 2024

我也没有编译成功,是求助于我一个师兄给我的一个库,但是这个我太方便直接公开给您呢。

from faceverification.

tanzf avatar tanzf commented on August 15, 2024

哦,好吧,谢谢你了

from faceverification.

tanzf avatar tanzf commented on August 15, 2024

@iscas-lee 你好,我想问一下你使用MatAlignment.cpp这个对齐程序输进去的图片(比如LFW库的图像)是经过人脸剪裁之后的还是直接没剪裁直接用LFW库原图输进去对齐????谢谢

from faceverification.

iscas-lee avatar iscas-lee commented on August 15, 2024

@tanzf 直接原图送进去的。没有裁剪。 我也不知道这样是不是合适? @happynear 这个输入的图片有什么需要特殊处理下吗?

from faceverification.

tanzf avatar tanzf commented on August 15, 2024

@iscas-lee 哦,那识别率怎么样呢?LFW库下达到多少?

from faceverification.

iscas-lee avatar iscas-lee commented on August 15, 2024

@tanzf 没有测试过LFW。

from faceverification.

tanzf avatar tanzf commented on August 15, 2024

哦,好吧,谢谢您了

from faceverification.

nuannuan1991 avatar nuannuan1991 commented on August 15, 2024

input data/diff size does not match target blob shape, input data/diff size: [ 100 100 1 2 ] vs target blob shape: [ 100 100 1 100 ] #24请问这个怎么解决的

from faceverification.

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.