{"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/xgan-unsupervised-image-to-image-translation","title":"XGAN: Unsupervised Image-to-Image Translation for Many-to-Many Mappings","arxiv_id":"1711.05139","date":"2017-11-14","proceeding":"ICLR 2018 1","authors":["Amélie Royer","Konstantinos Bousmalis","Stephan Gouws","Fred Bertsch","Inbar Mosseri","Forrester Cole","Kevin Murphy"],"abstract":"Style transfer usually refers to the task of applying color and texture\ninformation from a specific style image to a given content image while\npreserving the structure of the latter. Here we tackle the more generic problem\nof semantic style transfer: given two unpaired collections of images, we aim to\nlearn a mapping between the corpus-level style of each collection, while\npreserving semantic content shared across the two domains. We introduce XGAN\n(\"Cross-GAN\"), a dual adversarial autoencoder, which captures a shared\nrepresentation of the common domain semantic content in an unsupervised way,\nwhile jointly learning the domain-to-domain image translations in both\ndirections. We exploit ideas from the domain adaptation literature and define a\nsemantic consistency loss which encourages the model to preserve semantics in\nthe learned embedding space. We report promising qualitative results for the\ntask of face-to-cartoon translation. The cartoon dataset, CartoonSet, we\ncollected for this purpose is publicly available at\ngoogle.github.io/cartoonset/ as a new benchmark for semantic style transfer.","url_abs":"http://arxiv.org/abs/1711.05139v6","url_pdf":"http://arxiv.org/pdf/1711.05139v6.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":"xgan-unsupervised-image-to-image-translation","repo_url":"https://github.com/CS2470FinalProject/X-GAN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"xgan-unsupervised-image-to-image-translation","repo_url":"https://github.com/Gintasp/xgan","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"xgan-unsupervised-image-to-image-translation","repo_url":"https://github.com/Leinadh/avatar-image-generator","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"xgan-unsupervised-image-to-image-translation","repo_url":"https://github.com/verbeemen/south-park-avatar-generator","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}}],"tasks":[{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":"image-to-image-translation","task_name":"Image-to-Image Translation"},{"task_slug":"style-transfer","task_name":"Style Transfer"},{"task_slug":"translation","task_name":"Translation"},{"task_slug":"unsupervised-image-to-image-translation","task_name":"Unsupervised Image-To-Image Translation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1711.05139","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1711.05139"}},"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/CS2470FinalProject/X-GAN","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Gintasp/xgan","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/verbeemen/south-park-avatar-generator","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Leinadh/avatar-image-generator","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":1,"unverified":10},"by_repo_kind":{"listed":{"samples":11,"ran":1,"repositories":2}},"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":"7d2aba87eb205634","entry":"grad_reverse","repo":"Gintasp/xgan","repo_kind":"listed","path":"models/cdann.py","file_url":"https://github.com/Gintasp/xgan/blob/HEAD/models/cdann.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7d2aba87eb205634"}},{"code_sha256_prefix":"3142cb631c9bb64b","entry":"calc_eval_stats","repo":"Leinadh/avatar-image-generator","repo_kind":"listed","path":"losses/utils_loss.py","file_url":"https://github.com/Leinadh/avatar-image-generator/blob/HEAD/losses/utils_loss.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3142cb631c9bb64b"}},{"code_sha256_prefix":"05eed543ef6ce6e8","entry":"calc_fid","repo":"Leinadh/avatar-image-generator","repo_kind":"listed","path":"losses/utils_loss.py","file_url":"https://github.com/Leinadh/avatar-image-generator/blob/HEAD/losses/utils_loss.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"05eed543ef6ce6e8"}},{"code_sha256_prefix":"7bfbf9efb5152dc3","entry":"calc_jaccard_index","repo":"Leinadh/avatar-image-generator","repo_kind":"listed","path":"evaluation/tsne_analysis_baseline/tsne_evaluation_utils/metric.py","file_url":"https://github.com/Leinadh/avatar-image-generator/blob/HEAD/evaluation/tsne_analysis_baseline/tsne_evaluation_utils/metric.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7bfbf9efb5152dc3"}},{"code_sha256_prefix":"47cdd51b2464098b","entry":"calc_rmse","repo":"Leinadh/avatar-image-generator","repo_kind":"listed","path":"evaluation/tsne_analysis_baseline/tsne_evaluation_utils/metric.py","file_url":"https://github.com/Leinadh/avatar-image-generator/blob/HEAD/evaluation/tsne_analysis_baseline/tsne_evaluation_utils/metric.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"47cdd51b2464098b"}},{"code_sha256_prefix":"e8979936a8178bb3","entry":"face_to_cartoon","repo":"Gintasp/xgan","repo_kind":"listed","path":"api.py","file_url":"https://github.com/Gintasp/xgan/blob/HEAD/api.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e8979936a8178bb3"}},{"code_sha256_prefix":"f0bfbc2c8bc398bb","entry":"generate_images","repo":"Leinadh/avatar-image-generator","repo_kind":"listed","path":"evaluation/tsne_analysis_baseline/tsne_evaluation_utils/grid.py","file_url":"https://github.com/Leinadh/avatar-image-generator/blob/HEAD/evaluation/tsne_analysis_baseline/tsne_evaluation_utils/grid.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f0bfbc2c8bc398bb"}},{"code_sha256_prefix":"3b646c000dea726d","entry":"generate_scatter","repo":"Leinadh/avatar-image-generator","repo_kind":"listed","path":"evaluation/utils_tsne.py","file_url":"https://github.com/Leinadh/avatar-image-generator/blob/HEAD/evaluation/utils_tsne.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3b646c000dea726d"}},{"code_sha256_prefix":"1b003bd652d7598d","entry":"get_gradient","repo":"Gintasp/xgan","repo_kind":"listed","path":"models/cdann.py","file_url":"https://github.com/Gintasp/xgan/blob/HEAD/models/cdann.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1b003bd652d7598d"}},{"code_sha256_prefix":"65b0abd517636e51","entry":"gradient_penalty","repo":"Gintasp/xgan","repo_kind":"listed","path":"models/cdann.py","file_url":"https://github.com/Gintasp/xgan/blob/HEAD/models/cdann.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"65b0abd517636e51"}},{"code_sha256_prefix":"c6b0acc06c6547fc","entry":"is_file_allowed","repo":"Gintasp/xgan","repo_kind":"listed","path":"api.py","file_url":"https://github.com/Gintasp/xgan/blob/HEAD/api.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c6b0acc06c6547fc"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}