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

Question about BG-SPP loss #10

Open
Hui-design opened this issue Sep 15, 2023 · 1 comment
Open

Question about BG-SPP loss #10

Hui-design opened this issue Sep 15, 2023 · 1 comment

Comments

@Hui-design
Copy link

Hi, thank you for the excellent work !
I would like to ask, if we replace the logp term in BG-SPP loss with pair-wise distances, is it equivalent to conventional contrastive loss? Roughly, the BG-SPP loss can be understood as a variation of contrastive loss within the normalized-Flow framework?

@xcyao00
Copy link
Owner

xcyao00 commented Sep 17, 2023

I think you can consider that the abnormal and normal boundaries are used as contrastive object in our BG-SPP loss. After replacing the logo term with pair-wise distances, our BG-SPP loss can be seen as a limited contrastive loss because we only push the distances between anomalies and normals out of the abnormal boundary, while pulling the distances between normals and normals closer to the normal boundary.

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

2 participants