Robert0812 / salience_reid

MATLAB code for our CVPR 2013 work "R. Zhao, W. Ouyang, and X. Wang. Unsupervised Salience Learning for Person Re-identification. In CVPR 2013."
http://mmlab.ie.cuhk.edu.hk/projects/project_salience_reid/index.html
31 stars 36 forks source link

Encountering issue while trying to run demo_salience_reid_viper #3

Closed arkobarman closed 9 years ago

arkobarman commented 9 years ago

I am getting the following error when I type demo_salience_reid_viper(10):

Error using mat2cell (line 106) Input arguments, D1 through D2, must sum to each dimension of the input matrix size, [0 0].'

Error in initialcontext_general (line 17) cell_all = mat2cell(array_all, ones(1, length(fnames)), [4, 3, 4]);

Error in demo_salience_reid_viper (line 66) initialcontext_general;

Robert0812 commented 9 years ago

The error shows that matrix "array_all" is of zero size, which means your input image files are not correctly loaded. Check you dataset whether it is put in the correct directory.

arkobarman commented 9 years ago

Thanks for the reply. I could do it but it takes a lot of time due to the use of parpool, specially for ETHZ. Is there a version of this code without using parpool or parfor?

Robert0812 commented 9 years ago

No, but you can comment the line "matlabpool" or directly revise "parfor" to "for" to disable the usage of parpool

arkobarman commented 9 years ago

Thanks. I could get it to run now.