uricamic / flandmark

Open-source implementation of facial landmark detector
http://cmp.felk.cvut.cz/~uricamic/flandmark/
GNU General Public License v3.0
228 stars 151 forks source link

libqp_splx => Incorrect number of input arguments #17

Open SalahiAltinci opened 10 years ago

SalahiAltinci commented 10 years ago

Hey,

I'm trying to train a model, i run learn_flanmark.m but I got an error when it comes to BMRM solver.

Error occurs in brmr.m at line 127 which is:

% solve reduced problem [alpha,stat] = libqp_splx(H(1:nCP,1:nCP),-b(1:nCP),1,ones(1,nCP),1,[alpha;0]);

it says Incorrect number of input arguments in libqp_splx mex.

When i check mex file, total of 12 mxArrays required for that function. but mex file gets only 3 mxArrays and i get that error.

Any help is appreciated. Im trying to solve this. if i find a solution i ll post it here.

Thanks in advance.

PS: I am using a image dataset that i have created. for testing purposes i'm using a limited number of images. I'm using 32bit matlab. All mex files are compiled.

uricamic commented 10 years ago

Hi,

could you, please, give some more detailed information? Btw I checked the line 127 of bmrm.m and it is a comment, so I guess, it is not a proper line...

SalahiAltinci commented 10 years ago

Hi,

Sorry for misleading line number. It is line 128 which corresponds to the function: [alpha,stat] = libqp_splx(H(1:nCP,1:nCP),-b(1:nCP),1,ones(1,nCP),1,[alpha;0]);

The error message that i am receiving is:

Error using ==> libqp_splx Incorrect number of input arguments (nrhs == 6)

Error in ==> bmrm at 128 [alpha,stat] = libqp_splx(H(1:nCP,1:nCP),-b(1:nCP),1,ones(1,nCP),1,[alpha;0]);

Error in ==> test_bmrm at 109 [W, stat]= bmrm(data, f_risk, lambda, options);

Error in ==> run at 57 evalin('caller', [s ';']);

Error in ==> flandmark_learn at 173 run './code/test_bmrm.m';

uricamic commented 10 years ago

Hi,

this looks suspicious. The error message implies only 3 input arguments for the libqp_splx function, but as you can see on the line 128, it is called with 7 arguments. The bmrm.m script is a standalone solver, which we have used in many different applications already and never got such a strange message.

May I ask you on which data you are trying to learn it? Or maybe if you could provide the minimal version of the library with your data to reproduce this error, so I could get the insight to solve this issue...

SalahiAltinci commented 10 years ago

Hi, I tried LFW dataset too, i am receiving same error. Now i suppose problem is caused by my compiler. I will try it on another environment and let you know. Thank you for your interest.

uricamic commented 10 years ago

Hi,

so you are using the enclosed data? What operating system do you have?

SalahiAltinci commented 10 years ago

Hi, I've tried a dataset, i've created. After that error, i used the enclosed data also to be sure whether it is the data caused error or not. I'm using 64bit Win7, and 32bit Matlab. I will try it on 32bit Ubuntu tomorrow. I get same error, when i even run libqp_splx_test.m from matlab.

uricamic commented 10 years ago

Hi, that seems to be really weird, isn't it possible that some files were damaged somehow in your copy? Could you also please send the error output you receive by running libqp_splx_test.m? That could also bring some clue...