2015_Face_Detection icon indicating copy to clipboard operation
2015_Face_Detection copied to clipboard

vl_simplenn failure protection

Open ikvision opened this issue 9 years ago • 1 comments

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 avatar Feb 21 '16 21:02 ikvision

@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.

layumi avatar Feb 25 '16 02:02 layumi