ANCOR icon indicating copy to clipboard operation
ANCOR copied to clipboard

Accuracy

Open Dadatata-JZ opened this issue 3 years ago • 1 comments

Hi there,

While I am walking through the code, I realize that for computing InfoNCE loss, the contrastive function creates pseudo labels, which is a list with all "0". However, this one is calculated as well when iterating the products of logits_and_labels for computing the accuracy in the train function. Should it be ignored when calculating the accuracy? Since all the labels are "0".

I may understand incorrectly. Thank you in advance and look forward to some helps.

Dadatata-JZ avatar Nov 12 '21 02:11 Dadatata-JZ

Also, additionally, in the training processing, I realize that val_dataset and fg_val_dataset are essentially doing the same thing?! Can you clarify the necessity of validating twice?

Thank you in advance.

Dadatata-JZ avatar Nov 14 '21 19:11 Dadatata-JZ