Open XALEX-123 opened 1 day ago
I couldn't compute an accuracy from the triplet loss output since there is no prediction. The torch.zeros
only ensures that the last line (accuracy = (output == target.argmax(dim=1)).float().mean()
) doesn't return an error, but the displayed accuracy is meaningless.
Why is torch.zeros used in the output of Triplet? Is the accuracy calculated this way meaningful?