voc-dpm icon indicating copy to clipboard operation
voc-dpm copied to clipboard

very large size of array

Open mtastal opened this issue 6 years ago • 3 comments

After getting compile the files, the demo run provides this output shown below:

demo input image press any key to continue continuing... car model visualization press any key to continue continuing...

Error using resize Requested 480x640x257612297838540 (17179869184.0GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.

Error in featpyramid (line 31) scaled = resize(im, 1/sc^(i-1));

Error in imgdetect (line 15) pyra = featpyramid(input, model);

Error in demo>test (line 31) [dets, boxes] = imgdetect(im, model, -0.3);

Error in demo (line 4) test('000034.jpg', model);

mtastal avatar Mar 20 '18 18:03 mtastal

I know this is very late --- I ran into this problem and realized that MATLAB wasn't parallelizing correctly. This may be because parpool and delete functions have replaced matlabpool since this code was written.

npool9 avatar Oct 23 '18 16:10 npool9

Create a function called matlabpool.m as described in the link: https://www.mathworks.com/matlabcentral/answers/235524-how-to-replace-matlapool-by-parpool-in-my-code

npool9 avatar Oct 23 '18 16:10 npool9

I have the same error, have you solved it?

StrongerzZ avatar Sep 17 '21 08:09 StrongerzZ