{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/oadtr-online-action-detection-with","title":"OadTR: Online Action Detection with Transformers","arxiv_id":"2106.11149","date":"2021-06-21","proceeding":"ICCV 2021 10","authors":["Xiang Wang","Shiwei Zhang","Zhiwu Qing","Yuanjie Shao","Zhengrong Zuo","Changxin Gao","Nong Sang"],"abstract":"Most recent approaches for online action detection tend to apply Recurrent Neural Network (RNN) to capture long-range temporal structure. However, RNN suffers from non-parallelism and gradient vanishing, hence it is hard to be optimized. In this paper, we propose a new encoder-decoder framework based on Transformers, named OadTR, to tackle these problems. The encoder attached with a task token aims to capture the relationships and global interactions between historical observations. The decoder extracts auxiliary information by aggregating anticipated future clip representations. Therefore, OadTR can recognize current actions by encoding historical information and predicting future context simultaneously. We extensively evaluate the proposed OadTR on three challenging datasets: HDD, TVSeries, and THUMOS14. The experimental results show that OadTR achieves higher training and inference speeds than current RNN based approaches, and significantly outperforms the state-of-the-art methods in terms of both mAP and mcAP. Code is available at https://github.com/wangxiang1230/OadTR.","url_abs":"https://arxiv.org/abs/2106.11149v1","url_pdf":"https://arxiv.org/pdf/2106.11149v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"oadtr-online-action-detection-with","repo_url":"https://github.com/wangxiang1230/OadTR","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"action-detection","task_name":"Action Detection"},{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":"online-action-detection","task_name":"Online Action Detection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/online-action-detection-on-thumos-14","task":"Online Action Detection","dataset":"THUMOS'14","model":"OadTR","rank_in_archive_order":8,"of":15,"metrics":{"mAP":"65.2"},"uses_additional_data":false},{"leaderboard":"/sota/online-action-detection-on-tvseries","task":"Online Action Detection","dataset":"TVSeries","model":"OadTR","rank_in_archive_order":10,"of":13,"metrics":{"mCAP":"87.2"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2106.11149","atlas_url":"https://app.syntology.ai/?focus=2106.11149","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.11149"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/wangxiang1230/OadTR","reach":null}],"summary":{"ran":5},"by_repo_kind":{"official":{"samples":5,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"3f319c4110f9f985","entry":"FeedForward","repo":"wangxiang1230/OadTR","repo_kind":"official","path":"transformer_models/Transformer.py","file_url":"https://github.com/wangxiang1230/OadTR/blob/HEAD/transformer_models/Transformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3f319c4110f9f985"}},{"code_sha256_prefix":"ab9f4edd2f9884b4","entry":"PreNorm","repo":"wangxiang1230/OadTR","repo_kind":"official","path":"transformer_models/Transformer.py","file_url":"https://github.com/wangxiang1230/OadTR/blob/HEAD/transformer_models/Transformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ab9f4edd2f9884b4"}},{"code_sha256_prefix":"a328285478e2c506","entry":"PreNormDrop","repo":"wangxiang1230/OadTR","repo_kind":"official","path":"transformer_models/Transformer.py","file_url":"https://github.com/wangxiang1230/OadTR/blob/HEAD/transformer_models/Transformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a328285478e2c506"}},{"code_sha256_prefix":"9c45f031bb45ad67","entry":"SelfAttention","repo":"wangxiang1230/OadTR","repo_kind":"official","path":"transformer_models/Transformer.py","file_url":"https://github.com/wangxiang1230/OadTR/blob/HEAD/transformer_models/Transformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9c45f031bb45ad67"}},{"code_sha256_prefix":"bf0046350fddaaa9","entry":"TransformerModel","repo":"wangxiang1230/OadTR","repo_kind":"official","path":"transformer_models/Transformer.py","file_url":"https://github.com/wangxiang1230/OadTR/blob/HEAD/transformer_models/Transformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bf0046350fddaaa9"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}