PolyFormer: Referring Image Segmentation as Sequential Polygon Generation
Jiang Liu, Hui Ding, Zhaowei Cai, Yuting Zhang, Ravi Kumar Satzoda, Vijay Mahadevan, R. Manmatha
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/amazon-science/polygon-transformerOfficialpytorch★ 162
Abstract
In this work, instead of directly predicting the pixel-level segmentation masks, the problem of referring image segmentation is formulated as sequential polygon generation, and the predicted polygons can be later converted into segmentation masks. This is enabled by a new sequence-to-sequence framework, Polygon Transformer (PolyFormer), which takes a sequence of image patches and text query tokens as input, and outputs a sequence of polygon vertices autoregressively. For more accurate geometric localization, we propose a regression-based decoder, which predicts the precise floating-point coordinates directly, without any coordinate quantization error. In the experiments, PolyFormer outperforms the prior art by a clear margin, e.g., 5.40% and 4.52% absolute improvements on the challenging RefCOCO+ and RefCOCOg datasets. It also shows strong generalization ability when evaluated on the referring video segmentation task without fine-tuning, e.g., achieving competitive 61.5% J&F on the Ref-DAVIS17 dataset.
Tasks
Benchmark Results
| Dataset | Model | Metric | Claimed | Verified | Status |
|---|---|---|---|---|---|
| DAVIS 2017 (val) | PolyFormer-B | J&F 1st frame | 60.9 | — | Unverified |
| RefCOCOg-test | PolyFormer-L | Overall IoU | 70.19 | — | Unverified |
| RefCOCOg-test | PolyFormer-B | Overall IoU | 69.05 | — | Unverified |
| RefCOCOg-val | PolyFormer-L | Overall IoU | 69.2 | — | Unverified |
| RefCOCOg-val | PolyFormer-B | Overall IoU | 67.76 | — | Unverified |
| RefCOCO testA | PolyFormer-B | Overall IoU | 72.89 | — | Unverified |
| RefCOCO testA | PolyFormer-L | Overall IoU | 74.56 | — | Unverified |
| RefCOCO+ test B | PolyFormer-L | Overall IoU | 61.87 | — | Unverified |
| RefCOCO+ test B | PolyFormer-B | Overall IoU | 59.33 | — | Unverified |
| RefCoCo val | PolyFormer-B | Overall IoU | 67.64 | — | Unverified |
| RefCoCo val | PolyFormer-B | Overall IoU | 74.82 | — | Unverified |
| RefCoCo val | PolyFormer-L | Overall IoU | 75.96 | — | Unverified |
| RefCoCo val | PolyFormer-L | Overall IoU | 69.33 | — | Unverified |
| ReferIt | PolyFormer-L | Overall IoU | 72.6 | — | Unverified |
| ReferIt | PolyFormer-B | Overall IoU | 71.91 | — | Unverified |