Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libqp_splx => Incorrect number of input arguments #17

Open
SalahiAltinci opened this issue Mar 31, 2014 · 7 comments
Open

libqp_splx => Incorrect number of input arguments #17

SalahiAltinci opened this issue Mar 31, 2014 · 7 comments

Comments

@SalahiAltinci
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

uricamic commented Apr 2, 2014

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
Copy link
Author

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
Copy link
Owner

uricamic commented Apr 2, 2014

Hi,

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

@SalahiAltinci
Copy link
Author

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
Copy link
Owner

uricamic commented Apr 7, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants