Skip to content

Repository files navigation

(ICCV'25) – Equipping Vision Foundation Model with Mixture of Experts for Out-of-Distribution Detection

Shizhen Zhao, Jiahui Liu, Xin Wen, Haoru Tan, XiaoJuan Qi

This repository is the official PyTorch implementation of the paper.

Environment

conda create -n vit_ood python=3.8 -y
conda activate vit_ood
pip install -r requirements.txt
# deps example: torch>=1.7, torchvision>=0.8.1, timm==0.3.2, tensorboardX>=2.1

Data

  • ImageNet layout: ./data/ImageNet/{train,val}
  • gran_path in scripts can point to your dataset root (e.g., /mnt/sda/dataset/imagenet1k).

Training

  • Entrypoints: script/moe_1/finetune_dinov2_imagenet_moe_*.py Checkpoints

Example (moe_6):

python script/moe_1/finetune_dinov2_imagenet_moe_6.py

Citation

If you find our idea or code inspiring, please cite our paper:

@InProceedings{Zhao_2025_ICCV,
    author    = {Zhao, Shizhen and Liu, Jiahui and Wen, Xin and Tan, Haoru and Qi, Xiaojuan},
    title     = {Equipping Vision Foundation Model with Mixture of Experts for Out-of-Distribution Detection},
    booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
    month     = {October},
    year      = {2025},
    pages     = {1751-1761}
}

This code is partially based on LiVT, if you use our code, please also cite:

@InProceedings{Xu_2023_CVPR,
    author    = {Xu, Zhengzhuo and Liu, Ruikang and Yang, Shuo and Chai, Zenghao and Yuan, Chun},
    title     = {Learning Imbalanced Data With Vision Transformers},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2023},
    pages     = {15793-15803}
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages