{"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/deep-image-harmonization-with-learnable","title":"Deep Image Harmonization with Learnable Augmentation","arxiv_id":"2308.00376","date":"2023-08-01","proceeding":"ICCV 2023 1","authors":["Li Niu","Junyan Cao","Wenyan Cong","Liqing Zhang"],"abstract":"The goal of image harmonization is adjusting the foreground appearance in a composite image to make the whole image harmonious. To construct paired training images, existing datasets adopt different ways to adjust the illumination statistics of foregrounds of real images to produce synthetic composite images. However, different datasets have considerable domain gap and the performances on small-scale datasets are limited by insufficient training data. In this work, we explore learnable augmentation to enrich the illumination diversity of small-scale datasets for better harmonization performance. In particular, our designed SYthetic COmposite Network (SycoNet) takes in a real image with foreground mask and a random vector to learn suitable color transformation, which is applied to the foreground of this real image to produce a synthetic composite image. Comprehensive experiments demonstrate the effectiveness of our proposed learnable augmentation for image harmonization. The code of SycoNet is released at https://github.com/bcmi/SycoNet-Adaptive-Image-Harmonization.","url_abs":"https://arxiv.org/abs/2308.00376v1","url_pdf":"https://arxiv.org/pdf/2308.00376v1.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":"deep-image-harmonization-with-learnable","repo_url":"https://github.com/bcmi/syconet-adaptive-image-harmonization","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"diversity","task_name":"Diversity"},{"task_slug":"image-harmonization","task_name":"Image Harmonization"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2308.00376","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2308.00376"}},"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/bcmi/syconet-adaptive-image-harmonization","reach":{"status":"ok"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/bcmi/SycoNet-Adaptive-Image-Harmonization","reach":{"status":"ok"}}],"summary":{"ran":6,"ran_draft_wrong":2},"by_repo_kind":{"official":{"samples":8,"ran":8,"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":8,"samples":[{"code_sha256_prefix":"588b4859e772d88e","entry":"BasicBlock","repo":"bcmi/SycoNet-Adaptive-Image-Harmonization","repo_kind":"official","path":"models/modules.py","file_url":"https://github.com/bcmi/SycoNet-Adaptive-Image-Harmonization/blob/HEAD/models/modules.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":"588b4859e772d88e"}},{"code_sha256_prefix":"99b368311b07df2e","entry":"SycoNet","repo":"bcmi/SycoNet-Adaptive-Image-Harmonization","repo_kind":"official","path":"models/modules.py","file_url":"https://github.com/bcmi/SycoNet-Adaptive-Image-Harmonization/blob/HEAD/models/modules.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":"99b368311b07df2e"}},{"code_sha256_prefix":"78b2072ed1e3a34d","entry":"conv3x3","repo":"bcmi/SycoNet-Adaptive-Image-Harmonization","repo_kind":"official","path":"models/modules.py","file_url":"https://github.com/bcmi/SycoNet-Adaptive-Image-Harmonization/blob/HEAD/models/modules.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":"78b2072ed1e3a34d"}},{"code_sha256_prefix":"6ba164cab548fa89","entry":"convMeanpool","repo":"bcmi/SycoNet-Adaptive-Image-Harmonization","repo_kind":"official","path":"models/modules.py","file_url":"https://github.com/bcmi/SycoNet-Adaptive-Image-Harmonization/blob/HEAD/models/modules.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":"6ba164cab548fa89"}},{"code_sha256_prefix":"52ed44e21024e5fa","entry":"get_non_linearity","repo":"bcmi/syconet-adaptive-image-harmonization","repo_kind":"official","path":"models/modules.py","file_url":"https://github.com/bcmi/syconet-adaptive-image-harmonization/blob/HEAD/models/modules.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":"52ed44e21024e5fa"}},{"code_sha256_prefix":"de2e8a466e5bfce8","entry":"get_norm_layer","repo":"bcmi/syconet-adaptive-image-harmonization","repo_kind":"official","path":"models/modules.py","file_url":"https://github.com/bcmi/syconet-adaptive-image-harmonization/blob/HEAD/models/modules.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":"de2e8a466e5bfce8"}},{"code_sha256_prefix":"175c2a859aa53533","entry":"init_net","repo":"bcmi/syconet-adaptive-image-harmonization","repo_kind":"official","path":"models/modules.py","file_url":"https://github.com/bcmi/syconet-adaptive-image-harmonization/blob/HEAD/models/modules.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":"175c2a859aa53533"}},{"code_sha256_prefix":"776f42c3c4bfc923","entry":"tensor2im","repo":"bcmi/syconet-adaptive-image-harmonization","repo_kind":"official","path":"util/util.py","file_url":"https://github.com/bcmi/syconet-adaptive-image-harmonization/blob/HEAD/util/util.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":"776f42c3c4bfc923"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}