ucuapps / single-view-autocalib

Single-View Auto-Calibration from Lens-Distorted Images of Urban Scenes. In WACV (2021)
https://ylochman.github.io/sv-autocalib
BSD 3-Clause "New" or "Revised" License
38 stars 10 forks source link

Error while running #5

Open jackhawa opened 2 years ago

jackhawa commented 2 years ago

Hello,

I am using matlab R2021b Update 3 (9.11.0.1873467) and tried to run autocalib_test.m. I have also installed necessary add-on (Optimization Toolbox and Statistics and Machine Learning Toolbox) I get the following error:

Error using MapNested/subsref (line 243)
Something went wrong in indexing: key ' ' is not a key

Error in LabelSampler.sample_token (line 97)
                s_ = mnrnd_without_repeat(numel(x),pmap_(x(1)),1);

Error in LabelSampler/sample (line 70)
                LabelSampler.sample_token(...

Error in HybridSampler/sample (line 86)
                    this.sampler_list{solver_idx}.sample(meas, varargin);

Error in HybridRansac/fit (line 55)
                    [solver_idx,idx,stats.trial_count] = this.sampler.sample(meas);

Error in autocalib (line 142)
            [model,res,stats] = ransac.fit(meas_norm,varinput_norm);

Error in autocalib_test (line 17)
autocalib(img_path, solvers, priors, [], [], cfg{:});

Kindly assist. Thank you.