Skip to content

cp3wan/DFormer

Repository files navigation

DFormer: Diffusion-guided Transformer for Universal Image Segmentation

Hefeng Wang, Jiale Cao, Rao Muhammad Anwer, Jin Xie, Fahad Shahbaz Khan, Yanwei Pang

arXiv:2306.03437

Abstract

This paper introduces an approach, named DFormer, for universal image segmentation. The proposed DFormer views universal image segmentation task as a denoising process using a diffusion model. DFormer first adds various levels of Gaussian noise to ground-truth masks, and then learns a model to predict denoising masks from corrupted masks. Specifically, we take deep pixel-level features along with the noisy masks as inputs to generate mask features and attention masks, employing diffusion-based decoder to perform mask prediction gradually. At inference, our DFormer directly predicts the masks and corresponding categories from a set of randomly-generated masks. Extensive experiments reveal the merits of our proposed contributions on different image segmentation tasks: panoptic segmentation, instance segmentation, and semantic segmentation.

Installation

See installation instructions.

Getting Started

See Preparing Datasets for DFormer.

See Getting Started with DFormer.

Model Zoo and Baselines

We provide the baseline results and trained models available for download.

COCO Model Zoo

Panoptic Segmentation

Name Backbone epochs PQ download
DFormer R50 50 51.1 model
DFormer Swin-T 50 52.5 model

Instance Segmentation

Name Backbone epochs AP download
DFormer R50 50 42.6 model
DFormer Swin-T 50 44.4 model

ADE20K Model Zoo

Semantic Segmentation

Name Backbone iterations mIoU download
DFormer R50 160k 46.7 model
DFormer Swin-T 160k 48.3 model

Citing DFormer

If you use DFormer in your research or wish to refer to the baseline results published in the Model Zoo and Baselines, please use the following BibTeX entry.

@article{wang2023dformer,
  title={DFormer: Diffusion-guided Transformer for Universal Image Segmentation},
  author={Wang, Hefeng and Cao, Jiale and Anwer, Rao Muhammad and Xie, Jin and Khan, Fahad Shahbaz and Pang, Yanwei},
  journal={arXiv preprint arXiv:2306.03437},
  year={2023}
}

Acknowledgement

Many thanks to the nice work of Mask2Former @Bowen Cheng and DDIM @Jiaming Song. Our codes and configs follow Mask2Former and DDIM.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published