当前位置:网站首页>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 
边栏推荐
- Throughput
- 剑指 Offer II 013. 二维子矩阵的和
- 841. 字符串哈希
- Cloud 组件发展升级
- 关于ssh登录时卡顿30s左右的问题调试处理
- Ucloud is a basic cloud computing service provider
- Introduction to bit operation
- 【剑指offer】剑指 Offer II 012. 左右两边子数组的和相等
- 关于自身的一些安排
- Empowering smart power construction | Kirin Xin'an high availability cluster management system to ensure the continuity of users' key businesses
猜你喜欢

编译器优化那些事儿(4):归纳变量

Download from MySQL official website: mysql8 for Linux X Version (Graphic explanation)

Make insurance more "safe"! Kirin Xin'an one cloud multi-core cloud desktop won the bid of China Life Insurance, helping the innovation and development of financial and insurance information technolog

Cloud 组件发展升级

位运算介绍

PMP每日一练 | 考试不迷路-7.7

The state cyberspace Office released the measures for data exit security assessment: 100000 information provided overseas needs to be declared
![[Verilog advanced challenge of Niuke network question brushing series] ~ multi bit MUX synchronizer](/img/7d/ed9a5c536b4cc1913fb69640afb98d.png)
[Verilog advanced challenge of Niuke network question brushing series] ~ multi bit MUX synchronizer

Redis master-slave and sentinel master-slave switchover are built step by step

PMP practice once a day | don't get lost in the exam -7.7
随机推荐
Welcome to the markdown editor
tp6 实现佣金排行榜
小试牛刀之NunJucks模板引擎
R语言ggplot2可视化:使用ggpubr包的ggstripchart函数可视化分组点状条带图(dot strip plot)、设置position参数配置不同分组数据点的分离程度
我的创作纪念日
The DBSCAN function of FPC package of R language performs density clustering analysis on data, checks the clustering labels of all samples, and the table function calculates the two-dimensional contin
Make this crmeb single merchant wechat mall system popular, so easy to use!
多个线程之间如何协同
Specify the version of OpenCV non-standard installation
银行理财产品怎么买?需要办银行卡吗?
转置卷积理论解释(输入输出大小分析)
歌单11111
Some arrangements about oneself
R语言ggplot2可视化:使用ggpubr包的ggviolin函数可视化小提琴图、设置palette参数自定义不同水平小提琴图的填充色、add参数在小提琴图添加箱图
Matplotlib drawing 3D graphics
一锅乱炖,npm、yarn cnpm常用命令合集
注解。。。
Introduction to bit operation
最多可以参加的会议数目[贪心 + 优先队列]
Notes...
https://github.com/meituan/YOLOv6