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

error happened when i runing the pre-trained/demo_im2mcg.m #23

Open
forrestsz opened this issue Apr 22, 2020 · 2 comments
Open

error happened when i runing the pre-trained/demo_im2mcg.m #23

forrestsz opened this issue Apr 22, 2020 · 2 comments

Comments

@forrestsz
Copy link

i download the code in my ubuntu environment.
i want to reproduce the segmentation result in paper, so i choose the pre-trained document
first, i run install.m eveything is ok.
then, i run the demo_im2mcg.m, something happend as following:

Error using eigs
Too many output arguments.

Error in spectralPb_fast>ncuts2 (line 130)
[EV, EVal, debug1, debug2] = eigs((D - A) + (10^-10) * speye(size(D)), D, n_ev, 'sm', opts);

Error in spectralPb_fast>ncuts_downsample3 (line 107)
[EV, EVal] = ncuts2(A_down, NVEC);

Error in spectralPb_fast (line 40)
[EigVect, EVal] = ncuts_downsample3(W, nvec, 2, 2, [ty, tx]);

Error in img2ucms>img2ucm (line 110)
[ sPb_thin] = spectralPb_fast(owt2 * mult_Pb, nvec, ic_gamma, dthresh) / sat_sPb;

Error in img2ucms>img2ucm_scale (line 86)
[ucm2, times] = img2ucm(I, model, param.mult_Pb, param.sat_sPb, param.nvec, param.dthresh,
param.ic_gamma);

Error in img2ucms (line 67)
[ucms{s}, times] = img2ucm_scale(I, model, param);

Error in im2mcg (line 73)
[ucm2,~,times] = img2ucms(image, sf_model, scales);

Error in demo_im2mcg (line 10)
[candidates_scg, ucm2_scg] = im2mcg(I,'fast');

it look like something wrong inside the eig function

thank you!

@Alice-Shen
Copy link

hello,i want to know how to run the code with my own dataset,could you give some suggesstion?Thank you!

@jponttuset
Copy link
Owner

Dear @linqinghong and @Alice-Shen,
I am sorry but I cannot give this level of support for MCG anymore.
It looks like Matlab might have changed the interface for the eig function, but I cannot tell for sure.
Best,

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

3 participants