当前位置:网站首页>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
边栏推荐
- Simple use of autojs
- M-arch (fanwai 12) gd32l233 evaluation -cau encryption and decryption (tease Xiaobian)
- 命名规范/注释规范/逻辑规范
- 2022淘宝618超级喵运会玩法来了 超级喵运会有哪些攻略方法
- AcWing 128. 编辑器(对顶栈 实现序列内部指定位置高效修改)
- Get start date and end date for all quarters of the year
- Grid layout
- MySQL performance test (slow query log)
- Malicious code analysis practice - lab03-01 Exe basic dynamic analysis
- PHP wechat red packet allocation logic
猜你喜欢

MySQL performance test (slow query log)

Tp6+memcached configuration

M-Arch(番外10)GD32L233评测-SPI驱动DS1302

AcWing 41. 包含min函数的栈(单调栈)

On 3dsc theory and application of 3D shape context feature

ArrayList automatic capacity expansion principle

Pseudo static setting of access database in win2008 R2 iis7.5

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

AcWing 128. 编辑器(对顶栈 实现序列内部指定位置高效修改)

Global and local existence of array, integer and character variables
随机推荐
重量级代理缓存服务器Squid
2021-03-24
Collation of common functions in JS
How to play the 2022 Taobao 618 Super Cat Games? What are the strategies for the Super Cat Games
Flex layout
Vite Basics
SOT23(Small Outline Transistor)
M-Arch(番外11)GD32L233评测-PWM驱动有源蜂鸣器
分布式存储探索
MySQL implements split method
The solution of Lenovo notebook ThinkPad t440 WiFi dropping all the time
JS string combination
Php:redis uses geospatial
890. 查找和替换模式
Principle analysis of vite HMR
Tp6+memcached configuration
NFT数字藏品的可验证性和稀缺性
PHP get (remote) large file method record
PHP can load different new data methods for each refresh
Mysql5.6.24 installation free deployment method