当前位置:网站首页>YoloV6:YoloV6+Win10---训练自己得数据集
YoloV6:YoloV6+Win10---训练自己得数据集
2022-07-07 17:53:00 【Mr曲末寒】
yolov6刚出来得那会我也跑了下,问题实在太多了,各种得bug,就暂时停了会,后面有时间了在看看就重新git下跑了跑。据说YoloV7也出来是AB大神团队出品得,不是某个人所谓得YoloV7....
1、数据集
我用的是自己得数据集,先看下数据集格式吧。
val和train存放得是图片,labels存放的是train val文件夹,里面放的是txt
同时在查看下配置文件,我的数据集 只有两个类别
此处还要改下dataset.py里面得一处;
2、训练
训练命令:
python tools/train.py --batch 6 --conf configs/yolov6s_finetune.py --data data/MyDataCoCo.yaml --device 0 --epochs 800 --workers 0
我是在自己本机训练的,所以bs设置得小点
训练结束,大家看到,map不为0了,那是我们使用得是yolov6s_finetune.py 如果大家使用的是yolov6s.py,相当于没有加载与训练模型,具体大家可以去Yolov6的github issues去看看。
https://github.com/meituan/YOLOv6/issues/205#issuecomment-1173409870
800轮训练时间将近19个小时。。。。。。。。。
3、测试
测试代码:
python tools/infer.py --weights runs/train/exp/weights/best_ckpt.pt --source CiWaData/val --yaml data/MyDataCoCo.yaml
测试结果:
4、ONNX导出
导出命令:
export_onnx.py --weights runs/train/exp/weights/best_ckpt.pt --img 640 --batch 1
边栏推荐
- 8 CAS
- 最多可以参加的会议数目[贪心 + 优先队列]
- 指定opencv非标准安装的版本
- Kubernetes——kubectl命令行工具用法详解
- 九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」
- Empowering smart power construction | Kirin Xin'an high availability cluster management system to ensure the continuity of users' key businesses
- LeetCode 648(C#)
- R language ggplot2 visualization: use the ggqqplot function of ggpubr package to visualize the QQ graph (Quantitative quantitative plot)
- Some arrangements about oneself
- 841. 字符串哈希
猜你喜欢
Cloud 组件发展升级
索引总结(突击版本)
el-upload上传组件的动态添加;el-upload动态上传文件;el-upload区分文件是哪个组件上传的。
Nunjuks template engine
Download from MySQL official website: mysql8 for Linux X Version (Graphic explanation)
9 原子操作类之18罗汉增强
PMP practice once a day | don't get lost in the exam -7.7
mock.js从对象数组中任选数据返回一个数组
Introduction to bit operation
openEuler 有奖捉虫活动,来参与一下?
随机推荐
凌云出海记 | 赛盒&华为云:共助跨境电商行业可持续发展
A pot of stew, a collection of common commands of NPM and yarn cnpm
L1-027 rental (Lua)
PMP每日一练 | 考试不迷路-7.7
一锅乱炖,npm、yarn cnpm常用命令合集
索引总结(突击版本)
Dynamic addition of El upload upload component; El upload dynamically uploads files; El upload distinguishes which component uploads the file.
Kirin Xin'an joins Ningxia commercial cipher Association
2022如何评估与选择低代码开发平台?
Browse the purpose of point setting
Flink并行度和Slot详解
爬虫实战(七):爬王者英雄图片
强化学习-学习笔记8 | Q-learning
【剑指offer】剑指 Offer II 012. 左右两边子数组的和相等
R语言dplyr包select函数、group_by函数、filter函数和do函数获取dataframe中指定因子变量中指定水平中特定数值数据列的值第三大的值
How to buy bank financial products? Do you need a bank card?
Cloud 组件发展升级
关于ssh登录时卡顿30s左右的问题调试处理
My creation anniversary
吞吐量Throughout