[NeurIPS 24] MetaUAS

February 7, 2026 · View on GitHub

HuggingFace Space

Official PyTorch Implementation of MetaUAS: Universal Anomaly Segmentation with One-Prompt Meta-Learning, NeurIPS 2024.

Updates

  • [2026-02-05]: Added 1-shot MetaUAS results on Real-IAD and Real-IAD-Variety datasets.
DatasetsMethodsI-ROCI-PRI-F1P-ROCP-PRP-F1P-PRO
Real-IADMetaUAS (1-shot)80.0 ± 0.477.9 ± 0.472.4 ± 0.495.6 ± 0.236.6 ± 1.139.7 ± 1.083.5 ± 0.7
Real-IAD-VarietyMetaUAS (1-shot)81.9 ± 0.196.3 ± 0.194.1 ± 0.092.0 ± 0.148.2 ± 0.448.3 ± 0.376.5 ± 0.1

Introduction

MetaUAS unifies anomaly segmentation into change segmentation and provides a pure visual foundation model, which requires only one normal image prompt and no additional training, and effectively and efficiently segments any visual anomalies. MetaUAS significantly outperforms most zero-shot, few-shot, and even full-shot anomaly segmentation methods.

MetaUAS Framework

overview

Main Results

main-results

main-com-eff

main-diffprompts

main-diffprompts

Demo

You can use our Online Demo to test your custom data for a quick start. Note that the online demo is currently based on CPU. You could also deploy the demo application to your local CPU/GPU server using the following command:

pip install -r requirements.txt
python app.py

Evaluation on MVTec/VisA/GoodsAD

bash test.sh

ToDo List

Citing

If you find this code useful in your research, please consider citing us:

@inproceedings{gao2024metauas,
  title  = {MetaUAS: Universal Anomaly Segmentation with One-Prompt Meta-Learning},
  author = {Gao, Bin-Bin},
  booktitle = {Advances in Neural Information Processing Systems},
  pages = {39812--39836},
  year = {2024}
}

Star History

Star History Chart