Language-Bridged Spatial-Temporal Interaction for Referring Video Object Segmentation,
Zihan Ding, Tianrui Hui, Junshi Huang, Xiaoming Wei, Jizhong Han and Si Liu
CVPR 2022 (arxiv 2206.03789) (Demo)
- [2022-07-28] Upload J-HMDB annotation files.
- [2022-06-24] Upload A2D pretrained models (Download from hyperlinks in Performance section).
- [2022-06-08] Update codes.
- [2022-03-24] Code will come soon.
Referring video object segmentation aims to predict foreground labels for objects referred by natural language expressions in videos. Previous methods either depend on 3D ConvNets or incorporate additional 2D ConvNets as encoders to extract mixed spatial-temporal features. However, these methods suffer from spatial misalignment or false distractors due to delayed and implicit spatial-temporal interaction occurring in the decoding phase. To tackle these limitations, we propose a Language-Bridged Duplex Transfer (LBDT) module which utilizes language as an intermediary bridge to accomplish explicit and adaptive spatial-temporal interaction earlier in the encoding phase. Concretely, cross-modal attention is performed among the temporal encoder, referring words and the spatial encoder to aggregate and transfer language-relevant motion and appearance information. In addition, we also propose a Bilateral Channel Activation (BCA) module in the decoding phase for further denoising and highlighting the spatial-temporal consistent features via channel-wise activation. Extensive experiments show our method achieves new state-of-the-art performances on four popular benchmarks with 6.8% and 6.9% absolute AP gains on A2D Sentences and J-HMDB Sentences respectively, while consuming around 7× less computational overhead.
- Linux (CUDA 10.1) or macOS with Python 3.7
- Pytorch == 1.7.1
- Torchvision == 0.8.2
You may use pip install -r requirements.txt
to install the dependencies.
Download this dataset from here. Extract frames and masks from clips320H/
and Annotations/col
. Text annotations can be download from here. We expect the directory structure to be the follows:
LBDT
├── datasets
│ ├── a2d
│ │ ├── images
│ │ ├── masks
| | ├── train.txt
| | ├── val.txt
Download the dataset from the competition's website here. Text annotations can be download from here. Then, extract and organize the file. We expect the directory structure to be the following:
LBDT
├── datasets
│ ├── ytvos
│ │ ├── train
│ │ ├── val
| | ├── train.txt
| | ├── val.txt
sh scripts/train_a2d.sh
sh scripts/train_ytvos.sh
sh scripts/eval.sh
Method | P@0.5 | P@0.6 | P@0.7 | P@0.8 | P@0.9 | AP | Overall IoU | Mean IoU |
---|---|---|---|---|---|---|---|---|
LBDT-1 | 71.1 | 66.1 | 57.8 | 41.6 | 12.0 | 46.1 | 70.1 | 61.2 |
LBDT-4 | 73.0 | 67.4 | 59.0 | 42.1 | 13.2 | 47.2 | 70.4 | 62.1 |
Method | P@0.5 | P@0.6 | P@0.7 | P@0.8 | P@0.9 | AP | Overall IoU | Mean IoU |
---|---|---|---|---|---|---|---|---|
LBDT-1 | 86.4 | 75.1 | 50.7 | 11.6 | 0.1 | 40.3 | 64.6 | 65.2 |
LBDT-4 | 86.4 | 74.4 | 53.3 | 12.2 | 0.0 | 41.1 | 64.5 | 65.8 |
Method | J | F | J&F |
---|---|---|---|
LBDT-4 | 48.18 | 50.57 | 49.38 |
@inproceedings{ding2022language,
title={Language-Bridged Spatial-Temporal Interaction for Referring Video Object Segmentation},
author={Ding, Zihan and Hui, Tianrui and Huang, Junshi and Wei, Xiaoming and Han, Jizhong and Liu, Si},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={4964--4973},
year={2022}
}