-
Notifications
You must be signed in to change notification settings - Fork 27
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
MD FA Calculation Problem #6
Comments
torch.mul(torch.pow(g1_out - output_images, 2), output_images) just does the work of L2 norm and square . |
Thanks for your explaination! |
U R welcome,If it has any help. Actually I'm a student of this papers author now,xdddd |
师兄您好,现在公布的数据集是不是有几张图片是损坏的啊,请问师兄您那有未损坏的版本嘛,期待并感谢师兄您的回复,[email protected] |
Hi there, thanks for your contribution. I notice that you calculate the 'MD' and 'FA' in that way:
MD1 = torch.mean(torch.mul(torch.pow(g1_out - output_images, 2), output_images)) FA1 = torch.mean(torch.mul(torch.pow(g1_out - output_images, 2), 1 - output_images))
but in the paper, it looks like MD = || (S-S_0)×S_0||_2^2 , FA = || (S-S_0)×(1-S_0)||_2^2, the '×' denotes the element-wise multiplication, '_2' denotes L2 norm, ^2 denotes square.
So, there are no any part of torch.pow(g1_out - output_images, 2), and L2 norm is sum of squares and square root, torch.mean() doesn't make it. Why you calculate it like this? Looking forward your reply.
The text was updated successfully, but these errors were encountered: