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

Score Distribution Visualization? #213

Open
HengGao12 opened this issue Dec 23, 2023 · 1 comment
Open

Score Distribution Visualization? #213

HengGao12 opened this issue Dec 23, 2023 · 1 comment

Comments

@HengGao12
Copy link

HengGao12 commented Dec 23, 2023

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
Copy link
Collaborator

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

self.scores = {
'id': {
'train': None,
'val': None,
'test': None
},
'csid': {k: None
for k in dataloader_dict['csid'].keys()},
'ood': {
'val': None,
'near':
{k: None
for k in dataloader_dict['ood']['near'].keys()},
'far': {k: None
for k in dataloader_dict['ood']['far'].keys()},
},
'id_preds': None,
'id_labels': None,
'csid_preds': {k: None
for k in dataloader_dict['csid'].keys()},
'csid_labels': {k: None
for k in dataloader_dict['csid'].keys()},
}

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