2024-12-03 · 进阶 · 机器学习 · 计算机视觉

Efficient Track Anything

本文提出了一种高效的视频目标分割和跟踪模型EfficientTAM,通过使用轻量级的ViT图像编码器和高效的记忆模块,实现了在保持高精度的同时降低计算复杂度和模型尺寸。

更新于 2024-12-03。作者:Yunyang Xiong、Chong Zhou、Xiaoyu Xiang、Lemeng Wu、Chenchen Zhu、Zechun Liu、Saksham Suri、Balakrishnan Varadarajan、Ramya Akula、Forrest Iandola、Raghuraman Krishnamoorthi、Bilge Soran、Vikas Chandra。

中文摘要

Segment Anything Model 2(SAM 2)已成为视频对象分割和跟踪任何物体的强大工具。推动SAM 2在视频对象分割中表现出色的关键组件包括一个用于帧特征提取的大型多阶段图像编码器和一个存储先前帧的内存机制,以帮助当前帧的分割。多阶段图像编码器和内存模块的高计算复杂性限制了其在实际任务中的应用,例如在移动设备上进行视频对象分割。为了解决这一限制,我们提出了EfficientTAMs,这是一种轻量级的跟踪任何物体模型,能够以低延迟和模型尺寸产生高质量的结果。我们的想法是基于重新审视平面、非层次化的视觉Transformer(ViT)作为视频对象分割的图像编码器,并引入一个高效的记忆模块,该模块降低了帧特征提取和当前帧分割的内存计算复杂性。我们采用原味的轻量级ViT和高效的记忆模块来构建EfficientTAMs,并在SA-1B和SA-V数据集上对视频对象分割和跟踪任何物体任务进行训练。我们在多个视频分割基准测试中进行了评估,包括半监督视频目标分割和可提示视频分割,发现我们提出的带有原味ViT的EfficientTAM在A100上具有约2倍的速度提升和约2.4倍的参数减少,与SAM 2模型(HieraB+SAM 2)表现相当。在分割任何图像任务上,我们的EfficientTAMs也优于原始SAM,在A100上具有约20倍的速度提升和约20倍的参数减少。在iPhone 15 Pro Max等移动设备上,我们的EfficientTAMs可以以约10 FPS的速度运行,以合理质量进行视频对象分割,突显了小型模型在设备上应用视频对象分割的能力。

英文摘要

Segment Anything Model 2 (SAM 2) has emerged as a powerful tool for video object segmentation and tracking anything. Key components of SAM 2 that drive the impressive video object segmentation performance include a large multistage image encoder for frame feature extraction and a memory mechanism that stores memory contexts from past frames to help current frame segmentation. The high computation complexity of multistage image encoder and memory module has limited its applications in real-world tasks, e.g., video object segmentation on mobile devices. To address this limitation, we propose EfficientTAMs, lightweight track anything models that produce high-quality results with low latency and model size. Our idea is based on revisiting the plain, nonhierarchical Vision Transformer (ViT) as an image encoder for video object segmentation, and introducing an efficient memory module, which reduces the complexity for both frame feature extraction and memory computation for current frame segmentation. We take vanilla lightweight ViTs and efficient memory module to build EfficientTAMs, and train the models on SA-1B and SA-V datasets for video object segmentation and track anything tasks. We evaluate on multiple video segmentation benchmarks including semi-supervised VOS and promptable video segmentation, and find that our proposed EfficientTAM with vanilla ViT perform comparably to SAM 2 model (HieraB+SAM 2) with ~2x speedup on A100 and ~2.4x parameter reduction. On segment anything image tasks, our EfficientTAMs also perform favorably over original SAM with ~20x speedup on A100 and ~20x parameter reduction. On mobile devices such as iPhone 15 Pro Max, our EfficientTAMs can run at ~10 FPS for performing video object segmentation with reasonable quality, highlighting the capability of small models for on-device video object segmentation applications.

解读

一句话总结

本文提出了一种高效的视频目标分割和跟踪模型EfficientTAM,通过使用轻量级的ViT图像编码器和高效的记忆模块,实现了在保持高精度的同时降低计算复杂度和模型尺寸。

问题1:这篇论文想要解决什么具体问题?

• 问题背景:SAM 2模型在视频目标分割和跟踪任务中表现出色,但其计算复杂度高,限制了其在移动设备等实际应用场景中的部署。 • 现有方案不足:现有的解决方案如SAM 2,虽然性能优越,但由于其复杂的图像编码器和内存模块,导致计算成本高,难以在移动设备等资源受限的环境中应用。 • 研究目标:提出一种轻量级的视频目标分割和跟踪模型EfficientTAM,在保持高性能的同时,降低计算复杂度和模型尺寸,使其能够应用于移动设备等资源受限的环境。

问题2:论文的核心创新点是什么?

• 技术创新:使用轻量级的ViT图像编码器进行帧特征提取,并提出了一种高效的记忆模块来加速内存计算。 • 方法改进:通过利用记忆空间嵌入的局部性和平均池化操作,实现高效的跨注意力机制。 • 优势:与SAM 2相比,EfficientTAM在保持相似性能的同时,实现了约2倍的速度提升和约2.4倍的参数减少。

问题3:实验结果如何验证了方法的有效性?

• 关键实验:在多个视频分割基准测试中,包括半监督视频目标分割和可提示视频分割,以及图像分割基准测试SA-23中进行了评估。 • 性能提升:EfficientTAM在A100 GPU上实现了约2倍的速度提升,在iPhone 15 Pro Max上实现了约10 FPS的视频目标分割,同时保持了合理的质量。 • 对比结果:EfficientTAM的性能与SAM 2相当,甚至在某些情况下超过了SAM 2。

问题4:这个研究的实际应用价值是什么?

• 应用场景:EfficientTAM可以应用于移动设备、嵌入式系统等资源受限的环境中,进行视频目标分割和跟踪任务。 • 实施建议:在部署EfficientTAM时,可以根据实际需求选择合适的图像编码器和记忆模块,以平衡性能和效率。 • 局限与展望:EfficientTAM的性能和效率仍有提升空间,未来可以进一步研究更轻量级的模型结构和更高效的注意力机制。

来源

机器可读索引:llms.txt