sergeyk / selective_search_ijcv_with_python

Simple Python script to compute Selective Search proposals in Matlab.
Other
183 stars 113 forks source link

OSError: [Errno 2] No such file or directory or TypeError: buffer is too small for requested array or Installing help #14

Closed n3011 closed 8 years ago

n3011 commented 8 years ago

To Solve above two error you make sure that you have correct "mc" command. Because for different version of matlab command would change. for Matlba 2013a:

mc = "matlab13a -nojvm -r \"try; {}; catch; exit; end; exit\"".format(command)

To solve typeError: Open matlab with PWD as selective_search_ijcv_with_python and run the following command

Also at first run demo.m to compile all relevant files using mex compiler. and add the selective_search_ijcv_with_python to your PYTHONPATH.

For all CAFFE users:: put the directory in CaffeROOT/python/ (dont put it in CaffeROOT/python/cafe/) and if you have already set your PYTHONPATH for pycaffe then you are set to go. No separate PYTHONPATH needed for selective search folder.

To get output for a single image: change the input of function selective_search() from a string into a list of string:

import selective_search_ijcv_with_python as selective_search image_filenames = '000015.jpg' windows = selective_search.get_windows(['image_filenames])

n3011 commented 8 years ago

Also at first run demo.m to compile all relevant files using mex compiler. and add the selective_search_ijcv_with_python to your PYTHONPATH.

For all caffe users put the directory in CaffeROOT/python/ (dont put it in CaffeROOT/python/cafe/) and if you have already set your PYTHONPATH for pycaffe then you are set to go. No seperate pythonpath needed for selective search folder.