AlibabaResearch / efficientteacher

A Supervised and Semi-Supervised Object Detection Library for YOLO Series
GNU General Public License v3.0
820 stars 147 forks source link

如何生成yolov7的map.txt文件 #78

Open wmjlincy opened 1 year ago

wmjlincy commented 1 year ago

你好,请问yolov7的map.txt和map_v7.txt怎么生成的呢,我根据yolov7的网络结构自己生成的map.txt,转换成模型可识别的权重文件后,训练代码可以跑通,但是AP0.5要比用yolov7模型跑的结果小10%左右。感觉有点问题,可以麻烦提供下yolov7对应的map.txt和map_v7.txt文件吗?

wqy19980318 commented 11 months ago

@wmjlincy 请问你的问题解决了吗? 可以分享一下你的map_v7.txt文件吗?

delicate00 commented 11 months ago

map_v7文件可以实现了吗?可以交流下吗

wmjlincy commented 11 months ago

你好,我用的是GitHub上开源的pt文件,先有监督训练,然后半监督训练。 ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月18日 17:40 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) |

@wmjlincy 请问你的问题解决了吗? 可以分享一下你的map_v7.txt文件吗?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

delicate00 commented 11 months ago

你好,我用的是GitHub上开源的pt文件,先有监督训练,然后半监督训练。 ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月18日 17:40 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | @wmjlincy 请问你的问题解决了吗? 可以分享一下你的map_v7.txt文件吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

最后跑出来的效果如何,我用我自己的数据集跑,效果并不是很乐观; 另外,你尝过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map吗,我只可以得到一行数据,但是类别是有5类的,不知道是什么原因导致的,你验证的时候结果是正常的吗。

602fb330ab551006eca89ca1c4acd26
wmjlincy commented 11 months ago

你好,我用自己的数据集跑的时候,没有yolov7的效果好;没有尝试过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map,因为类别不一致。

---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月21日 14:18 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) |

你好,我用的是GitHub上开源的pt文件,先有监督训练,然后半监督训练。 ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月18日 17:40 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | @wmjlincy 请问你的问题解决了吗? 可以分享一下你的map_v7.txt文件吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

最后跑出来的效果如何,我用我自己的数据集跑,效果并不是很乐观; 另外,你尝过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map吗,我只可以得到一行数据,但是类别是有5类的,不知道是什么原因导致的,你验证的时候结果是正常的吗。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

delicate00 commented 11 months ago

你好,我用自己的数据集跑的时候,没有yolov7的效果好;没有尝试过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map,因为类别不一致。 ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月21日 14:18 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | 你好,我用的是GitHub上开源的pt文件,先有监督训练,然后半监督训练。 ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月18日 17:40 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | @wmjlincy 请问你的问题解决了吗? 可以分享一下你的map_v7.txt文件吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.> 最后跑出来的效果如何,我用我自己的数据集跑,效果并不是很乐观; 另外,你尝过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map吗,我只可以得到一行数据,但是类别是有5类的,不知道是什么原因导致的,你验证的时候结果是正常的吗。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>

请问你用yolov7模型在efficient teacher上进行半监督或有监督训练的时候,使用的是yolov7的head吗?还是使用的是yolov5或者yolox的head呢

wmjlincy commented 11 months ago

你好,使用的是yolov7的head

---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年10月07日 09:38 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) |

你好,我用自己的数据集跑的时候,没有yolov7的效果好;没有尝试过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map,因为类别不一致。 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月21日 14:18 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | 你好,我用的是GitHub上开源的pt文件,先有监督训练,然后半监督训练。 ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月18日 17:40 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | @wmjlincy 请问你的问题解决了吗? 可以分享一下你的map_v7.txt文件吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.> 最后跑出来的效果如何,我用我自己的数据集跑,效果并不是很乐观; 另外,你尝过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map吗,我只可以得到一行数据,但是类别是有5类的,不知道是什么原因导致的,你验证的时候结果是正常的吗。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>

请问你用yolov7模型在efficient teacher上进行半监督或有监督训练的时候,使用的是yolov7的head吗?还是使用的是yolov5或者yolox的head呢

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

delicate00 commented 11 months ago

你好,使用的是yolov7的head ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年10月07日 09:38 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | 你好,我用自己的数据集跑的时候,没有yolov7的效果好;没有尝试过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map,因为类别不一致。 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月21日 14:18 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | 你好,我用的是GitHub上开源的pt文件,先有监督训练,然后半监督训练。 ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月18日 17:40 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | @wmjlincy 请问你的问题解决了吗? 可以分享一下你的map_v7.txt文件吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.> 最后跑出来的效果如何,我用我自己的数据集跑,效果并不是很乐观; 另外,你尝过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map吗,我只可以得到一行数据,但是类别是有5类的,不知道是什么原因导致的,你验证的时候结果是正常的吗。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.> 请问你用yolov7模型在efficient teacher上进行半监督或有监督训练的时候,使用的是yolov7的head吗?还是使用的是yolov5或者yolox的head呢 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

