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

Gradient metric different from reference paper #7

Open
poier opened this issue Jun 15, 2022 · 0 comments
Open

Gradient metric different from reference paper #7

poier opened this issue Jun 15, 2022 · 0 comments

Comments

@poier
Copy link

poier commented Jun 15, 2022

Hi,

first, very nice work. Thanks.

In the paper you refer to [Rhemann et al., CVPR 2009] for the gradient based (GRAD) metric. In [Rhemann et al., CVPR 2009] they compute this as the sum of the distance between the normalized gradients of the prediction and ground truth. However, in you implementation you compute the distance between the gradient magnitudes (and divide the sum of the squared distance by 10; https://github.com/JizhiziLi/P3M/blob/master/core/evaluate.py#L154-L158). What is the reason for that?

Best,
Georg

[Rhemann et al., CVPR 2009] https://www.microsoft.com/en-us/research/wp-content/uploads/2009/01/cvpr09-matting-Eval_TR.pdf

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