Open geriby opened 9 years ago
Hi I am trying to use selective search on a 8-channel image, and I am facing similar error
selective_search_rcnn({'/home/revathy/caffe-master/images/image0001.tif'}, '/tmp/tmpaHq356.mat')
Traceback (most recent call last):
File "./python/detect.py", line 173, in
Did you find a fix for it ?
I fixed the problem by that redefined the path in the "def_input.txt": /path/to/caffe/examples/images/fish-bike.jpg.
I'm traing to run your program on windows. I Have installed anaconda for numpy and scipy and
changed input source: /dev/null' ---> 'NUL' shlex.split(mc), stdout=open('NUL', 'w'), cwd=script_dirname)
But currently when I run this a have following error:
C:\Anaconda\python.exe D:/gitRepo/selective_search_ijcv_with_python-master/selective_search_ijcv_with_python-master/selective_search.py selective_search({'D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/000015.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/cat.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/000015.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/cat.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/000015.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/cat.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/000015.jpg','D:\gitRepo\selective_search_ijcv_with_python-master\selective_search_ijcv_with_python-master/cat.jpg'}, 'c:\users\opuk\appdata\local\temp\tmphtivfm.mat') Traceback (most recent call last): File "D:/gitRepo/selective_search_ijcv_with_python-master/selective_search_ijcv_with_python-master/selective_search.py", line 64, in
boxes = get_windows(image_filenames)
File "D:/gitRepo/selective_search_ijcv_with_python-master/selective_search_ijcv_with_python-master/selective_search.py", line 42, in get_windows
all_boxes = list(scipy.io.loadmat(output_filename)['all_boxes'][0])
File "C:\Anaconda\lib\site-packages\scipy\io\matlab\mio.py", line 131, in loadmat
MR = mat_reader_factory(file_name, appendmat, **kwargs)
File "C:\Anaconda\lib\site-packages\scipy\io\matlab\mio.py", line 55, in mat_reader_factory
mjv, mnv = get_matfile_version(byte_stream)
File "C:\Anaconda\lib\site-packages\scipy\io\matlab\miobase.py", line 218, in get_matfile_version
buffer = fileobj.read(4))
TypeError: buffer is too small for requested array
Could you help me find solution?
Best regards.