object-proposals icon indicating copy to clipboard operation
object-proposals copied to clipboard

Failed at initialize: Field assignment to a non-structure array object

Open thelittlekid opened this issue 7 years ago • 1 comments

I got the following error at step 2 "initialize path variables" on Matlab R2016b 64-bit and Ubuntu 16.04 64-bit.

Added json encoder/decoder to the path
-- Successful installation of MCG. Enjoy! --
Field assignment to a non-structure array object.

Error in spagglom_options (line 7)
opts.seg_method = 'slic'; % 'felz', 'slic' or 'qshift'. Two first recommended


Error in initialize (line 50)
spagglom_options;

I tried to check the variable opts, and got the following error:

readonly
The P-code file .../object-proposal-master/randomizedPrims/rp-master/evaluation/xml_toolbox/strsplit.p was generated prior to MATLAB version 7.5 (R2007b) and is no longer supported. Use <a href="matlab:doc pcode">pcode</a> to regenerate the file using MATLAB R2007b or later. 
workspacefunc
350

Not quite sure what's going on, can somebody help and explain a little bit? Thanks.

thelittlekid avatar May 08 '17 17:05 thelittlekid

It looks like randomized prime code uses a compiled file which isn't supported by latest matlab version. If you need randomized prims proposals, my advise would be to try to compile their source code from scratch.

aroma123 avatar May 08 '17 17:05 aroma123