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

supervised contrastive loss function #20

Open
YuBeomGon opened this issue Jul 9, 2020 · 3 comments
Open

supervised contrastive loss function #20

YuBeomGon opened this issue Jul 9, 2020 · 3 comments

Comments

@YuBeomGon
Copy link

input tensor to SupConLoss need to have 3 dimenstion.
batch size, 2(two features made from augmentation), z_dim(128)

if I dont want augmentation,
[batch size, 1, z_dim(128)] is ok for SupConLoss ??

loss value is almost nan for batch(32)
thanks

@HobbitLong
Copy link
Owner

If not, you need to modify it accordingly. But the logic should not be hard.

@JuliaWolleb
Copy link

Hi,
I have the same problem. Did you mean that the loss function SupConLoss should be modified? If yes, how? Or did you mean only the input dimensions to[batch size, 1, z_dim(128)]?

@YuBeomGon
Copy link
Author

YuBeomGon commented Sep 25, 2020 via email

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

3 participants