Closed jS5t3r closed 4 months ago
Hi @jS5t3r, the new evaluator
fetches data by
https://github.com/Jingkang50/OpenOOD/blob/18c6f5174a2f518e2a8e819ffb1cd1914bcf12e0/openood/evaluation_api/evaluator.py#L103-L110
where the get_id_ood_dataloader
is defined in openood/evaluation_api/datasets.py
. You would need to link your dataset in openood/evaluation_api/datasets.py
so the evaluator can obtain your custom data.
@zjysteven Ok. This means I need to change the code instead of having a provided API
The provided API is dedicated for a unified and consistent evaluation on carefully picked OOD datasets, which is why OpenOOD is created in the first place as it enables fair and straight comparison across methods. Including your own data is not hard: as I mentioned earlier, it should be good to go if you just encode relevant information in openood/evaluation_api/datasets.py
(following how other datasets are encoded).
For "no ood.csv created" issue you mentioned in the pull request, did you pass the save_csv
argument when running eval_ood_imagenet.py
?
https://github.com/Jingkang50/OpenOOD/blob/18c6f5174a2f518e2a8e819ffb1cd1914bcf12e0/scripts/eval_ood_imagenet.py#L172-L180
Closing now. Feel free to reopen if there are any other questions.
Hi,
as I understand correctly that
main.py
will be replaced by `eval_ood.py'. I created a custom dataset.I changed this script
the content of the old script:
but how do I define the custom dataset in `eval_ood.py'?
Thanks for your help in advance!