*These authors contributed equally to this work; †Co-corresponding authors.
1Shenzhen International Graduate School, Tsinghua University, China
2Shenzhen Technology University, China
3University of Science and Technology of China, China
To run this project, you need to set up your environment as follows:
conda create -n COSMIC python=3.10 -y
conda activate COSMIC
pip install -r requirements.txt
For both Out-of-Distribution and Cross-Domain benchmarks, please refer to this page.
To execute the COSMIC, navigate to the scripts
directory.
Run COSMIC on the OOD Benchmark:
bash ./scripts/cosmic_ood.sh
Run COSMIC on the Cross-Domain Benchmark:
bash ./scripts/cosmic_cd.sh