Turning a CLIP Model into a Scene Text Spotter

Wenwen Yu, Yuliang Liu, Xingkui Zhu, Haoyu Cao, Xing Sun +1 more
8/21/2023
cs.CV

Official code: wenwenyu/TCM (200 stars, last commit 2024-06-17).

Abstract

We exploit the potential of the large-scale Contrastive Language-Image Pretraining (CLIP) model to enhance scene text detection and spotting tasks, transforming it into a robust backbone, FastTCM-CR50. This backbone utilizes visual prompt learning and cross-attention in CLIP to extract image and text-based prior knowledge. Using predefined and learnable prompts, FastTCM-CR50 introduces an instance-language matching process to enhance the synergy between image and text embeddings, thereby refining text regions. Our Bimodal Similarity Matching (BSM) module facilitates dynamic language prompt generation, enabling offline computations and improving performance. FastTCM-CR50 offers several advantages: 1) It can enhance existing text detectors and spotters, improving performance by an average of 1.7% and 1.5%, respectively. 2) It outperforms the previous TCM-CR50 backbone, yielding an average improvement of 0.2% and 0.56% in text detection and spotting tasks, along with a 48.5% increase in inference speed. 3) It showcases robust few-shot training capabilities. Utilizing only 10% of the supervised data, FastTCM-CR50 improves performance by an average of 26.5% and 5.5% for text detection and spotting tasks, respectively. 4) It consistently enhances performance on out-of-distribution text detection and spotting datasets, particularly the NightTime-ArT subset from ICDAR2019-ArT and the DOTA dataset for oriented object detection. The code is available at https://github.com/wenwenyu/TCM.

View on arXivView PDF

Code Implementations(1)

wenwenyu/TCMOfficial100%

Turning a CLIP Model into a Scene Text Detector (CVPR2023) | Turning a CLIP Model into a Scene Text Spotter (TPAMI)

20020C++, CSSMar 1, 20232 years agoNOASSERTION

Similar Papers

Cite this paper

@article{yu2023turning,
  title  = {Turning a CLIP Model into a Scene Text Spotter},
  author = {Wenwen Yu and Yuliang Liu and Xingkui Zhu and Haoyu Cao and Xing Sun and Xiang Bai},
  year   = {2023},
  eprint = {2308.10408},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.10408v1}
}

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/2308.10408.svg)](https://codeofpaper.com/paper/2308.10408)

Discussion