flandmark icon indicating copy to clipboard operation
flandmark copied to clipboard

libqp_splx => Incorrect number of input arguments

Open SalahiAltinci opened this issue 10 years ago • 7 comments

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.

SalahiAltinci avatar Mar 31 '14 09:03 SalahiAltinci

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...

uricamic avatar Mar 31 '14 12:03 uricamic

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';

SalahiAltinci avatar Apr 02 '14 12:04 SalahiAltinci

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...

uricamic avatar Apr 02 '14 12:04 uricamic

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.

SalahiAltinci avatar Apr 02 '14 14:04 SalahiAltinci

Hi,

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

uricamic avatar Apr 02 '14 14:04 uricamic

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.

SalahiAltinci avatar Apr 06 '14 21:04 SalahiAltinci

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...

uricamic avatar Apr 07 '14 09:04 uricamic