Open gombru opened 6 years ago
Hi, I think the margin is the hyper parameter to modify the positive triplet case, you may find that some triplet samples DON'T need to do backpropagation.
Please ignore the parameter self.a.
OK. So as I see in the code, the margin value is only used to omit from backpropagration those triplets fulfilling the margin, but has no influence in those triplets that are backpropagated, right?
Hello, I'm successfully using your tripletlosslayer.py to train a triplet net, but I have some doubts: