cross iou 代码细节问题
dongdongyee opened this issue · 2 comments
dongdongyee commented
作者您好,感谢您开源优秀的工作。在研究代码的时候,对这里loss_type == 'segm' 时的stride=9不是很理解。请问对于segmentation任务来说,这个stride的含义和作用是什么呢?为什么loss_type =='bbox'时不需要它呢?
祝您新春快乐,工作顺利!
Duankaiwen commented
你好,不好意思刚看到邮件,stride的作用是为了将所有向量分组来约束。例如分割时,每个物体需要约束36根向量,我把这36根向量分成了4组,每组9个向量,每组中这9个向量单独计算一个cross-IoU,最后四个小组的cross-IoU加起来变成最终的cross-IoU。
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
…________________________________
From: dongdongyee ***@***.***>
Sent: Friday, February 4, 2022 8:49:18 AM
To: Duankaiwen/LSNet ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [Duankaiwen/LSNet] cross iou 代码细节问题 (Issue #28)
https://github.com/Duankaiwen/LSNet/blob/9b51ffcea4215ad981595ae7bb544b93e4b5f6fd/code/mmdet/models/losses/cross_iou_loss.py#L63
作者您好,感谢您开源优秀的工作。在研究代码的时候,对这里stride=9不是很理解。这个stride好像在所有的config里面都是9,请问这个stride的含义是什么呢?下面的for 循环为何要i::stride呢?是否可以去掉这个设计呢?
祝您新春快乐,工作顺利!
―
Reply to this email directly, view it on GitHub<#28>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHAQBSHN2OMUEI7SDKJRNBLUZMPA5ANCNFSM5NQOBPVA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
dongdongyee commented
感谢!