当前位置:网站首页>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 
边栏推荐
- PMP每日一练 | 考试不迷路-7.7
- ant desgin 多选
- 最多可以参加的会议数目[贪心 + 优先队列]
- R语言ggplot2可视化:使用ggpubr包的ggviolin函数可视化小提琴图、设置palette参数自定义不同水平小提琴图的填充色、add参数在小提琴图添加箱图
- 怎么在手机上买股票开户 股票开户安全吗
- 多个线程之间如何协同
- 一张图深入的理解FP/FN/Precision/Recall
- el-upload上传组件的动态添加;el-upload动态上传文件;el-upload区分文件是哪个组件上传的。
- 论文解读(ValidUtil)《Rethinking the Setting of Semi-supervised Learning on Graphs》
- Unable to link the remote redis server (solution 100%
猜你喜欢

9 atomic operation class 18 Rohan enhancement

Nunjuks template engine

Le PGR est - il utile au travail? Comment choisir une plate - forme fiable pour économiser le cœur et la main - d'œuvre lors de la préparation de l'examen!!!

Automatic classification of defective photovoltaic module cells in electroluminescence images-論文閱讀筆記

openEuler 有奖捉虫活动,来参与一下?
![[RT thread env tool installation]](/img/bc/9b39651d40a240f0893200793f67e9.png)
[RT thread env tool installation]

mock. JS returns an array from the optional data in the object array

8 CAS

华南X99平台打鸡血教程

Compiler optimization (4): inductive variables
随机推荐
The state cyberspace Office released the measures for data exit security assessment: 100000 information provided overseas needs to be declared
Welcome to the markdown editor
Kubernetes——kubectl命令行工具用法详解
开源重器!九章云极DataCanvas公司YLearn因果学习开源项目即将发布!
The strength index of specialized and new software development enterprises was released, and Kirin Xin'an was honored on the list
gorilla官方:golang开websocket client的示例代码
Navicat连接2002 - Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘解决
Download from MySQL official website: mysql8 for Linux X Version (Graphic explanation)
R语言ggplot2可视化:使用ggpubr包的ggstripchart函数可视化分组点状条带图(dot strip plot)、设置position参数配置不同分组数据点的分离程度
指定opencv非标准安装的版本
L1-027 rental (Lua)
PMP对工作有益吗?怎么选择靠谱平台让备考更省心省力!!!
Time tools
索引总结(突击版本)
openEuler 资源利用率提升之道 01:概论
mysql 的一些重要知识
mock. JS returns an array from the optional data in the object array
让这个 CRMEB 单商户微信商城系统火起来,太好用了!
凌云出海记 | 赛盒&华为云:共助跨境电商行业可持续发展
R language uses ggplot2 function to visualize the histogram distribution of counting target variables that need to build Poisson regression model, and analyzes the feasibility of building Poisson regr
https://github.com/meituan/YOLOv6