jponttuset / mcg

Multiscale Combinatorial Grouping - Object Proposals and Segmentation
http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/mcg/
Other
305 stars 139 forks source link

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

Open forrestsz opened 4 years ago

forrestsz commented 4 years ago

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 commented 4 years ago

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

jponttuset commented 4 years ago

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,