Code for "Supervision Adaptation Balances In-Distribution Generalization and Out-of-Distribution Detection"
- Python 3.8
- Pytorch 1.12
- scikit-learn
- tqdm
- pandas
- scipy
Our codes will download the two in-distribution datasets automatically.
The following four out-of-distribution datasets are provided by ODIN
Each out-of-distribution dataset should be put in the corresponding subdir in ./data