DFormer: Diffusion-guided Transformer for Universal Image Segmentation

Hefeng Wang, Jiale Cao, Rao Muhammad Anwer, Jin Xie, Fahad Shahbaz Khan +1 more
6/6/2023
cs.CV

Official code: cp3wan/DFormer (63 stars, MIT, last commit 2023-08-15).

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. Our DFormer outperforms the recent diffusion-based panoptic segmentation method Pix2Seq-D with a gain of 3.6% on MS COCO val2017 set. Further, DFormer achieves promising semantic segmentation performance outperforming the recent diffusion-based method by 2.2% on ADE20K val set. Our source code and models will be publicly on https://github.com/cp3wan/DFormer

View on arXivView PDF

Code Implementations(1)

cp3wan/DFormerOfficial100%
MIT
635C++, CudaJun 5, 20233 years agoMIT

Similar Papers

Cite this paper

@article{wang2023dformer,
  title  = {DFormer: Diffusion-guided Transformer for Universal Image Segmentation},
  author = {Hefeng Wang and Jiale Cao and Rao Muhammad Anwer and Jin Xie and Fahad Shahbaz Khan and Yanwei Pang},
  year   = {2023},
  eprint = {2306.03437},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.03437v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.03437.svg)](https://codeofpaper.com/paper/2306.03437)

Discussion