当前位置:网站首页>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
边栏推荐
- [confluence] JVM memory adjustment
- 剑指 Offer II 013. 二维子矩阵的和
- R语言ggplot2可视化:使用ggpubr包的ggviolin函数可视化小提琴图、设置palette参数自定义不同水平小提琴图的填充色、add参数在小提琴图添加箱图
- 【STL】vector
- Boot 和 Cloud 的版本选型
- Ucloud is a basic cloud computing service provider
- Download from MySQL official website: mysql8 for Linux X Version (Graphic explanation)
- ASP. Net gymnasium integrated member management system source code, free sharing
- Simulate the implementation of string class
- R language dplyr package mutate_ At function and min_ The rank function calculates the sorting sequence number value and ranking value of the specified data column in the dataframe, and assigns the ra
猜你喜欢
LeetCode_7_5
The project manager's "eight interview questions" is equal to a meeting
编译器优化那些事儿(4):归纳变量
Download from MySQL official website: mysql8 for Linux X Version (Graphic explanation)
【RT-Thread env 工具安装】
J ü rgen schmidhub reviews the 25th anniversary of LSTM papers: long short term memory All computable metaverses. Hierarchical reinforcement learning (RL). Meta-RL. Abstractions in generative adversar
使用高斯Redis实现二级索引
Leetcode force buckle (Sword finger offer 36-39) 36 Binary search tree and bidirectional linked list 37 Serialize binary tree 38 Arrangement of strings 39 Numbers that appear more than half of the tim
Openeuler prize catching activities, to participate in?
一张图深入的理解FP/FN/Precision/Recall
随机推荐
Time tools
R language dplyr package mutate_ At function and min_ The rank function calculates the sorting sequence number value and ranking value of the specified data column in the dataframe, and assigns the ra
How to buy stocks on your mobile phone and open an account? Is it safe to open an account
R language ggplot2 visualization: use the ggdensity function of ggpubr package to visualize the packet density graph, and use stat_ overlay_ normal_ The density function superimposes the positive dist
LeetCode 648(C#)
Redis master-slave and sentinel master-slave switchover are built step by step
凌云出海记 | 赛盒&华为云:共助跨境电商行业可持续发展
Interpretation of transpose convolution theory (input-output size analysis)
what‘s the meaning of inference
How to open an account for stock speculation? Excuse me, is it safe to open a stock account by mobile phone?
谷歌seo外链Backlinks研究工具推荐
JVM 类加载机制
LeetCode力扣(剑指offer 36-39)36. 二叉搜索树与双向链表37. 序列化二叉树38. 字符串的排列39. 数组中出现次数超过一半的数字
sql 常用优化
九章云极DataCanvas公司摘获「第五届数字金融创新大赛」最高荣誉!
IP 工具类
Cloud 组件发展升级
648. 单词替换
831. KMP字符串
How to buy bank financial products? Do you need a bank card?