❓How to use F1Max #2763
-
Hello, using F1Max() directly may result in an error, but I can see from the example of f1_core.exe that there is no problem |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @jun614 |
Beta Was this translation helpful? Give feedback.
-
It's hard to tell what is in You have two options:
anomalib/src/anomalib/metrics/f1_score.py Lines 63 to 97 in f60dd31 |
Beta Was this translation helpful? Give feedback.
It's hard to tell what is in
/home/sjx/project/LogSAD/evaluation.py
, but I suspect that you are not using Anomalib'sBatch
object.You have two options:
_F1Max
class that does not needBatch
but just usestorch.Tensor
. Something like the following:anomalib/src/anomalib/metrics/f1_score.py
Lines 63 to 97 in f60dd31