当前位置:网站首页>Some problems in face recognition testing with facenet source code
Some problems in face recognition testing with facenet source code
2022-07-19 05:45:00 【Just do it! ට⋆*】
1. First download facenet Source code :https://github.com/davidsandberg/facenet
2. function facenet
use pycharm open , Download it tensorflow1.7 edition , Corresponding python Version is 3.6, There's a hole here , install tensoorflow1.7.0 When it comes to numpy Inconsistent with other library versions , It needs to be reinstalled step by step according to the prompts .
Installation Library :conda install Library name == edition
Delete Library :conda uninstall Library name
3. download flw Data sets
link : http://vis-www.cs.umass.edu/lfw/
After downloading , Unzip to data\lfw_data\lfw, If there is no folder, create it yourself
4. Preprocess photos
The face photos downloaded here are 250250 Pixels , Need to change to 160160 Pixels ,
stay pycharm Open in align_dataset_mtcnn.py file , To configure parameters:
Download datasets Store the processed data set Processing settings ( Create a file based on the path )
D:\yanyi\project_process\facenet-master\src\data\lfw_data\lfw D:\yanyi\project_process\facenet-master\src\data\lfw_data\lfw_160 --image_size 160 --margin 32 --random_order --gpu_memory_fraction 0.25
After processing the photos , Can be in lfw_160 See the processed file in the file 
stay data A paris.txt file
5. Test the model
Mode one : download facenet Training models
Click the download link
What is used here is 20180408-102900 Model under file , Copy this file to facenet\src\models Under the table of contents .
Here I first use pycharm Add parameter :
The path where the dataset is located The path of the model
Such as D:\yanyi\project_process\facenet-master\src\data\lfw_data\lfw_160 D:\yanyi\project_process\facenet-master\src\models\20180408-102900
Add parameters to parameters, function validate_on_lfw.py After the discovery
There has been a lack data\paris.txt file error , No solution has yet been found , But use cmd After operation , Running successfully !
cd To src Under the document :
python validate_on_lfw.py D:\yanyi\project_process\facenet-master\src\data\lfw_data\lfw_160 D:\yanyi\project_process\facenet-master\src\models\20180408-102900

Recognition accuracy reaches 0.97, Test success
There are some mistakes , Not yet
边栏推荐
猜你喜欢

C语言——冒泡排序
![[first launch in the whole network] will an abnormal main thread cause the JVM to exit?](/img/ae/5df25d64c2f29292bbfb21f696bbb0.png)
[first launch in the whole network] will an abnormal main thread cause the JVM to exit?

Calculator of wechat applet

用facenet源码进行人脸识别测试过程中的一些问题

seq2seq (中英对照翻译)Attention

PyTorch学习笔记【2】:学习的机制

Wxml template syntax in wechat applet

软件过程与管理复习(八)

尝试解决YOLOv5推理rtsp有延迟的一些方法

Common components of wechat applet
随机推荐
1. Neusoft cross border e-commerce warehouse demand specification document
Could not locate zlibwapi.dll. Please make sure it is in your library path
关于Kotlin泛型遇到的问题
sqlalchemy的两种方法详解
软件过程与管理复习(八)
List and map
Problems encountered by kotlin generics
Configure tabbar and request network data requests
Class file format understanding
Pointnet++代码详解(一):farthest_point_sample函数
SQL time comparison
Wxml template syntax in wechat applet
9. Dim layer construction of data warehouse construction
JNI practical notes
Use of MySQL
网吧管理系统数据库设计
7. Data warehouse environment preparation for data warehouse construction
Wechat applet password display hidden (small eyes)
Spark core programming (4) -- spark operation architecture
C语言实现迭代实现二分查找