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

false positives 特别多的问题 #20

Open
xzxedu opened this issue Nov 9, 2020 · 2 comments
Open

false positives 特别多的问题 #20

xzxedu opened this issue Nov 9, 2020 · 2 comments

Comments

@xzxedu
Copy link

xzxedu commented Nov 9, 2020

您好,非常感谢您的代码。我尝试将您的focal loss部分加到retinaface模型中,没有改动参数,发现误检特别多。想问下知道可能的原因嘛?是因为我没有进行hard negative mining还是因为我参数没有调对呢?(尝试过修改阈值但作用非常微小)

@yatengLG
Copy link
Owner

yatengLG commented Nov 9, 2020

我也不太清楚是什么原因导致您这边误检率特别高。

我只能给您说下,这边为什么这么做。α是一个调节正负例的参数,是负例相对于整体的比重;γ是调节识别难易度的参数,一般2就可以了,不需要动。

def __init__(self, alpha=0.25, gamma=2, num_classes = 3, reduction='mean'):

@xzxedu
Copy link
Author

xzxedu commented Nov 11, 2020

好的谢谢~

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

2 participants