README.md

April 15, 2026 ยท View on GitHub

Vision-Aware Text Features in Referring Image Segmentation: From Object Understanding to Context Understanding

Paper arXiv Project Page

empty
TL;DR: VATEX is a novel method for referring image segmentation that leverages vision-aware text features to improve text understanding. By decomposing language cues into object and context understanding, the model can better localize objects and interpret complex sentences, leading to significant performance gains.

๐Ÿ† State-of-the-Art Performance

VATEX achieves state-of-the-art performance on multiple referring image segmentation benchmarks, demonstrating significant improvements over previous methods without requiring any external training data.


๐Ÿ› ๏ธ Requirements & Setup

๐Ÿ–ฅ๏ธ System Requirements

  • CUDA 12.8
  • Python 3.9
  • PyTorch 2.7

๐Ÿ“ฅ Installation

For detailed setup instructions, refer to installation.md.

๐Ÿ—‚๏ธ Data and Checkpoints

You can download our dataset as well as the reproduced training checkpoint from this Hugging Face link. After downloading, simply extract the data into the project directory to get started.

๐Ÿš€ Getting Started

  1. Download Pretrained ImageNet Models:
    • Swin-B
    • Swin-L
    • Video-Swin-B
  2. Place models in the weights folder.

๐Ÿ‹๏ธโ€โ™‚๏ธ Training

To train VATEX using train_net_video.py, first set up the corresponding datasets as described in data.md, then execute:

python train_net_video.py --config-file <config-path> --num-gpus <?> OUTPUT_DIR <?>

Where OUTPUT_DIR is the directory where the weights and logs will be stored. For example, train VATEX with Swin-B backbone with 2 GPUs:

python train_net_video.py --config configs/refcoco/swin/swin_base.yaml --num-gpus 2 OUTPUT_DIR results/swin_base

To resume training, simply add the flag --resume.

๐Ÿ“ˆ Evaluation

To evaluate a trained model, use the following command:

python train_net_video.py --config configs/refcoco/swin/swin_base.yaml \
    --num-gpus 1 --eval-only \
    MODEL.WEIGHTS <path_to_weights> \
    DATASETS.TEST '("refcoco_val",)' \
    OUTPUT_DIR <output_dir>

๐Ÿ“Š Reproduced Results

The following table presents the reproduced mIoU scores obtained using the released weights. These scores are slightly lower than those reported in the original paper, primarily due to differences in the software environment (PyTorch 2.7 / CUDA 12.8 versus the environment used during the initial training). Additionally, note that the numbers reported in the paper were selected from multiple runs, using the best-performing checkpoints.

DatasetSplitPaper (mIoU)Reproduced (mIoU)
RefCOCOval78.1677.08
RefCOCOtestA79.6478.59
RefCOCOtestB75.6474.65
RefCOCO+val70.0269.47
RefCOCO+testA74.4173.82
RefCOCO+testB62.5261.50
G-Refval69.7369.54
G-Reftest70.5870.17

All results use a Swin-B visual backbone and a CLIP text encoder.

๐Ÿ“Š Main Results

empty


As shown in the table, our method achieves remarkable performance improvements over state-of-the-art methods across all benchmarks on mIoU metrics. Notably, we surpass recent methods like CGFormer and VG-LAW by substantial margins: +1.23% and +3.11% on RefCOCO, +1.46% and +3.31% on RefCOCO+, and +2.16% and +4.37% on G-Ref validation splits respectively. The more complex the expressions, the greater the performance gains achieved by VATEX. Even compared to LISA, a large pre-trained vision-language model, VATEX consistently achieves an impressive 3-5% better performance across all datasets.

๐Ÿ“š Citing VATEX

If you find VATEX useful for your research, please cite the following paper:

@inproceedings{nguyen2025visionaware,
  title={Vision-Aware Text Features in Referring Image Segmentation: From Object Understanding to Context Understanding},
  author={Nguyen, Truong and Others},
  booktitle={Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)},
  year={2025},
  url={https://openaccess.thecvf.com/content/WACV2025/html/Nguyen-Truong_Vision-Aware_Text_Features_in_Referring_Image_Segmentation_From_Object_Understanding_WACV_2025_paper.html}
}