Heng Gao, Zhuolin He, Jian Pu*
Fudan University
Before using our code, please first install the OpenOOD. The pre-trained models are available here. All our experiments are conducted on one NVIDIA V100 GPU.
Our codebase accesses the datasets from ./data/
.
├── ...
├── data
│ ├── benchmark_imglist
│ ├── images_classic
├── openood
├── results
│ ├── checkpoints
│ └── ...
├── scripts
├── main.py
├── ...
# CIFAR-100
bash scripts/ood/otd/cifar100_test_ood_otod.sh
# CIFAR-10
bash scripts/ood/otd/cifar10_test_ood_otod.sh
If you find OTOD useful in your research, please consider citing:
@article{gao2025detecting,
title={Detecting OOD Samples via Optimal Transport Scoring Function},
author={Gao, Heng and He, Zhuolin and Pu, Jian},
journal={arXiv preprint arXiv:2502.16115},
year={2025}
}