{"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/legoformer-transformers-for-block-by-block","title":"LegoFormer: Transformers for Block-by-Block Multi-view 3D Reconstruction","arxiv_id":"2106.12102","date":"2021-06-23","proceeding":null,"authors":["Farid Yagubbayli","Yida Wang","Alessio Tonioni","Federico Tombari"],"abstract":"Most modern deep learning-based multi-view 3D reconstruction techniques use RNNs or fusion modules to combine information from multiple images after independently encoding them. These two separate steps have loose connections and do not allow easy information sharing among views. We propose LegoFormer, a transformer model for voxel-based 3D reconstruction that uses the attention layers to share information among views during all computational stages. Moreover, instead of predicting each voxel independently, we propose to parametrize the output with a series of low-rank decomposition factors. This reformulation allows the prediction of an object as a set of independent regular structures then aggregated to obtain the final reconstruction. Experiments conducted on ShapeNet demonstrate the competitive performance of our model with respect to the state of the art while having increased interpretability thanks to the self-attention layers. We also show promising generalization results to real data.","url_abs":"https://arxiv.org/abs/2106.12102v2","url_pdf":"https://arxiv.org/pdf/2106.12102v2.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":"legoformer-transformers-for-block-by-block","repo_url":"https://github.com/faridyagubbayli/LegoFormer","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"3d-reconstruction","task_name":"3D Reconstruction"},{"task_slug":"multi-view-3d-reconstruction","task_name":"Multi-View 3D Reconstruction"},{"task_slug":"object-reconstruction","task_name":"Object Reconstruction"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2106.12102","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.12102"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/faridyagubbayli/LegoFormer","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_honours":1,"unverified":7},"by_repo_kind":{"official":{"samples":8,"ran":1,"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":"69664111108e8701","entry":"positionalencoding2d","repo":"faridyagubbayli/LegoFormer","repo_kind":"official","path":"legoformer/util/utils.py","file_url":"https://github.com/faridyagubbayli/LegoFormer/blob/HEAD/legoformer/util/utils.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"69664111108e8701"}},{"code_sha256_prefix":"c6736faa9a281ad2","entry":"calculate_dice","repo":"faridyagubbayli/LegoFormer","repo_kind":"official","path":"legoformer/util/metrics.py","file_url":"https://github.com/faridyagubbayli/LegoFormer/blob/HEAD/legoformer/util/metrics.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":"c6736faa9a281ad2"}},{"code_sha256_prefix":"e80fa4f734929edc","entry":"calculate_iou","repo":"faridyagubbayli/LegoFormer","repo_kind":"official","path":"legoformer/util/metrics.py","file_url":"https://github.com/faridyagubbayli/LegoFormer/blob/HEAD/legoformer/util/metrics.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":"e80fa4f734929edc"}},{"code_sha256_prefix":"1eae4b3f197beafb","entry":"calculate_occupation_ratio","repo":"faridyagubbayli/LegoFormer","repo_kind":"official","path":"legoformer/util/metrics.py","file_url":"https://github.com/faridyagubbayli/LegoFormer/blob/HEAD/legoformer/util/metrics.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":"1eae4b3f197beafb"}},{"code_sha256_prefix":"3c3fb01a914c2038","entry":"positionalencoding1d","repo":"faridyagubbayli/LegoFormer","repo_kind":"official","path":"legoformer/util/utils.py","file_url":"https://github.com/faridyagubbayli/LegoFormer/blob/HEAD/legoformer/util/utils.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":"3c3fb01a914c2038"}},{"code_sha256_prefix":"fdd34323213bcdbf","entry":"read_as_3d_array","repo":"faridyagubbayli/LegoFormer","repo_kind":"official","path":"legoformer/util/binvox_rw.py","file_url":"https://github.com/faridyagubbayli/LegoFormer/blob/HEAD/legoformer/util/binvox_rw.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":"fdd34323213bcdbf"}},{"code_sha256_prefix":"873e9e9846a73a89","entry":"read_as_coord_array","repo":"faridyagubbayli/LegoFormer","repo_kind":"official","path":"legoformer/util/binvox_rw.py","file_url":"https://github.com/faridyagubbayli/LegoFormer/blob/HEAD/legoformer/util/binvox_rw.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":"873e9e9846a73a89"}},{"code_sha256_prefix":"e2daca6af10fd133","entry":"read_header","repo":"faridyagubbayli/LegoFormer","repo_kind":"official","path":"legoformer/util/binvox_rw.py","file_url":"https://github.com/faridyagubbayli/LegoFormer/blob/HEAD/legoformer/util/binvox_rw.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":"e2daca6af10fd133"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}