打扰您了,麻烦问下yolov7的head部分方便贴出来一下吗?就单这一部分您在作者的基础上做过修改吗?因为我使用yolov5的head训练出来还算正常,一旦替换了yolov7的head,精度值就非常的低,不知道是不是这一个部分哪里没有做修改。十分感谢您

wmjlincy commented 11 months ago

yolov7的head,没做更改,配置文件里Head name为Yolov7,Loss assigner_type为SimOTA,然后监督训练的配置文件的weights为efficientteacher-main在github上下载的yolov7的权重,名为efficient-yolov7.pt,然后半监督训练的配置文件的weights为监督训练保存的best.pt,此外,配置文件增加SSOD的超参,如readme所述。

预祝训练成功!

---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年10月09日 16:27 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) |

你好,使用的是yolov7的head … ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年10月07日 09:38 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | 你好,我用自己的数据集跑的时候,没有yolov7的效果好;没有尝试过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map,因为类别不一致。 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月21日 14:18 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | 你好,我用的是GitHub上开源的pt文件,先有监督训练,然后半监督训练。 ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月18日 17:40 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | @wmjlincy 请问你的问题解决了吗? 可以分享一下你的map_v7.txt文件吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.> 最后跑出来的效果如何,我用我自己的数据集跑,效果并不是很乐观; 另外,你尝过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map吗,我只可以得到一行数据,但是类别是有5类的,不知道是什么原因导致的,你验证的时候结果是正常的吗。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.> 请问你用yolov7模型在efficient teacher上进行半监督或有监督训练的时候,使用的是yolov7的head吗?还是使用的是yolov5或者yolox的head呢 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

打扰您了,麻烦问下yolov7的head部分方便贴出来一下吗?就单这一部分您在作者的基础上做过修改吗?因为我使用yolov5的head训练出来还算正常,一旦替换了yolov7的head,精度值就非常的低,不知道是不是这一个部分哪里没有做修改。十分感谢您

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

delicate00 commented 10 months ago

yolov7的head,没做更改,配置文件里Head name为Yolov7,Loss assigner_type为SimOTA,然后监督训练的配置文件的weights为efficientteacher-main在github上下载的yolov7的权重,名为efficient-yolov7.pt,然后半监督训练的配置文件的weights为监督训练保存的best.pt,此外,配置文件增加SSOD的超参,如readme所述。 预祝训练成功! ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年10月09日 16:27 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | 你好,使用的是yolov7的head … ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年10月07日 09:38 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | 你好,我用自己的数据集跑的时候,没有yolov7的效果好;没有尝试过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map,因为类别不一致。 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月21日 14:18 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | 你好,我用的是GitHub上开源的pt文件,先有监督训练,然后半监督训练。 ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年09月18日 17:40 | | 收件人 | AlibabaResearch/efficientteacher @.> | | 抄送人 | wmjlincy @.>, Mention @.> | | 主题 | Re: [AlibabaResearch/efficientteacher] 如何生成yolov7的map.txt文件 (Issue #78) | @wmjlincy 请问你的问题解决了吗? 可以分享一下你的map_v7.txt文件吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.> 最后跑出来的效果如何,我用我自己的数据集跑,效果并不是很乐观; 另外,你尝过用efficient-yolov7直接转好的efficient teacher权重来验证自己数据集的map吗,我只可以得到一行数据,但是类别是有5类的,不知道是什么原因导致的,你验证的时候结果是正常的吗。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.> 请问你用yolov7模型在efficient teacher上进行半监督或有监督训练的时候,使用的是yolov7的head吗?还是使用的是yolov5或者yolox的head呢 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.> 打扰您了,麻烦问下yolov7的head部分方便贴出来一下吗?就单这一部分您在作者的基础上做过修改吗?因为我使用yolov5的head训练出来还算正常,一旦替换了yolov7的head,精度值就非常的低,不知道是不是这一个部分哪里没有做修改。十分感谢您 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>

好的,非常感谢!损失函数这一个部分除了添加SimOTA,有在源码上做修改吗?我的配置部分文件是这样的:“ Head: name: 'YoloV7' activation: 'SiLU' anchors: [[12,16, 19,36, 40,28],[36,75, 76,55, 72,146],[142,110, 192,243, 459,401]] # P5/32] Loss: type: 'ComputeLoss' assigner_type: 'SimOTA' top_k: 10 cls: 0.3 obj: 0.7 anchor_t: 4.0”。使用有监督训练我自己的数据集,还是有些问题

iu110 commented 7 months ago

你好,请问yolov7的map.txt和map_v7.txt怎么生成的呢,我根据yolov7的网络结构自己生成的map.txt,转换成模型可识别的权重文件后,训练代码可以跑通,但是AP0.5要比用yolov7模型跑的结果小10%左右。感觉有点问题,可以麻烦提供下yolov7对应的map.txt和map_v7.txt文件吗? 您好,可以麻烦您分享下map_v7.txt么

iu110 commented 7 months ago

您好,可以麻烦您分享下map_v7.txt么