CNN_face_detection icon indicating copy to clipboard operation
CNN_face_detection copied to clipboard

About the face size in create_face_12c.sh

Open MaxLingwei opened this issue 10 years ago • 6 comments

Dear anson, I've read you code in create_face_12c.sh. I found that you resize the image to 60 * 60. I don't understand why you do so. And by the way why do you set the RESIZE_HEITHG and RESIZE_WIDTH both to be 15? Hope for your answering. Thank you very much!

MaxLingwei avatar Sep 25 '16 07:09 MaxLingwei

Hi, the images created from that .sh file are actually 15 * 15, the comments were copied from create_face_48c.sh, sorry.. The face sizes in the lmdb are sizes of 15, such that one image can create 10 crops (top-left, top-right, bottom-left, middle, and mirrors of previous 5 crops) of sizes 12 x 12 during training.

anson0910 avatar Sep 26 '16 00:09 anson0910

So you mean that the final image used to training is also 12 * 12?

MaxLingwei avatar Sep 27 '16 04:09 MaxLingwei

The images created are of size 15 * 15, but caffe will crop blocks of sizes 12 x 12.

anson0910 avatar Sep 27 '16 05:09 anson0910

And in which step will caffe crop the image?

MaxLingwei avatar Sep 27 '16 12:09 MaxLingwei

When you perform training through executing ./build/tools/caffe train --solver=models/face_12c/solver.prototxt

It's specified inside face_12c/train_val.prototxt

anson0910 avatar Sep 27 '16 12:09 anson0910

OK, I see. It's very nice for you to answer my question. Thany you very much!

MaxLingwei avatar Sep 27 '16 13:09 MaxLingwei