Jingkang50 / OpenOOD

Benchmarking Generalized Out-of-Distribution Detection
MIT License
858 stars 108 forks source link

Score Distribution Visualization? #213

Open HengGao12 opened 10 months ago

HengGao12 commented 10 months ago

Hello, dear author, when carrying out ood detection tasks, can we utilize OpenOOD to visualize the score distribution? Does OpenOOD contain this kind of visualization function?

zjysteven commented 10 months ago

You can. Although we do not provide a direct visualization function, the new evaluator does store the computed OOD score as its class attribute, upon which you can conveniently make any visualization you want. Please check out our colab tutorial and the source code for more details. image https://github.com/Jingkang50/OpenOOD/blob/d17e61c67057759988029fd37255c5a4982147c0/openood/evaluation_api/evaluator.py#L131-L153