Semantic-Aware Frame-Event Fusion based Pattern Recognition via Large Vision-Language Models, Dong Li, Jiandong Jin, Yuhao Zhang, Yanlin Zhong, Yaoyang Wu, Lan Chen, Xiao Wang, Bin Luo [arXiv]
- [2024.10.28] SAFE is accepted by Journal Pattern Recognition.
Pattern recognition through the fusion of RGB frames and Event streams has emerged as a novel research area in recent years. Current methods typically employ backbone networks to individually extract the features of RGB frames and event streams, and subsequently fuse these features for pattern recognition. However, we posit that these methods may suffer from two key issues: 1). They attempt to directly learn a mapping from input vision modalities to the semantic labels. This approach often leads to sub-optimal results due to the disparity between the input and semantic labels; 2). They utilize small-scale backbone networks for the extraction of RGB and Event input features, thus these models fail to harness the recent performance advancements of large-scale visual-language models. In this study, we introduce a novel pattern recognition framework that consolidates the semantic labels, RGB frames, and event streams, leveraging pre-trained large-scale visionlanguage models. Specifically, given the input RGB frames, event streams, and all the predefined semantic labels, we employ a pre-trained large-scale vision model (CLIP vision encoder) to extract the RGB and event features. To handle the semantic labels, we initially convert them into language descriptions through prompt engineering, and then obtain the semantic features using the pre-trained large-scale language model (CLIP text encoder). Subsequently, we integrate the RGB/Event features and semantic features using multimodal Transformer networks. The resulting frame and event tokens are further amplified using self-attention layers. Concurrently, we propose to enhance the interactions between text tokens and RGB/Event to kens via cross-attention. Finally, we consolidate all three modalities using self-attention and feed-forward layers for recognition. Comprehensive experiments on the HARDVS and PokerEvent datasets fully substantiate the efficacy of our proposed SAFE model.
Python 3.9
torch 2.0.1
easydict 1.10
ftfy 6.1.1
Jinja2 3.1.2
scipy 1.11.2
tqdm 4.66.1
numpy 1.26.0
Pillow 10.0.1
torchvision 0.15.2
sentence-transformers 2.2.2
[Event Images] 链接:https://pan.baidu.com/s/1OhlhOBHY91W2SwE6oWjDwA?pwd=1234 提取码:1234
[Compact Event file] 链接:https://pan.baidu.com/s/1iw214Aj5ugN-arhuxjmfOw?pwd=1234 提取码:1234
BaiduYun (178GB): 链接:https://pan.baidu.com/s/1vQnHZUqQ1o58SajvtE-uHw?pwd=AHUE 提取码:AHUE
DropBox (178GB): https://www.dropbox.com/scl/fo/w658kwhfi3qa8naul3eeb/h?rlkey=zjn4b69wa1e3mhid8p6hh8v75&dl=0
https://arxiv.org/abs/2403.12534
train
CUDA_VISIBLE_DEVICES=3 python -m torch.distributed.launch --nproc_per_node=1 --master_port=30000 train.py poker
test
CUDA_VISIBLE_DEVICES=3 python -m torch.distributed.launch --nproc_per_node=1 --master_port=30000 eval.py poker
Code is released for non-commercial and research purposes only. For commercial purposes, please contact the authors.
Our code is implemented based on VTB, VTF.
If you think this work contributes to your research, please give us a star 🌟 and cite this paper via:
@misc{li2023SAFE,
title={Semantic-Aware Frame-Event Fusion based Pattern Recognition via Large Vision-Language Models},
author={Dong Li and Jiandong Jin and Yuhao Zhang and Yanlin Zhong and Yaoyang Wu and Lan Chen and Xiao Wang and Bin Luo},
year={2023},
eprint={2311.18592},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
If you have any questions about this work, please leave an issue.