davidsandberg/facenet use lfw validate


聲明以下,我本文有時候寫的是咂咂英文是因爲,是在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





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章