声明以下,我本文有时候写的是咂咂英文是因为,是在linux上,我懒得切换中文输入法。
link https://github.com/davidsandberg/facenet/wiki/Validate-on-LFW by english notes
this page use that
first
install dependencies
1.facenet repo
link: on github and search facenet you can find davidsandberg/facenet
2.tensorflow
3.required python models
python models: opencv scipy sklearn numpy ...
4.data
download lfw datasets
and tar is on facenet-master src
cd ~/datasets
mkdir -p lfw/raw
tar xvf ~/Downloads/lfw.tgz -C lfw/raw --strip-components=1
than
export PYTHONPATH=[...]/facenet/src
[...]is you facenet-master local path this facenet should change by facenet-master
second Align the LFW dataset
i do a shell script
root is this
for N in {1..4}; do \
python src/align/align_dataset_mtcnn.py \
~/datasets/lfw/raw \
~/datasets/lfw/lfw_mtcnnpy_160 \
--image_size 160 \
--margin 32 \
--random_order \
--gpu_memory_fraction 0.25 \
& done
there mabey hava this problem you should change your code
here change like that
这个就是根据需求增长的改法。
感谢这位博主。
than success is this
models