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

A small bug. #90

Open
aa1234241 opened this issue Feb 20, 2021 · 0 comments
Open

A small bug. #90

aa1234241 opened this issue Feb 20, 2021 · 0 comments

Comments

@aa1234241
Copy link

Hello,
Thanks for your excellent work!
I found that the ATSS threshold may not work when using private dataset.
The ATSS threshold used in the paper is defined as mean(IOU)+std(IOU). This works perfectly for coco dataset. However, when using other dataset, it is possible that no anchor's IOU could above this threshold. The core is, there are some distributions in which the maximum value is smaller than (std+mean) value.

For instance, when testing my dataset, an instance on an image I get these candidate anchors IOU:[0.5354, 0.5354, 0.5354, 0.5354, 0.5354, 0.5354, 0.4831, 0.4668, 0.4831,0.4670, 0.4670, 0.4670, 0.4670, 0.4460, 0.4670, 0.4670, 0.4460, 0.4460,0.1167, 0.1167, 0.1167, 0.1167, 0.1167, 0.1167, 0.1167, 0.1167, 0.1167]. And the std+mean is larger than the maximum value. Thus no pos_ind will be selected for this instance.

A toy example for this is:
x=(1,5,5,5)
mean(x)+std(x)
5.73
To solve my issue, when no pos_ind is selected, I replace the threshold by the (max IOU value-0.01).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant