当前位置:网站首页>人脸识别5.1- insightface人脸检测模型训练实战笔记
人脸识别5.1- insightface人脸检测模型训练实战笔记
2022-07-27 18:22:00 【愚昧之山绝望之谷开悟之坡】
1、 insightface/ detection / scrfd模型训练
1.0、数据集
数据集下载说明:https://github.com/deepinsight/insightface/tree/master/detection/datasets
官方下载目录:http://shuoyang1213.me/WIDERFACE/
标签下载:https://gitee.com/link?target=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1UW3KoApOhusyqSHX96yEDRYiNkd3Iv3Z%2Fview%3Fusp%3Dsharing
飞桨数据集和标签整体打包下载:https://aistudio.baidu.com/aistudio/datasetdetail/157445
1.1、安装
1.1.0、虚拟环境安装
Linux-Centos7下安装Anaconda,conda 安装虚拟环境,cuda,cudnn
1.1.1、pytorch安装
不同的cuda版本用不同的安装方式,查找历史版本:pytorch安装参考
pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
import torch
print(torch.__version__) # '1.7.0'
print(torch.version.cuda) # 10.2
torch.cuda.is_available() # False
1.1.2、mmcv安装
mmcv安装参考和cuda以及pytorch相匹配:https://mmcv.readthedocs.io/en/latest/get_started/installation.html
pip install -U openmim
mim install mmcv-full==1.3.17 -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.7.0/index.html
pip install mmdet -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.7.0/index.html
1.1.3、整体编译安装
git clone https://gitee.com/AI-Mart/insightface.git
cd insightface/detection/scrfd
或者
cd /data/mart/face_insightface/insightface/detection/scrfd
pip install -r requirements/build.txt
pip install -v -e . # or "python setup.py develop"
pip install scipy
1.2、训练
python ./tools/train.py ./configs/scrfd/scrfd_1g.py --gpus=1
nohup python ./tools/train.py ./configs/scrfd/scrfd_1g.py --gpus=1 2>&1 &
tail -f nohup.out
边栏推荐
- [dataset display annotation] VOC file structure + dataset annotation visualization + code implementation
- 【分层强化学习】HAC论文及代码
- R语言dplyr包summarise_at函数计算dataframe数据中多个数据列(通过向量指定)的计数个数、均值和中位数、使用list函数指定函数列表(使用.符号和~符号指定函数语法purr)
- 认识传输介质网络通信的介质
- Software test interview question: count the number in a queue, how many positive numbers and how many negative numbers, such as [1, 3, 5, 7, 0, -1, -9, -4, -5, 8]
- 金仓数据库 KingbaseES 异构数据库移植指南 (4. 应用迁移流程)
- 用户和权限限制用户使用资源
- 在字节干了两年离职后,一口气拿到15家Offer
- 推荐一款强大的搜索工具Listary
- Swiftui view onReceive method receives "redundant" event resolution
猜你喜欢

LabVIEW学习笔记五:按钮按下后无法返回原状

【深度学习】Pytorch Tensor 张量
![[hierarchical reinforcement learning] HAC paper and code](/img/f5/d5f791d0f9da749eafa912be9dfbb5.png)
[hierarchical reinforcement learning] HAC paper and code
![[dataset display annotation] VOC file structure + dataset annotation visualization + code implementation](/img/09/645ce4de40d18d8dd4532554826c9a.png)
[dataset display annotation] VOC file structure + dataset annotation visualization + code implementation

adb shell ls /system/bin(索引表)

Why does Alibaba prohibit more than three forms from joining?

Best practices for Oracle kingbasees migration of Jincang database (4. Oracle database migration practice)

JVs privatization deployment start failure handling scheme

People call this software testing engineer. You're just making a living (with HR interview Dictionary)

Download of MySQL driver jar package -- nanny tutorial
随机推荐
[deep learning] video classification technology sorting
JVs privatization deployment start failure handling scheme
People call this software testing engineer. You're just making a living (with HR interview Dictionary)
【防抖与节流】
从0开始写bootloader
MySQL log error log
基于ATX自动化测试解决方案
JVS私有化部署启动失败处理方案
Hcip day 5
RK3399平台入门到精通系列讲解(导读篇)21天学习挑战介绍
Programmer growth Chapter 18: project launch
十年测试老鸟聊聊移动端兼容性测试
[Numpy] 广播机制(Broadcast)
Why are TS slice files generated when easycvr platform turns off video recording?
To do the test, you have to go to the big factory and disclose the "hidden rules" of bat big factory recruitment internally
《SRE:Google运维解密》读后有感
Arduino开发(二)_基于Arduino UNO开发板的RGB灯光控制方法
金仓数据库 Oracle 至 KingbaseES 迁移最佳实践 (4. Oracle数据库移植实战)
走马灯案例
用户组织架构的管理