-
Notifications
You must be signed in to change notification settings - Fork 28
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
I try to reproduce the SOSR based on the Harnet, but some questions are induced. Can you give me some advice? #8
Comments
loss is not converge! FPR95 is very high! |
now, i find the coding bug~ |
1 similar comment
now, i find the coding bug~ |
@Ahandsomenaive, hi. I have embeded the SOSR into HardNet (https://github.com/DagnyT/hardnet). And changed the optimizer as the paper advised and the model published here. In this way, the best score I reproduced reaches ~1.10 but it is still far to catch 1.03. However, it's interestingly to find that my reproduction trained on Liberty outperform the paper declared in Hpatch by a little. |
Hi, Thank you~ |
I try to reproduce the SOSR based on the Harnet, but some questions are induced. Can you give me some advice?
the code about loss is here:
`import torch
import torch.nn as nn
import sys
def distance_matrix_vector(anchor, positive):
"""Given batch of anchor descriptors and positive descriptors calculate distance matrix"""
def inner_dot_matrix(anchor, postive):
def loss_SosNet(anchor, positive, anchor_swap = False, anchor_ave = False,
margin = 1.0, batch_reduce = 'min', loss_type = "triplet_margin",k = 8):
"""HardNet margin loss - calculates loss based on distance matrix based on positive distance and closest negative distance.
"""
The text was updated successfully, but these errors were encountered: