{"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/memory-guided-unsupervised-image-to-image","title":"Memory-guided Unsupervised Image-to-image Translation","arxiv_id":"2104.05170","date":"2021-04-12","proceeding":"CVPR 2021 1","authors":["Somi Jeong","Youngjung Kim","Eungbean Lee","Kwanghoon Sohn"],"abstract":"We present a novel unsupervised framework for instance-level image-to-image translation. Although recent advances have been made by incorporating additional object annotations, existing methods often fail to handle images with multiple disparate objects. The main cause is that, during inference, they apply a global style to the whole image and do not consider the large style discrepancy between instance and background, or within instances. To address this problem, we propose a class-aware memory network that explicitly reasons about local style variations. A key-values memory structure, with a set of read/update operations, is introduced to record class-wise style variations and access them without requiring an object detector at the test time. The key stores a domain-agnostic content representation for allocating memory items, while the values encode domain-specific style representations. We also present a feature contrastive loss to boost the discriminative power of memory items. We show that by incorporating our memory, we can transfer class-aware and accurate style representations across domains. Experimental results demonstrate that our model outperforms recent instance-level methods and achieves state-of-the-art performance.","url_abs":"https://arxiv.org/abs/2104.05170v1","url_pdf":"https://arxiv.org/pdf/2104.05170v1.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":[],"tasks":[{"task_slug":"image-to-image-translation","task_name":"Image-to-Image Translation"},{"task_slug":"translation","task_name":"Translation"},{"task_slug":"unsupervised-image-to-image-translation","task_name":"Unsupervised Image-To-Image Translation"}],"methods":[{"method_slug":"memory-network","method_name":"Memory Network"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2104.05170","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2104.05170"}},"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/HsinYingLee/DRIT","reach":null}],"summary":{"ran":14,"ran_draft_wrong":6,"unverified":5},"by_repo_kind":{"found_in_text":{"samples":25,"ran":20,"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":25,"samples":[{"code_sha256_prefix":"f8aba562a629bcc2","entry":"BasicBlock","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f8aba562a629bcc2"}},{"code_sha256_prefix":"740cc4c112a7292f","entry":"Dis","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"740cc4c112a7292f"}},{"code_sha256_prefix":"c03766f07a3fc8ae","entry":"Dis_content","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c03766f07a3fc8ae"}},{"code_sha256_prefix":"ff99bd28542eb0b7","entry":"E_attr","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ff99bd28542eb0b7"}},{"code_sha256_prefix":"51b77b83aa8057da","entry":"E_attr_concat","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"51b77b83aa8057da"}},{"code_sha256_prefix":"8555d745df56cef9","entry":"G","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8555d745df56cef9"}},{"code_sha256_prefix":"b3f1716e12bfd7ac","entry":"GaussianNoiseLayer","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b3f1716e12bfd7ac"}},{"code_sha256_prefix":"760216b6617fdf18","entry":"INSResBlock","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"760216b6617fdf18"}},{"code_sha256_prefix":"62b928ee0474739e","entry":"LayerNorm","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"62b928ee0474739e"}},{"code_sha256_prefix":"9010126e54b1ee4e","entry":"LeakyReLUConv2d","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9010126e54b1ee4e"}},{"code_sha256_prefix":"13c89236de773a2e","entry":"MisINSResBlock","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"13c89236de773a2e"}},{"code_sha256_prefix":"f438c4b487df22da","entry":"ReLUINSConv2d","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f438c4b487df22da"}},{"code_sha256_prefix":"dc83bd8478c21ca9","entry":"ReLUINSConvTranspose2d","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dc83bd8478c21ca9"}},{"code_sha256_prefix":"43fb0d94c6f43e76","entry":"SpectralNorm","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.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":"43fb0d94c6f43e76"}},{"code_sha256_prefix":"c8b7ae4531a13031","entry":"conv3x3","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c8b7ae4531a13031"}},{"code_sha256_prefix":"ac9996943f2e1621","entry":"convMeanpool","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ac9996943f2e1621"}},{"code_sha256_prefix":"bc9778c1df0b2c6c","entry":"get_non_linearity","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bc9778c1df0b2c6c"}},{"code_sha256_prefix":"fcd2cbd6dab69214","entry":"get_scheduler","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.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":"fcd2cbd6dab69214"}},{"code_sha256_prefix":"623150b77cda933f","entry":"meanpoolConv","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"623150b77cda933f"}},{"code_sha256_prefix":"8de6eeebb8e3638f","entry":"spectral_norm","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8de6eeebb8e3638f"}},{"code_sha256_prefix":"35c8e32f50daf88d","entry":"DRIT","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.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":"35c8e32f50daf88d"}},{"code_sha256_prefix":"4441b221040411ce","entry":"E_content","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.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":"4441b221040411ce"}},{"code_sha256_prefix":"11297da98dec3c4c","entry":"G_concat","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.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":"11297da98dec3c4c"}},{"code_sha256_prefix":"424e28d74856b61a","entry":"MultiScaleDis","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.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":"424e28d74856b61a"}},{"code_sha256_prefix":"ecaec8fbc5fc577d","entry":"gaussian_weights_init","repo":"HsinYingLee/DRIT","repo_kind":"found_in_text","path":"src/model.py","file_url":"https://github.com/HsinYingLee/DRIT/blob/HEAD/src/model.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":"ecaec8fbc5fc577d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}