ShiftedBronzes Benchmark and OOD Detection Codebase

This repository provides the official implementation of our paper:
"ShiftedBronzes: Benchmarking and Analysis of Domain Fine-grained Out-of-Distribution Detection in Gradual Shifts".

We provide:

  • Training and evaluation code for ID-like and LoCoOp under different background settings.
  • Code for testing post-hoc OOD detection methods adapted from OpenOOD.

πŸ“ Project Structure


ShiftedBronzes/

β”œβ”€β”€ ID-like-train/               # Training/testing code for ID-like using original background

β”œβ”€β”€ ID-like-train-change-bg/    # Training/testing code for ID-like using replaced background

β”œβ”€β”€ LoCoOp-train/               # Training/testing code for LoCoOp using original background

β”œβ”€β”€ LoCoOp-train-change-bg/     # Training/testing code for LoCoOp using replaced background

β”œβ”€β”€ OpenOOD/                    # Post-hoc OOD detection testing code (based on OpenOOD)

β”œβ”€β”€ zest\_code/                  # Zest code for generating transferred data

β”œβ”€β”€ requirements.txt            # Environment requirements

└── README.md                   # Project README




πŸ”§ Installation

git clone https://github.com/your_username/ShiftedBronzes.git
cd ShiftedBronzes
pip install -r requirements.txt

πŸ—‚ Dataset

You can download the ShiftedBronzes dataset in this Link.


Training & Evaluation

We provide scripts to train and test each models under corresponding code folder.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support