AUCSeg: AUC-oriented Pixel-level Long-tail Semantic Segmentation (NeurIPS 2024)

September 17, 2025 ยท View on GitHub

AUCSeg

AUCSeg: AUC-oriented Pixel-level Long-tail Semantic Segmentation (NeurIPS 2024)

Author: Boyu Han, Qianqian Xu*, Zhiyong Yang, Shilong Bao, Peisong Wen, Yangbangyan Jiang, Qingming Huang*

โœจ Updates

[2024-10-3] ๐Ÿ”ฅ Released our AUCSeg code. We warmly welcome everyone to use it and give feedback or suggestions!

[2024-9-26] Our paper has been accepted to NeurIPS 2024.

๐Ÿ”ง Installation

  • Clone the repository
git clone https://github.com/boyuh/AUCSeg.git

๐Ÿ–ฅ๏ธ Training

AUCSeg is a plug-and-play component that can be integrated into almost any existing backbone with just two simple modifications:

  1. Add the AUCLoss module (options include SquareAUCLoss, HingeAUCLoss, and ExpAUCLoss) to the loss_decode in the model.
  2. Add the TMemoryBank module to the train_pipeline.

Below, we use SegNeXt-large as an example backbone to demonstrate how to incorporate AUCSeg for training:

For the ADE20K dataset, run this command:

python tools/train.py aucseg_configs/aucseg.segnext.large.512x512.ade.160k.py --work-dir results/aucseg.segnext.large.512x512.ade.160k --seed 0 --gpu-id 0

For the Cityscapes dataset, run this command:

python tools/train.py aucseg_configs/aucseg.segnext.large.1024x1024.city.160k.py --work-dir results/aucseg.segnext.large.1024x1024.city.160k --seed 0 --gpu-id 0

For the COCO-Stuff 164K dataset, run this command:

python tools/train.py aucseg_configs/aucseg.segnext.large.512x512.coco_stuff164k.80k.py --work-dir results/aucseg.segnext.large.512x512.coco_stuff164k.80k --seed 0 --gpu-id 0

โญ Released Weights

We provide the Config and Checkpoint for three datasets.

DatasetBackboneConfigCheckpoint
ADE20KSegNeXt-largeconfigGoogle Drive
CityscapesSegNeXt-largeconfigGoogle Drive
COCO-Stuff 164KSegNeXt-largeconfigGoogle Drive

๐Ÿ“ Evaluation

To evaluate the model, run this command:

./tools/dist_test.sh /path/to/config /path/to/checkpoint_file 1 --eval mIoU

โœ’๏ธ Citation

If you find our work inspiring or use our codebase in your research, please cite our work.

@inproceedings{han2024aucseg,
    title={AUCSeg: AUC-oriented Pixel-level Long-tail Semantic Segmentation}, 
    author={Boyu Han and Qianqian Xu and Zhiyong Yang and Shilong Bao and Peisong Wen and Yangbangyan Jiang and Qingming Huang},
    booktitle={Advances in Neural Information Processing Systems},
    pages={126863--126907},
    year={2024}
}

๐Ÿ’ฌ Contact

If you find any issues or plan to contribute back bug-fixes, please contact us by Boyu Han (Email: hanboyu23z@ict.ac.cn).

๐Ÿ“š Acknowledgement

Our codes are based on MMSegmentaion v0.24.1, SegNeXt and XCurve v1.1.0.