MESAM: Enhancing SAM2 for Few-Shot Segmentation through Semantic-Visual Memory Generation and Refinement
Abstract
This paper investigates how to leverage the powerful capabilities of the Segment Anything Model 2 (SAM2) to tackle few-shot segmentation (FSS) tasks. One major challenge lies in the substantial appearance differences between the support and query images, which may diminish the effectiveness of the memory-matching process in SAM2. Through systematic analysis, we find that the memory generated based on the categorical semantic information is robust to this appearance divergence and is more compatible with SAM2. Based on these observations, we propose a new Memory-Enhanced SAM2 (MESAM) method, which first introduces a Semantic-Visual Memory Generation (SVMG) module to separately construct a query semantic memory, a query foreground visual memory, and a support adaptive visual memory. Then, in our designed Interactive Semantic Memory Refinement (ISMR) module, we further enrich the obtained semantic memory with fine-grained visual details, and suppress its misatcivated background responses. Extensive experiments on the PASCAL-, COCO-, and LVIS- datasets demonstrate that MESAM consistently outperforms existing FSS methods, achieving new state-of-the-art segmentation performance. Our source code is available at: \href{https://github.com/tianyu-zou/MESAM}{https://github.com/tianyu-zou/MESAM}.
Create a lesson
Metadata
- Comments
- 17pages, 12figures
Related papers
Learning How a Body Moves: Few-Shot Body Inference for Visual World Models of Animated Characters
Shared title terminologycs.CVAmarnath R
Adapting Frozen Promptable Segmenters to User-Defined Taxonomies via Few-Shot Proposal Learning
Shared title terminologycs.CVKhayrul Islam, Christopher Frederic Miller
PROPS: Can Visual Generators Keep the Current Look of a Prop?
Shared title terminologycs.CVXiangzhao Hao, Dianyi Wang, Keyan Zhou et al.
SuperFine3D: Efficient Global-Local Recursive Refinement for Extremely Detailed 3D Geometry Generation
Shared title terminologycs.CVLihan Li, Junwei Zhou, Yu-wing Tai
MSBench: Benchmarking Script-Controlled Multi-Shot Text-to-Video Generation
Shared title terminologycs.CVTao Huang, ZiHao Liang, Junhao Liu et al.
AgroVG+: Generalized Visual Grounding in Agriculture with Region-Supervised Action Generation
Shared title terminologycs.CVHaocheng Li, Juepeng Zheng, Guilong Xiao et al.