Skip to content

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

@forrestsz

Description

@forrestsz

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions