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

Anomaly score calculation is different from the paper #54

Open
nuclearboy95 opened this issue Jan 5, 2023 · 1 comment
Open

Anomaly score calculation is different from the paper #54

nuclearboy95 opened this issue Jan 5, 2023 · 1 comment

Comments

@nuclearboy95
Copy link

The anomaly score is calculated using softmax of query distances (Eq (7) of the paper), but the code omits the process.

@davnn
Copy link

davnn commented May 7, 2023

Appears to be a duplicate of #27.

In general, I would be interested, how Eq (7) should be interpreted. Given m^{test,*} is the patch with the largest distance to its nearest neighbor in the memory bank and m^* is said nearest neighbor patch in the memory bank; then s^* is the distance between those patches (a scalar). What does it mean to weigh a scalar? The Softmax expression would result in a weighing vector, but how do you weigh a scalar with that?

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