This repo is the official implementation of CATegory-EXtensible Out-of-Distribution Detection via Hierarchical Context Descriptions (CATEX)
This code is built on top of the awesome CoOp framework, and you need to install the dassl
environment first (this has already prepared in this repo).
cd Dassl.pytorch
pip install -r requirements.txt
python setup.py develop
cd ..
pip install -r requirements.txt
After that, run pip install -r requirements.txt
under catex/
to install a few more packages required by CLIP (this should be done when dassl
is activated). Then, you are ready to go.
First, follow the DATASETS.md to install the datasets.
Then, check the CATEX.md to see the detailed instructions on how to run the code to reproduce the results.
- We are working on it. Please stay tuned.
If you find this repo or paper useful in your research, please kindly star this repo and cite this paper:
@inproceedings{liu2023category,
title={Category-Extensible Out-of-Distribution Detection via Hierarchical Context Descriptions},
author={Liu, Kai and Fu, Zhihang and Chen, Chao and Jin, Sheng and Chen, Ze and Mingyuan Tao and Jiang, Rongxin and Ye, Jieping},
booktitle={37th Conference on Neural Information Processing Systems (NeurIPS 2023)},
}