2015_Face_Detection
2015_Face_Detection copied to clipboard
vl_simplenn failure protection
vl_simple cannot handle empty input images, this is why I find this code useful:
if isempty(posbatch24.im)
%disp('no24face');
continue;
end
res24c = vl_simplenn(net24_c, posbatch24.im) ;
Do you think a similar protection can be useful in the following cases?
res24 = vl_simplenn(net24, im24) ;
res48 = vl_simplenn(net48, im48) ;
res48c = vl_simplenn(net48_c, cim48) ;
Or in those cases the algorithm should never produce an empty input image?
@ikvision yes. Sometimes there are no faces in one certain pic at certain scale. So you can not get a face detection bounding box according to the threshold. It's necessary to add code to avoid this happen.