DRENet icon indicating copy to clipboard operation
DRENet copied to clipboard

在yolov5-5.0中只使用CRMA模块

Open Potato640 opened this issue 1 year ago • 7 comments

您好,从图中可以看到,我将所有尺寸都设置为640,然后只使用了您的CRMA添加到原生的yolov5 5.0版本中,yaml文件也做了相应的修改,但是还是在验证的时候报了错误,想问一下有可能是什么原因导致? val yaml yolo train

Potato640 avatar Mar 21 '23 13:03 Potato640

哈喽 @Potato640 ,

参数设置看起来没啥问题。从报错信息看,训练能够正常训练,但是测试过程好像是因为输入尺寸原因崩了,可能需要设断点检查下下面这一块代码传入的img的尺寸,以及augment参数是否为False.

image

WindVChen avatar Mar 21 '23 15:03 WindVChen

感谢您的回答,我后续再试一下

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年3月21日(星期二) 晚上11:38 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [WindVChen/DRENet] 在yolov5-5.0中只使用CRMA模块 (Issue #9)

哈喽 @Potato640 ,

参数设置看起来没啥问题。从报错信息看,训练能够正常训练,但是测试过程好像是因为输入尺寸原因崩了,可能需要设断点检查下下面这一块代码传入的img的尺寸,以及augment参数是否为False.

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

Potato640 avatar Mar 21 '23 15:03 Potato640

再次感谢您的提醒,已经跑通了,原因应该是testloader中的rect设置为True导致测试中输入图像的尺寸变化,将其设置为False就好了 image

Potato640 avatar Mar 22 '23 08:03 Potato640

👍👍👍

WindVChen avatar Mar 22 '23 08:03 WindVChen

@Potato640 您好,请问一下,testloader中的rect设置为True导致测试中输入图像的尺寸变化,将其设置为False的原理是什么呢?改为False会不会对训练结果有影响呢?谢谢!

SwjtuerFz avatar Dec 17 '23 07:12 SwjtuerFz

这个已经过去太久了,我也忘记了,当时想到可能是尺寸变化会影响后续拼接,因此设置成FALSE,对训练有没有影响不知道,因为最后也没有去用

------------------ 原始邮件 ------------------ 发件人: "WindVChen/DRENet" @.>; 发送时间: 2023年12月17日(星期天) 下午3:30 @.>; @.@.>; 主题: Re: [WindVChen/DRENet] 在yolov5-5.0中只使用CRMA模块 (Issue #9)

@Potato640 您好,请问一下,testloader中的rect设置为True导致测试中输入图像的尺寸变化,将其设置为False的原理是什么呢?改为False会不会对训练结果有影响呢?谢谢!

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

Potato640 avatar Dec 17 '23 07:12 Potato640

好的,谢谢!

---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2023年12月17日 15:41 | | 收件人 | WindVChen/DRENet @.> | | 抄送人 | SwjtuerFz @.>, Comment @.> | | 主题 | Re: [WindVChen/DRENet] 在yolov5-5.0中只使用CRMA模块 (Issue #9) |

这个已经过去太久了,我也忘记了,当时想到可能是尺寸变化会影响后续拼接,因此设置成FALSE,对训练有没有影响不知道,因为最后也没有去用

------------------ 原始邮件 ------------------ 发件人: "WindVChen/DRENet" @.>; 发送时间: 2023年12月17日(星期天) 下午3:30 @.>; @.@.>; 主题: Re: [WindVChen/DRENet] 在yolov5-5.0中只使用CRMA模块 (Issue #9)

@Potato640 您好,请问一下,testloader中的rect设置为True导致测试中输入图像的尺寸变化,将其设置为False的原理是什么呢?改为False会不会对训练结果有影响呢?谢谢!

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

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

SwjtuerFz avatar Dec 17 '23 07:12 SwjtuerFz