{"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/bilateral-grid-learning-for-stereo-matching","title":"Bilateral Grid Learning for Stereo Matching Networks","arxiv_id":"2101.01601","date":"2021-06-19","proceeding":"CVPR 2021 1","authors":["Bin Xu","Yuhua Xu","Xiaoli Yang","Wei Jia","Yulan Guo"],"abstract":"Real-time performance of stereo matching networks is important for many applications, such as automatic driving, robot navigation and augmented reality (AR). Although significant progress has been made in stereo matching networks in recent years, it is still challenging to balance real-time performance and accuracy. In this paper, we present a novel edge-preserving cost volume upsampling module based on the slicing operation in the learned bilateral grid. The slicing layer is parameter-free, which allows us to obtain a high quality cost volume of high resolution from a low-resolution cost volume under the guide of the learned guidance map efficiently. The proposed cost volume upsampling module can be seamlessly embedded into many existing stereo matching networks, such as GCNet, PSMNet, and GANet. The resulting networks are accelerated several times while maintaining comparable accuracy. Furthermore, we design a real-time network (named BGNet) based on this module, which outperforms existing published real-time deep stereo matching networks, as well as some complex networks on the KITTI stereo datasets. The code is available at https://github.com/YuhuaXu/BGNet.","url_abs":"https://arxiv.org/abs/2101.01601v2","url_pdf":"https://arxiv.org/pdf/2101.01601v2.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":"bilateral-grid-learning-for-stereo-matching","repo_url":"https://github.com/3dcvdeveloper/bgnet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"robot-navigation","task_name":"Robot Navigation"},{"task_slug":"stereo-matching-1","task_name":"Stereo Matching"}],"methods":[{"method_slug":"1x1-convolution","method_name":"1x1 Convolution"},{"method_slug":"gcnet","method_name":"GCNet"},{"method_slug":"global-context-block","method_name":"Global Context Block"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2101.01601","atlas_url":"https://app.syntology.ai/?focus=2101.01601","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2101.01601"}},"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/3dcvdeveloper/bgnet","reach":null},{"provenance":"deterministic:regex_extraction","url":"https://github.com/YuhuaXu/BGNet","reach":{"status":"unanswered"}}],"summary":{"ran":7,"ran_fixture":2,"ran_draft_wrong":6,"unverified":3},"by_repo_kind":{"listed":{"samples":18,"ran":15,"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":18,"samples":[{"code_sha256_prefix":"9a3470e356cda70a","entry":"BasicBlock","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9a3470e356cda70a"}},{"code_sha256_prefix":"5dde41e5cbe66484","entry":"BasicConv","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5dde41e5cbe66484"}},{"code_sha256_prefix":"47aa190cbe93efd5","entry":"CoeffsPredictor","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"47aa190cbe93efd5"}},{"code_sha256_prefix":"95d1eb59a990a89a","entry":"Conv2x","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"95d1eb59a990a89a"}},{"code_sha256_prefix":"7cfc33a27be06715","entry":"GuideNN","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7cfc33a27be06715"}},{"code_sha256_prefix":"0e7ac1f3e7786c5c","entry":"HourGlass","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0e7ac1f3e7786c5c"}},{"code_sha256_prefix":"ae4e7cfcb01f5589","entry":"SubModule","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ae4e7cfcb01f5589"}},{"code_sha256_prefix":"b2535abc79c55bba","entry":"build_gwc_volume","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b2535abc79c55bba"}},{"code_sha256_prefix":"15ab3c76823aef7e","entry":"convbn","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"15ab3c76823aef7e"}},{"code_sha256_prefix":"048a27952bbb8a27","entry":"convbn_2d_Tanh","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"048a27952bbb8a27"}},{"code_sha256_prefix":"e4cc27fa245c1ad5","entry":"convbn_2d_lrelu","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e4cc27fa245c1ad5"}},{"code_sha256_prefix":"4cdeee0938bbee79","entry":"convbn_3d_lrelu","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4cdeee0938bbee79"}},{"code_sha256_prefix":"d4a9a11f1932d665","entry":"convbn_relu","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d4a9a11f1932d665"}},{"code_sha256_prefix":"989aebd42a5be4a7","entry":"convbn_transpose_3d","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"989aebd42a5be4a7"}},{"code_sha256_prefix":"2e5c0e4dfa009847","entry":"groupwise_correlation","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2e5c0e4dfa009847"}},{"code_sha256_prefix":"3167051676b0474e","entry":"BGNet","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3167051676b0474e"}},{"code_sha256_prefix":"3e4e7280de322963","entry":"Slice","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3e4e7280de322963"}},{"code_sha256_prefix":"54e77f48248aae70","entry":"feature_extraction","repo":"3dcvdeveloper/bgnet","repo_kind":"listed","path":"models/bgnet.py","file_url":"https://github.com/3dcvdeveloper/bgnet/blob/HEAD/models/bgnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"54e77f48248aae70"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}