deel-ai / oodeel

Simple, compact, and hackable post-hoc deep OOD detection for already trained tensorflow or pytorch image classifiers.
https://deel-ai.github.io/oodeel/
MIT License
52 stars 2 forks source link

SHE (Simplified Hopfield Energy) OOD detector #86

Closed paulnovello closed 7 months ago

paulnovello commented 7 months ago

"Out-of-Distribution Detection based on In-Distribution Data Patterns Memorization with Modern Hopfield Energy" link

This method first computes the mean of the internal layer representation of ID data for each ID class. This mean is seen as the average of the ID activation patterns as defined in the original paper. The method then returns the maximum value of the dot product between the internal layer representation of the input and the average patterns, which is a simplified version of Hopfield energy as defined in the original paper.

Remarks: