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





  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值