{"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/general-image-to-image-translation-with-one","title":"General Image-to-Image Translation with One-Shot Image Guidance","arxiv_id":"2307.14352","date":"2023-07-20","proceeding":"ICCV 2023 1","authors":["Bin Cheng","Zuhao Liu","Yunbo Peng","Yue Lin"],"abstract":"Large-scale text-to-image models pre-trained on massive text-image pairs show excellent performance in image synthesis recently. However, image can provide more intuitive visual concepts than plain text. People may ask: how can we integrate the desired visual concept into an existing image, such as our portrait? Current methods are inadequate in meeting this demand as they lack the ability to preserve content or translate visual concepts effectively. Inspired by this, we propose a novel framework named visual concept translator (VCT) with the ability to preserve content in the source image and translate the visual concepts guided by a single reference image. The proposed VCT contains a content-concept inversion (CCI) process to extract contents and concepts, and a content-concept fusion (CCF) process to gather the extracted information to obtain the target image. Given only one reference image, the proposed VCT can complete a wide range of general image-to-image translation tasks with excellent results. Extensive experiments are conducted to prove the superiority and effectiveness of the proposed methods. Codes are available at https://github.com/CrystalNeuro/visual-concept-translator.","url_abs":"https://arxiv.org/abs/2307.14352v3","url_pdf":"https://arxiv.org/pdf/2307.14352v3.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":"general-image-to-image-translation-with-one","repo_url":"https://github.com/crystalneuro/visual-concept-translator","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"image-generation","task_name":"Image Generation"},{"task_slug":"image-to-image-translation","task_name":"Image-to-Image Translation"},{"task_slug":"translation","task_name":"Translation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2307.14352","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2307.14352"}},"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/crystalneuro/visual-concept-translator","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":8,"unverified":6},"by_repo_kind":{"official":{"samples":14,"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":0,"samples":[{"code_sha256_prefix":"a3379285d38d5ba2","entry":"backward_ddim","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"ddim_inversion.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/ddim_inversion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a3379285d38d5ba2"}},{"code_sha256_prefix":"c3d321eafd7ea5fc","entry":"betas_for_alpha_bar","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"new_scheduling_ddpm.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/new_scheduling_ddpm.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c3d321eafd7ea5fc"}},{"code_sha256_prefix":"653217e1d54a411b","entry":"default_score_estimation","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"ptp_inversion.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/ptp_inversion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"653217e1d54a411b"}},{"code_sha256_prefix":"85fd2e71002a15f4","entry":"forward_ddim","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"ddim_inversion.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/ddim_inversion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"85fd2e71002a15f4"}},{"code_sha256_prefix":"56b072a98a341ab0","entry":"get_out_img_path","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"pivot_turning_inversion.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/pivot_turning_inversion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"56b072a98a341ab0"}},{"code_sha256_prefix":"36a016cfede1b253","entry":"image_grid_three_groups","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"pivot_turning_inversion.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/pivot_turning_inversion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"36a016cfede1b253"}},{"code_sha256_prefix":"4a169ba2b27d7e15","entry":"image_grid_two_groups","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"pivot_turning_inversion.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/pivot_turning_inversion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4a169ba2b27d7e15"}},{"code_sha256_prefix":"85d5eb123674597d","entry":"text_under_image","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"ptp_utils.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/ptp_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"85d5eb123674597d"}},{"code_sha256_prefix":"23ca7e055397296f","entry":"aggregate_attention","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"ptp_inversion.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/ptp_inversion.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":"23ca7e055397296f"}},{"code_sha256_prefix":"72814e44d259c855","entry":"diffusion_step","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"ptp_utils.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/ptp_utils.py","link_basis":"first_harvest_node","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":"72814e44d259c855"}},{"code_sha256_prefix":"d167441d997c52ce","entry":"get_matrix","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"seq_aligner.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/seq_aligner.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":"d167441d997c52ce"}},{"code_sha256_prefix":"81db21bf982ca0fe","entry":"get_matrix","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"seq_aligner.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/seq_aligner.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":"81db21bf982ca0fe"}},{"code_sha256_prefix":"beb8f6a30678a4d9","entry":"get_traceback_matrix","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"seq_aligner.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/seq_aligner.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":"beb8f6a30678a4d9"}},{"code_sha256_prefix":"33b9cc6eebe44312","entry":"load_img","repo":"crystalneuro/visual-concept-translator","repo_kind":"official","path":"ddim_inversion.py","file_url":"https://github.com/crystalneuro/visual-concept-translator/blob/HEAD/ddim_inversion.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":"33b9cc6eebe44312"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}