-
Notifications
You must be signed in to change notification settings - Fork 6
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
Something weird in LoG loss #3
Comments
I also found the same issue on the edge. I wonder if there is a method to solve it. Hope you could help us thank you! |
Hi, @LemonMi: Sorry for sucha later reply. I dont know how I missed this issue in my inbox. And, thank you @deadmarston for re-opening this! The weight matrix which I have defined is the 2-D Laplacian Of Gaussian (LoG) matrix. Refer to http://fourier.eng.hmc.edu/e161/lectures/gradient/node8.html About the issue on the edges, I am not sure what could be causing it. I did not encounter such issues during training. Could you both please provide an example? Thanks, and again, sorry for the extreme late reply. |
Hi, sorry for my late reply. |
def LoG(img):
weight = [
[0, 0, 1, 0, 0],
[0, 1, 2, 1, 0],
[1, 2, -16, 2, 1],
[0, 1, 2, 1, 0],
[0, 0, 1, 0, 0]
]
weight = np.array(weight)
def HFEN(output, target):
return torch.sum(torch.pow(LoG(output) - LoG(target), 2)) / torch.sum(torch.pow(LoG(target), 2))
Hello,
I only see the gaussian filter in this implement, but I find that this loss function in your paper also has Laplace filter. That makes me feel confused.
In addition, I train the network using my dataset, but when I test, there are blue(or purple) color in the edge, I don't know if it's because of what I said before.
Hope you can help me, thank you!
The text was updated successfully, but these errors were encountered: