{"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/streamlining-the-image-stitching-pipeline","title":"Reconstructing the Image Stitching Pipeline: Integrating Fusion and Rectangling into a Unified Inpainting Model","arxiv_id":"2404.14951","date":"2024-04-23","proceeding":null,"authors":["Ziqi Xie","Weidong Zhao","Xianhui Liu","Jian Zhao","Ning Jia"],"abstract":"Deep learning-based image stitching pipelines are typically divided into three cascading stages: registration, fusion, and rectangling. Each stage requires its own network training and is tightly coupled to the others, leading to error propagation and posing significant challenges to parameter tuning and system stability. This paper proposes the Simple and Robust Stitcher (SRStitcher), which revolutionizes the image stitching pipeline by simplifying the fusion and rectangling stages into a unified inpainting model, requiring no model training or fine-tuning. We reformulate the problem definitions of the fusion and rectangling stages and demonstrate that they can be effectively integrated into an inpainting task. Furthermore, we design the weighted masks to guide the reverse process in a pre-trained largescale diffusion model, implementing this integrated inpainting task in a single inference. Through extensive experimentation, we verify the interpretability and generalization capabilities of this unified model, demonstrating that SRStitcher outperforms state-of-the-art methods in both performance and stability. Code: https://github.com/yayoyo66/SRStitcher","url_abs":"https://arxiv.org/abs/2404.14951v2","url_pdf":"https://arxiv.org/pdf/2404.14951v2.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":"streamlining-the-image-stitching-pipeline","repo_url":"https://github.com/yayoyo66/srstitcher","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-stitching","task_name":"Image Stitching"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"pixel-prediction","method_name":"Inpainting"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2404.14951","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2404.14951"}},"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/yayoyo66/srstitcher","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":6,"ran_draft_wrong":1,"unverified":3},"by_repo_kind":{"official":{"samples":10,"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":"99f9e3a213673f78","entry":"make_mask","repo":"yayoyo66/srstitcher","repo_kind":"official","path":"util/weighted_mask.py","file_url":"https://github.com/yayoyo66/srstitcher/blob/HEAD/util/weighted_mask.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":"99f9e3a213673f78"}},{"code_sha256_prefix":"77f69af078e09830","entry":"mean_pooling","repo":"yayoyo66/srstitcher","repo_kind":"official","path":"metrics/ccs.py","file_url":"https://github.com/yayoyo66/srstitcher/blob/HEAD/metrics/ccs.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"77f69af078e09830"}},{"code_sha256_prefix":"bd8b93f96fe4e0a0","entry":"merged_img","repo":"yayoyo66/srstitcher","repo_kind":"official","path":"util/preprocessing.py","file_url":"https://github.com/yayoyo66/srstitcher/blob/HEAD/util/preprocessing.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":"bd8b93f96fe4e0a0"}},{"code_sha256_prefix":"3e43cde496b041c3","entry":"prepare_mask_and_masked_image","repo":"yayoyo66/srstitcher","repo_kind":"official","path":"pipes/diff_pipe_inpaint.py","file_url":"https://github.com/yayoyo66/srstitcher/blob/HEAD/pipes/diff_pipe_inpaint.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":"3e43cde496b041c3"}},{"code_sha256_prefix":"67094dd5e74cc749","entry":"preprocess","repo":"yayoyo66/srstitcher","repo_kind":"official","path":"pipes/diff_pipe_SD2.py","file_url":"https://github.com/yayoyo66/srstitcher/blob/HEAD/pipes/diff_pipe_SD2.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":"67094dd5e74cc749"}},{"code_sha256_prefix":"23ac45287b4184e8","entry":"preprocess","repo":"yayoyo66/srstitcher","repo_kind":"official","path":"pipes/diff_pipe_unclip.py","file_url":"https://github.com/yayoyo66/srstitcher/blob/HEAD/pipes/diff_pipe_unclip.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":"23ac45287b4184e8"}},{"code_sha256_prefix":"ca5bdde262c98a1a","entry":"preprocess_image","repo":"yayoyo66/srstitcher","repo_kind":"official","path":"util/preprocessing.py","file_url":"https://github.com/yayoyo66/srstitcher/blob/HEAD/util/preprocessing.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":"ca5bdde262c98a1a"}},{"code_sha256_prefix":"639ccf4ead55737a","entry":"prepare_mask_and_masked_image","repo":"yayoyo66/srstitcher","repo_kind":"official","path":"pipes/diff_pipe_control.py","file_url":"https://github.com/yayoyo66/srstitcher/blob/HEAD/pipes/diff_pipe_control.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":"639ccf4ead55737a"}},{"code_sha256_prefix":"35553cf0d5ea88e8","entry":"preprocess_map","repo":"yayoyo66/srstitcher","repo_kind":"official","path":"util/preprocessing.py","file_url":"https://github.com/yayoyo66/srstitcher/blob/HEAD/util/preprocessing.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":"35553cf0d5ea88e8"}},{"code_sha256_prefix":"8262566e1ed7239a","entry":"retrieve_latents","repo":"yayoyo66/srstitcher","repo_kind":"official","path":"pipes/diff_pipe_control.py","file_url":"https://github.com/yayoyo66/srstitcher/blob/HEAD/pipes/diff_pipe_control.py","link_basis":"harvester_set","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":"8262566e1ed7239a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}