{"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/transformers-solve-the-limited-receptive","title":"Transformer-Based Attention Networks for Continuous Pixel-Wise Prediction","arxiv_id":"2103.12091","date":"2021-03-22","proceeding":"ICCV 2021 10","authors":["Guanglei Yang","Hao Tang","Mingli Ding","Nicu Sebe","Elisa Ricci"],"abstract":"While convolutional neural networks have shown a tremendous impact on various computer vision tasks, they generally demonstrate limitations in explicitly modeling long-range dependencies due to the intrinsic locality of the convolution operation. Initially designed for natural language processing tasks, Transformers have emerged as alternative architectures with innate global self-attention mechanisms to capture long-range dependencies. In this paper, we propose TransDepth, an architecture that benefits from both convolutional neural networks and transformers. To avoid the network losing its ability to capture local-level details due to the adoption of transformers, we propose a novel decoder that employs attention mechanisms based on gates. Notably, this is the first paper that applies transformers to pixel-wise prediction problems involving continuous labels (i.e., monocular depth prediction and surface normal estimation). Extensive experiments demonstrate that the proposed TransDepth achieves state-of-the-art performance on three challenging datasets. Our code is available at: https://github.com/ygjwd12345/TransDepth.","url_abs":"https://arxiv.org/abs/2103.12091v2","url_pdf":"https://arxiv.org/pdf/2103.12091v2.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":"transformers-solve-the-limited-receptive","repo_url":"https://github.com/ygjwd12345/TransDepth","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":"depth-estimation","task_name":"Depth Estimation"},{"task_slug":"depth-prediction","task_name":"Depth Prediction"},{"task_slug":"prediction","task_name":"Prediction"},{"task_slug":"surface-normal-estimation","task_name":"Surface Normal Estimation"}],"methods":[{"method_slug":"convolution","method_name":"Convolution"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/depth-estimation-on-nyu-depth-v2","task":"Depth Estimation","dataset":"NYU-Depth V2","model":"TransDepth (AGD+ ViT)","rank_in_archive_order":8,"of":17,"metrics":{"RMS":"0.365"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2103.12091","atlas_url":"https://app.syntology.ai/?focus=2103.12091","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2103.12091"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ygjwd12345/TransDepth","reach":null}],"summary":{"ran":7,"unverified":4},"by_repo_kind":{"official":{"samples":11,"ran":7,"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":"c8230155e056fdde","entry":"Attention","repo":"ygjwd12345/TransDepth","repo_kind":"official","path":"pytorch/TransUNet/networks/vit_seg_modeling.py","file_url":"https://github.com/ygjwd12345/TransDepth/blob/HEAD/pytorch/TransUNet/networks/vit_seg_modeling.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c8230155e056fdde"}},{"code_sha256_prefix":"38c7e4b5cd543511","entry":"Block","repo":"ygjwd12345/TransDepth","repo_kind":"official","path":"pytorch/TransUNet/networks/vit_seg_modeling.py","file_url":"https://github.com/ygjwd12345/TransDepth/blob/HEAD/pytorch/TransUNet/networks/vit_seg_modeling.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"38c7e4b5cd543511"}},{"code_sha256_prefix":"e6f41e0edb366895","entry":"Conv2dReLU","repo":"ygjwd12345/TransDepth","repo_kind":"official","path":"pytorch/TransUNet/networks/vit_seg_modeling.py","file_url":"https://github.com/ygjwd12345/TransDepth/blob/HEAD/pytorch/TransUNet/networks/vit_seg_modeling.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e6f41e0edb366895"}},{"code_sha256_prefix":"e513e3bea9c39c7f","entry":"DecoderBlock","repo":"ygjwd12345/TransDepth","repo_kind":"official","path":"pytorch/TransUNet/networks/vit_seg_modeling.py","file_url":"https://github.com/ygjwd12345/TransDepth/blob/HEAD/pytorch/TransUNet/networks/vit_seg_modeling.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e513e3bea9c39c7f"}},{"code_sha256_prefix":"6016a68bbfd0e3e2","entry":"DecoderCup","repo":"ygjwd12345/TransDepth","repo_kind":"official","path":"pytorch/TransUNet/networks/vit_seg_modeling.py","file_url":"https://github.com/ygjwd12345/TransDepth/blob/HEAD/pytorch/TransUNet/networks/vit_seg_modeling.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6016a68bbfd0e3e2"}},{"code_sha256_prefix":"c359fa03063baf48","entry":"Mlp","repo":"ygjwd12345/TransDepth","repo_kind":"official","path":"pytorch/TransUNet/networks/vit_seg_modeling.py","file_url":"https://github.com/ygjwd12345/TransDepth/blob/HEAD/pytorch/TransUNet/networks/vit_seg_modeling.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c359fa03063baf48"}},{"code_sha256_prefix":"6b0de82be843fa1f","entry":"ResNetV2","repo":"ygjwd12345/TransDepth","repo_kind":"official","path":"pytorch/TransUNet/networks/vit_seg_modeling.py","file_url":"https://github.com/ygjwd12345/TransDepth/blob/HEAD/pytorch/TransUNet/networks/vit_seg_modeling.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6b0de82be843fa1f"}},{"code_sha256_prefix":"5b3f7cc25a1845a7","entry":"Embeddings","repo":"ygjwd12345/TransDepth","repo_kind":"official","path":"pytorch/TransUNet/networks/vit_seg_modeling.py","file_url":"https://github.com/ygjwd12345/TransDepth/blob/HEAD/pytorch/TransUNet/networks/vit_seg_modeling.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5b3f7cc25a1845a7"}},{"code_sha256_prefix":"a60eafd78ef5b4f1","entry":"Encoder","repo":"ygjwd12345/TransDepth","repo_kind":"official","path":"pytorch/TransUNet/networks/vit_seg_modeling.py","file_url":"https://github.com/ygjwd12345/TransDepth/blob/HEAD/pytorch/TransUNet/networks/vit_seg_modeling.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a60eafd78ef5b4f1"}},{"code_sha256_prefix":"dd407a679dfd5390","entry":"Transformer","repo":"ygjwd12345/TransDepth","repo_kind":"official","path":"pytorch/TransUNet/networks/vit_seg_modeling.py","file_url":"https://github.com/ygjwd12345/TransDepth/blob/HEAD/pytorch/TransUNet/networks/vit_seg_modeling.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dd407a679dfd5390"}},{"code_sha256_prefix":"079c4f5086884f75","entry":"VisionTransformer","repo":"ygjwd12345/TransDepth","repo_kind":"official","path":"pytorch/TransUNet/networks/vit_seg_modeling.py","file_url":"https://github.com/ygjwd12345/TransDepth/blob/HEAD/pytorch/TransUNet/networks/vit_seg_modeling.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"079c4f5086884f75"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}