ShaoqingRen / faster_rcnn

Faster R-CNN
Other
2.7k stars 1.22k forks source link

about VOChash_init #153

Open fzcmin opened 7 years ago

fzcmin commented 7 years ago

How to set the value of hsize in VOChash_init()? I've got some error about'Index exceeds matrix dimensions' VOChash_init (line 10) h=mod(str2double(s([3:4 6:11 13:end])),hsize)+1;

function hash = VOChash_init(strs)

hsize=4999; hash.key=cell(hsize,1); hash.val=cell(hsize,1);

for i=1:numel(strs) s=strs{i}; h=mod(str2double(s([3:4 6:11 13:end])),hsize)+1; j=numel(hash.key{h})+1; hash.key{h}{j}=strs{i}; hash.val{h}(j)=i; end

marmus12 commented 7 years ago

same problem, but i guess it has nothing to do with the faster rcnn

Victoria-1 commented 6 years ago

hello, I've got the same problem, have you solved it?