Closed KonataMyLove closed 1 year ago
For the contrastive equation and the implementation, you can find descriptions in supervised contrastive Learning paper and repository. For the rank, there is a for loop to implement it.
Thanks. I rewrote the formula according to the repository and the code, it does match the paper. Problem solved.
Thank you for your open-source code. Here I have a question about the code of rank-aware contrastive loss metioned in the Section3.4 of the paper:
This is the rank-aware contrastive loss formula listed in the paper,
This is the code of rank-aware contrastive loss computation in the qd_detr/model.py:
softmax
I don't think the code implement matched the formula? Especially the bolded code makes me confused. If I get it wrong, please inform me. Thank you for your time.