Using external object detections in transformer-based action recognition
Патент · US A1
Полный текст
The technology provides approaches for use in classifying video data. This includes obtaining input object detections for a video segment having a plurality of video frames ( 2102 ). The system identifies, based on the object detections, a set of foreground tokens and a set of background tokens according to object locations in one of the plurality of video frames ( 2104 ). Each foreground token and each background token is a nonoverlapping space-time token ( 2104 ). The system downsamples the set of background tokens to obtain a reduced set of background tokens ( 2106 ). The system applies the set of foreground tokens and the reduced set of background tokens to an object-aware attention module to obtain updated features of patch tokens associated with the frame of the plurality of video frames ( 2108 ). The updated features of the patch tokens can then be used to perform a video processing task ( 2110 ).