Code for "Out-of-distribution Detection by Cross-class Vicinity Distribution of In-distribution Data"
- Python 3.7
- Pytorch 1.1
- scikit-learn
- tqdm
- pandas
- scipy
Our codes will download the two in-distribution datasets automatically.
The test out-of-distribution datasets are provided by CSI
Each out-of-distribution dataset should be put in the corresponding subdir in ./data_LCVD
Run the script demo.sh.