Open Ahandsomenaive opened 4 years ago
loss is not converge! FPR95 is very high!
now, i find the coding bug~ But, the best score is 1.15, and have not got 1.03 described in your paper! would you like to give me some advice about training setting?
now, i find the coding bug~ But, the best score is 1.15, and have not got 1.03 described in your paper! would you like to give me some advice about training setting?
@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.
@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~ a little question, i can't find your code according to the link you provided. Would you like to provide detailed information about your code? 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. """