当前位置:网站首页>YOLOv4解析 | 第二篇:用YOLOv4训练自己的数据集(超级详细完整版)
YOLOv4解析 | 第二篇:用YOLOv4训练自己的数据集(超级详细完整版)
2022-06-09 06:33:00 【K同学啊】
文章目录
项目下载地址:【百度网盘】
第一部分:训练模型
第1步:将数据放到指定位置
- 将
.xml文件放到./VOCdevkit/VOC2007/Annotations路径下 - 将图片数据放到
./VOCdevkit/VOC2007/JPEGImages路径下

第2步:修改voc_classes.txt文件
在 voc_classes.txt 文件中添加自己的类别

第3步:运行voc_annotation.py文件
运行voc_annotation.py文件生成./VOCdevkit/VOC2007/ImageSets里面的.txt文件以及训练用的2007_train.txt、2007_val.txt文件
第4步:添加权重文件
在 ./model_data/ 位置下添加权重文件 yolo4_weights.pth

第5步:运行train.py文件
直接运行 train.py 文件即可~
第二部分:评估模型
第1步:修改权重文件and类别文件路径
修改 yolo.py 文件中的 model_path 与 classes_path 参数
- model_path:指向训练好的权值文件
- classes_path:指向检测类别所对应的txt

第2步:运行get_map.py文件
代码的运行结果将保存在 ./map_out/ 处。

边栏推荐
猜你喜欢

Selection of industrial am335x core modules

Mendeley 等文献管理工具在word中插入参考文献的报错解决

Lazy counter

Bladed sequential wind configuration method

Quanzhi v3s learning record (9) buildreoot file system construction

Quanzhi v3s learning record (11) audio and video Usage Summary

你真的懂熵了嗎(含交叉熵)

Chapter_ 03 mask operation of matrix

UML系列文章(27)体系结构建模---部署

Chapter_ 02 how to scan and view images, query tables and time metrics in opencv
随机推荐
UML系列文章(23)高级行为---进程和线程
Mutual exclusion and synchronization in kernel
深度学习之二手手机价格预测
Quit smoking log_ 02 (day_06)
Sqlserver imports and exports data. There is a process in the background and no display in the foreground.
Chapter_ 04 image operation
CodeBlocks老是重复运行上一次结果
SVN账号密码查找
RuntimeError: Dataset not found or corrupted. You can use download=True to download it
全志V3s学习记录(9)buildroot文件系统构建
UML series articles (27) architecture modeling - Deployment
量化交易之MySql篇 - mysql数据库 增删改查
Example of flow chart, sequence diagram and Gantt chart of typera
SQLServer 导入导出数据,后台有进程,前台无显示。
Warning : `load_model` does not return WordVectorModel or SupervisedModel any more, but a `FastText`
Svn account password search
Recursive routines of binary trees
UML系列文章(22)高级行为---状态机
Chapter_ 01 mat: basic image container
Do you really understand entropy (including cross entropy)