arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.09236cs.CV
收藏

基于时间平滑Transformers的实时的在线视频检测

Real-time Online Video Detection with Temporal Smoothing Transformers

University of Texas at Austin(德克萨斯大学奥斯汀分校)

Yue Zhao, Philipp Krähenbühl

摘要:

流视频识别的原因是对象和他们的行动在每一帧的视频。一个好的流识别模型可以捕获视频的长期动态和短期变化。不幸的是,在大多数现有的方法中,计算复杂性随着所考虑的动态的长度线性或二次地增长。这个问题在基于transformer的架构中尤为突出。为了解决这个问题,我们重新制定的交叉注意在视频Transformer通过内核的镜头,并采用两种时间平滑核:一个盒子核或拉普拉斯核。由此产生的流注意力重用帧与帧之间的大部分计算,并且仅需要每帧恒定的时间更新。基于这个想法,我们构建了TeSTra,一个时间平滑Transformer,它可以接受任意长的输入,并具有恒定的缓存和计算开销。具体来说,它在流设置中运行$6\times$的速度比等效的基于滑动窗口的Transformers快2,048帧。此外,由于时间跨度的增加,TeSTra在THUMOS'14和EPIC-Kitchen-100上实现了最先进的结果,这两个标准的在线动作检测和动作预测数据集。TeSTra的实时的【形】版本在THUMOS'14数据集上的表现优于所有先前的方法,但只有一种方法。

英文摘要:

Streaming video recognition reasons about objects and their actions in every frame of a video. A good streaming recognition model captures both long-term dynamics and short-term changes of video. Unfortunately, in most existing methods, the computational complexity grows linearly or quadratically with the length of the considered dynamics. This issue is particularly pronounced in transformer-based architectures. To address this issue, we reformulate the cross-attention in a video transformer through the lens of kernel and apply two kinds of temporal smoothing kernel: A box kernel or a Laplace kernel. The resulting streaming attention reuses much of the computation from frame to frame, and only requires a constant time update each frame. Based on this idea, we build TeSTra, a Temporal Smoothing Transformer, that takes in arbitrarily long inputs with constant caching and computing overhead. Specifically, it runs $6\times$ faster than equivalent sliding-window based transformers with 2,048 frames in a streaming setting. Furthermore, thanks to the increased temporal span, TeSTra achieves state-of-the-art results on THUMOS'14 and EPIC-Kitchen-100, two standard online action detection and action anticipation datasets. A real-time version of TeSTra outperforms all but one prior approaches on the THUMOS'14 dataset.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