{"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/unsupervised-homography-estimation-with","title":"Unsupervised Homography Estimation with Coplanarity-Aware GAN","arxiv_id":"2205.03821","date":"2022-05-08","proceeding":"CVPR 2022 1","authors":["Mingbo Hong","Yuhang Lu","Nianjin Ye","Chunyu Lin","Qijun Zhao","Shuaicheng Liu"],"abstract":"Estimating homography from an image pair is a fundamental problem in image alignment. Unsupervised learning methods have received increasing attention in this field due to their promising performance and label-free training. However, existing methods do not explicitly consider the problem of plane-induced parallax, which will make the predicted homography compromised on multiple planes. In this work, we propose a novel method HomoGAN to guide unsupervised homography estimation to focus on the dominant plane. First, a multi-scale transformer network is designed to predict homography from the feature pyramids of input images in a coarse-to-fine fashion. Moreover, we propose an unsupervised GAN to impose coplanarity constraint on the predicted homography, which is realized by using a generator to predict a mask of aligned regions, and then a discriminator to check if two masked feature maps are induced by a single homography. To validate the effectiveness of HomoGAN and its components, we conduct extensive experiments on a large-scale dataset, and the results show that our matching error is 22% lower than the previous SOTA method. Code is available at https://github.com/megvii-research/HomoGAN.","url_abs":"https://arxiv.org/abs/2205.03821v1","url_pdf":"https://arxiv.org/pdf/2205.03821v1.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":"unsupervised-homography-estimation-with","repo_url":"https://github.com/megvii-research/homogan","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"homography-estimation","task_name":"Homography Estimation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2205.03821","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2205.03821"}},"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":"deterministic:regex_extraction","url":"https://github.com/megvii-research/HomoGAN","reach":null}],"summary":{"ran":1,"ran_honours":2,"ran_fixture":1,"ran_draft_wrong":2,"unverified":1},"by_repo_kind":{"official":{"samples":7,"ran":6,"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":7,"samples":[{"code_sha256_prefix":"e39f9b7a0d0e74c6","entry":"ASPP","repo":"megvii-research/HomoGAN","repo_kind":"official","path":"model/net.py","file_url":"https://github.com/megvii-research/HomoGAN/blob/HEAD/model/net.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":"e39f9b7a0d0e74c6"}},{"code_sha256_prefix":"607b90103fa892d1","entry":"gen_basis","repo":"megvii-research/HomoGAN","repo_kind":"official","path":"model/net.py","file_url":"https://github.com/megvii-research/HomoGAN/blob/HEAD/model/net.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"607b90103fa892d1"}},{"code_sha256_prefix":"99cfa3e490d53cf3","entry":"get_grid","repo":"megvii-research/HomoGAN","repo_kind":"official","path":"model/net.py","file_url":"https://github.com/megvii-research/HomoGAN/blob/HEAD/model/net.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"99cfa3e490d53cf3"}},{"code_sha256_prefix":"74a5ad6be92271b6","entry":"get_warp_flow","repo":"megvii-research/HomoGAN","repo_kind":"official","path":"model/net.py","file_url":"https://github.com/megvii-research/HomoGAN/blob/HEAD/model/net.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":"74a5ad6be92271b6"}},{"code_sha256_prefix":"f7ce3ed8c9c6e41f","entry":"transformer","repo":"megvii-research/HomoGAN","repo_kind":"official","path":"model/net.py","file_url":"https://github.com/megvii-research/HomoGAN/blob/HEAD/model/net.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f7ce3ed8c9c6e41f"}},{"code_sha256_prefix":"dfaa392019e3f31d","entry":"upsample2d_flow_as","repo":"megvii-research/HomoGAN","repo_kind":"official","path":"model/net.py","file_url":"https://github.com/megvii-research/HomoGAN/blob/HEAD/model/net.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dfaa392019e3f31d"}},{"code_sha256_prefix":"b62933c6810edf5f","entry":"HomoNet","repo":"megvii-research/HomoGAN","repo_kind":"official","path":"model/net.py","file_url":"https://github.com/megvii-research/HomoGAN/blob/HEAD/model/net.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":"b62933c6810edf5f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}