libfacedetection.train
libfacedetection.train copied to clipboard
请问余老师,我看源码,图片在送入网络前会转成27通道,我需要训练单通道的图片,应该怎么修改呢
//only 27 elements used for each pixel
create((imgHeight+1)/2, (imgWidth+1)/2, 32);
//since the pixel assignment cannot fill all the elements in the blob.
//some elements in the blob should be initialized to 0
setZero();