Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accuracy #4

Open
Dadatata-JZ opened this issue Nov 12, 2021 · 1 comment
Open

Accuracy #4

Dadatata-JZ opened this issue Nov 12, 2021 · 1 comment

Comments

@Dadatata-JZ
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant