insightface cutting process data

Cutting data

We experiment with lfw data, you can also find the data themselves.

lfw data 
HTTP: //vis-www.cs.umass.edu/lfw/ 
I downloaded the original image HTTPS: //drive.google.com/file/d/1p1wjaqpTh_5RHfJu4vUh8JJCdKwYMHCp/view?usp=sharing

Data stored in the src / data;

data / lfw sub directory stored data for each category, each a folder, which kept FIG.

Providing the code in the aligned facial src / align, the testing and alignment.

Switch to the src / align directory, execute the following command can crop the picture.

python align_lfw.py    --input-dir /lwh/insightface-master/src/data/lfw  --output-dir  /lwh/insightface-master/src/data/lfw_align

 

Cropped image size is 112 * 112, images of different sizes can be cut according to the needs of their own, such as facenet image size is 160 * 160 claims

Guess you like

Origin www.cnblogs.com/liuwenhua/p/11585881.html