Skip to content

Nicholas-Mei/Ood_Detection_SNoJoE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Label Out-of-Distribution Detection with Spectral Normalized Joint Energy

This is a PyTorch implementation of Multi-Label Out-of-Distribution Detection with Spectral Normalized Joint Energy by Yihan Mei, Xinyu Wang, Dell Zhang, Xiaoling Wang. Code is modified from JointEnergy, ODIN, Outlier Exposure, and deep Mahalanobis detector.

Datasets

Our experimental configuration of in-distribution and out-of-distribution datasets are almost identical with JointEnergy.

Put PASCAL-VOC under ./Pascal/ folder, and put Texture under ./dtd/ folder.

Training the Model

Train the ResNet model for PASCAL-VOC dataset

python train.py --arch resnet101 --dataset pascal --save_dir ./save_models/

OoD Detection

To reproduce the SNoJoE score for PASCAL-VOC dataset, please run:

python eval.py --arch resnet101 --dataset pascal --ood_data imagenet --ood energy --method sum

OoD Detection Result

OoD detection performance comparison using SNoJoE vs. competitive baselines.

result

Citation

@misc{mei2024multilabel,
      title={Multi-Label Out-of-Distribution Detection with Spectral Normalized Joint Energy}, 
      author={Yihan Mei and Xinyu Wang and Dell Zhang and Xiaoling Wang},
      year={2024},
      eprint={2405.04759},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages