rbgirshick / voc-dpm

Object detection system using deformable part models (DPMs) and latent SVM (voc-release5). You may want to use the latest tarball on my website. The github code may include code changes that have not been tested as thoroughly and will not necessarily reproduce the results on the website.
http://www.cs.berkeley.edu/~rbg/latent/
MIT License
579 stars 309 forks source link

Invalid MEX-file "resize.mexa64":failed to map segment from shared object #25

Closed blateyang closed 5 years ago

blateyang commented 5 years ago

I have met a problem when I run the demo.m, and the error informations are as follows:

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

Invalid MEX-file
'/media/ExtHDD/ygj/EclipseWorkspace/cachedir/voc-dpm-master/bin/resize.mexa64':
/media/ExtHDD/ygj/EclipseWorkspace/cachedir/voc-dpm-master/bin/resize.mexa64:
failed to map segment from shared object

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

Error in imgdetect (line 25)
pyra = featpyramid(im, model);

Error in demo>test (line 67)
[ds, bs] = imgdetect(im, model, -1);

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

My environment:

Does anyone know how to solve it? Thanks in advance.

blateyang commented 5 years ago

I have found the reason. It is because I put the voc-dpm-master project on non-standard location, such as external hardward disk. If you put the project on standard location, the problem will be solved.