/LCVD

Primary LanguagePythonMIT LicenseMIT

Code for "Out-of-distribution Detection by Cross-class Vicinity Distribution of In-distribution Data"

requirement

  • Python 3.7
  • Pytorch 1.1
  • scikit-learn
  • tqdm
  • pandas
  • scipy

Datasets

In-distribution Datasets

Our codes will download the two in-distribution datasets automatically.

Out-of-Distribtion Datasets

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

Train and Test

Run the script demo.sh.