当前位置:网站首页>AI - face
AI - face
2022-06-12 10:42:00 【程序员的记录】
資料
insightface
环境安装
- pip3:sudo apt install python3-pip
- numpy:pip3 install --user numpy scipy matplotlib
- pip install mxnet-cu101
[1] cuda版本是10.1 - pip install opencv-python
- insightface下载
训练
前处理
- 基于检测网络检测对齐,如MTCNN
- 基于属性网络去除戴墨镜、口罩的
- 删除角度大于60度的
- 删除id文件数小于5的
打包
- mxnet框架中的脚本 im2rec.py
- 生成文件夹内的文件列表 (name.lst)
(1) python im2rec.py --list --recursive name data_dir - 生成二进制文件(name.rec, name.idx)
(1) python im2rec.py name.lst data_dir
训练
- 修改配置信息 config.py
dataset.emore.dataset_path = './alg_test' # 默认名字 train.rec, train.idx
dataset.emore.num_classes = 1193
dataset.emore.image_shape = (128, 128, 3)
default.end_epoch = 200
default.per_batch_size = 40
default.ckpt = 3
default.lr_steps = '65682,112680,150240,187870'
default.models_root = './models'
- 训练命令
CUDA_VISIBLE_DEVICES=‘0’ python -u train.py --network r100 --loss arcface --dataset emore
边栏推荐
- Mobile terminal commissioning
- 数组,整型,字符变量在全局和局部的存在形式
- Global and local existence of array, integer and character variables
- JS open common application market
- Simple use of autojs
- On 3dsc theory and application of 3D shape context feature
- k59.第二章 基于二进制包安装kubernetes v1.23 --集群部署
- Mysql5.6.24 installation free deployment method
- PHP interface generates cache and MD5 encryption uniformly
- 2022京东618预售定金怎么退?京东618定金能退吗?
猜你喜欢

Tp6+memcached configuration

M-Arch(番外11)GD32L233评测-PWM驱动有源蜂鸣器

AcWing 135. 最大子序和(前缀和 + 单调队列求定长区间最小值)

深度学习与CV教程(14) | 图像分割 (FCN,SegNet,U-Net,PSPNet,DeepLab,RefineNet)

How to play the 2022 Taobao 618 Super Cat Games? What are the strategies for the Super Cat Games

A hundred secrets and a few secrets - Caesar encryption

On the improvement of 3dsc by harmonic shape context feature HSC

Why check the @nonnull annotation at run time- Why @Nonnull annotation checked at runtime?

Index query efficiency of MySQL

Solution to invalid small program scroll into view
随机推荐
On the improvement of 3dsc by harmonic shape context feature HSC
Error during session start; please check your PHP and/or webserver log file and configure your PHP
Binassii module - converting between binary and ASCII
XML Parsing Error: mismatched tag. Expected
See if you fall into the trap of "labeling" customers and users?
AcWing 131. 直方图中最大的矩形(单调栈经典运用 模板)
Common tools download address
Leetcode2154. 将找到的值乘以 2(二分查找)
Malicious code analysis practice - use IDA pro to analyze lab05-01 dll
人脸识别pip 安装dlib库失败
How to play the 618 super cat games on Taobao? Here comes the introduction to the overall activities of the Super Cat Games
MYSQL——内置函数
数组,整型,字符变量在全局和局部的存在形式
PHP download station B video
M-Arch(番外11)GD32L233评测-PWM驱动有源蜂鸣器
Index query efficiency of MySQL
Common port description
Malicious code analysis practice - lab06-01 exe~Lab06-04. Exe dynamic analysis
PHP get (remote) large file method record
PHP Apple purchase verification steps