Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self.sort_obj_iou #4356

Closed
HuKai97 opened this issue Aug 9, 2021 · 9 comments
Closed

self.sort_obj_iou #4356

HuKai97 opened this issue Aug 9, 2021 · 9 comments
Labels
question Further information is requested Stale

Comments

@HuKai97
Copy link

HuKai97 commented Aug 9, 2021

image

why use sort_obj_iou? What is its function?

@HuKai97 HuKai97 added the question Further information is requested label Aug 9, 2021
@glenn-jocher
Copy link
Member

This sorts objectness IoU.

@HuKai97
Copy link
Author

HuKai97 commented Aug 11, 2021

Is there any difference between sorting and not sorting?

@glenn-jocher
Copy link
Member

@coderhukai if there were no difference there would be little point in having two options naturally.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 11, 2021

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.

Access additional YOLOv5 🚀 resources:

Access additional Ultralytics ⚡ resources:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐!

@xiaomao19970819
Copy link

Is there any difference between sorting and not sorting?

嗨,同学,你试了吗?这个参数,是否能带来性能提升呢?

@bilzard
Copy link
Contributor

bilzard commented Jan 17, 2022

@SCAU-HuKai
The details are explained in #3605 (although I don't understand much of it...). According to this discussion, it was introduced to improve performance in dense object situations.
It also shows the results of an experiment. There seems to be little difference in performance.

@xiaomao19970819
Copy link

@bilzard 嗨,这个链接下面几位的讨论和我有相同的困惑,这和YOLOv5的loss计算策略有关,我也一直困惑obj损失为什么会被覆盖掉,显然作者也在困惑这样的操作为什么没有带来太大的性能损失,我想这和数据集本身有关,在box比较拥挤的数据集上对obj进行排序后再计算可能性能会提升,总而言之,感谢。

@bilzard
Copy link
Contributor

bilzard commented Jan 18, 2022

@SCAU-HuKai Sorry, I don't understand Chinese.
This is translation by Deepl:

Hi, the discussion below this link has the same confusion as me, it is related to the loss calculation strategy of YOLOv5, I also have been confused why the obj loss is overwritten, apparently the author is also confused why such an operation does not bring much performance loss, I think it is related to the dataset itself, the possibility of sorting the obj on the box more crowded dataset and then calculating it. All in all, thanks.

I agree. I also don't understand much about the feature. And personally, I also have an impression of the feature is merged with not well discussed the theoretical background (though I may be misunderstanding). All end all, as it's default-off feature, I think you can neglect this feature if you think it isn't necessary.

@isJunCheng
Copy link

@bilzard 嗨,这个链接下面几位的讨论和我有相同的困惑,这和YOLOv5的loss计算策略有关,我也一直困惑obj损失为什么会被覆盖掉,显然作者也在困惑这样的操作为什么没有带来太大的性能损失,我想这和数据集本身有关,在box比较拥挤的数据集上对obj进行排序后再计算可能性能会提升,总而言之,感谢。

I used the sorting function in a custom dataset and the result has a decrease instead. The anchor with multiple sample matches should have higher iou, not be covered by low iou. The theory is correct, but the experimental result is opposite and I am puzzled. Can someone help me with this please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

5 participants