Open ug-kim opened 1 year ago
we used contrastive learning, which may result in negative similarity values when calculating the similarity between two images. Additionally, we multiplied the loss of contrastive learning by 10, which can lead to negative loss values. If you need more information, you can debug our code.
I understand your answer. Thank you for your fast reply I will try to debug your code.
I think you could try CosineEmbeddingLoss if you want to positive loss value.
https://pytorch.org/docs/stable/generated/torch.nn.CosineEmbeddingLoss.html
Hello, I have some questions about your work.
I tried to train with CIFAR10-LT and CIFAR100-LT but have negative loss values.
Why loss value is negative?
Thank you for sharing your awesome work!