{"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/clipstyler-image-style-transfer-with-a-single","title":"CLIPstyler: Image Style Transfer with a Single Text Condition","arxiv_id":"2112.00374","date":"2021-12-01","proceeding":"CVPR 2022 1","authors":["Gihyun Kwon","Jong Chul Ye"],"abstract":"Existing neural style transfer methods require reference style images to transfer texture information of style images to content images. However, in many practical situations, users may not have reference style images but still be interested in transferring styles by just imagining them. In order to deal with such applications, we propose a new framework that enables a style transfer `without' a style image, but only with a text description of the desired style. Using the pre-trained text-image embedding model of CLIP, we demonstrate the modulation of the style of content images only with a single text condition. Specifically, we propose a patch-wise text-image matching loss with multiview augmentations for realistic texture transfer. Extensive experimental results confirmed the successful image style transfer with realistic textures that reflect semantic query texts.","url_abs":"https://arxiv.org/abs/2112.00374v3","url_pdf":"https://arxiv.org/pdf/2112.00374v3.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":"clipstyler-image-style-transfer-with-a-single","repo_url":"https://github.com/cyclomon/clipstyler","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"clipstyler-image-style-transfer-with-a-single","repo_url":"https://github.com/paper11667/clipstyler","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"clipstyler-image-style-transfer-with-a-single","repo_url":"https://github.com/Holmes-Alan/TxST","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"style-transfer","task_name":"Style Transfer"}],"methods":[{"method_slug":"clip","method_name":"CLIP"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2112.00374","atlas_url":"https://app.syntology.ai/?focus=2112.00374","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2112.00374"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/Holmes-Alan/TxST","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/paper11667/clipstyler","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/cyclomon/clipstyler","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":4,"ran_draft_wrong":1,"ran":1,"unverified":7},"by_repo_kind":{"official":{"samples":12,"ran":5,"repositories":2},"listed":{"samples":1,"ran":1,"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":"38eaf8511dc7bc9c","entry":"calc_mean_std","repo":"paper11667/clipstyler","repo_kind":"official","path":"function.py","file_url":"https://github.com/paper11667/clipstyler/blob/HEAD/function.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"38eaf8511dc7bc9c"}},{"code_sha256_prefix":"2c4fadd0e50bc90b","entry":"clip_normalize","repo":"cyclomon/clipstyler","repo_kind":"official","path":"train_CLIPstyler.py","file_url":"https://github.com/cyclomon/clipstyler/blob/HEAD/train_CLIPstyler.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2c4fadd0e50bc90b"}},{"code_sha256_prefix":"277f955e6caa9cfb","entry":"coral","repo":"paper11667/clipstyler","repo_kind":"official","path":"function.py","file_url":"https://github.com/paper11667/clipstyler/blob/HEAD/function.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"277f955e6caa9cfb"}},{"code_sha256_prefix":"710f898c11231d5e","entry":"img_denormalize","repo":"cyclomon/clipstyler","repo_kind":"official","path":"train_CLIPstyler.py","file_url":"https://github.com/cyclomon/clipstyler/blob/HEAD/train_CLIPstyler.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"710f898c11231d5e"}},{"code_sha256_prefix":"8dce30d2cd03172e","entry":"img_normalize","repo":"cyclomon/clipstyler","repo_kind":"official","path":"train_CLIPstyler.py","file_url":"https://github.com/cyclomon/clipstyler/blob/HEAD/train_CLIPstyler.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8dce30d2cd03172e"}},{"code_sha256_prefix":"71f38cd21e002a88","entry":"tensor_rgb2gray","repo":"Holmes-Alan/TxST","repo_kind":"listed","path":"eval_ST_img.py","file_url":"https://github.com/Holmes-Alan/TxST/blob/HEAD/eval_ST_img.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"71f38cd21e002a88"}},{"code_sha256_prefix":"800ffb86732cd0e6","entry":"adaptive_instance_normalization","repo":"paper11667/clipstyler","repo_kind":"official","path":"function.py","file_url":"https://github.com/paper11667/clipstyler/blob/HEAD/function.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"800ffb86732cd0e6"}},{"code_sha256_prefix":"e56cf3c5f8e7fc75","entry":"checkin","repo":"paper11667/clipstyler","repo_kind":"official","path":"predict.py","file_url":"https://github.com/paper11667/clipstyler/blob/HEAD/predict.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e56cf3c5f8e7fc75"}},{"code_sha256_prefix":"557a930bc26cef80","entry":"im_convert","repo":"paper11667/clipstyler","repo_kind":"official","path":"utils.py","file_url":"https://github.com/paper11667/clipstyler/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"557a930bc26cef80"}},{"code_sha256_prefix":"b173e8a151572458","entry":"load_image","repo":"paper11667/clipstyler","repo_kind":"official","path":"train_fast.py","file_url":"https://github.com/paper11667/clipstyler/blob/HEAD/train_fast.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b173e8a151572458"}},{"code_sha256_prefix":"47b1c768170e3fc8","entry":"load_image","repo":"paper11667/clipstyler","repo_kind":"official","path":"utils.py","file_url":"https://github.com/paper11667/clipstyler/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"47b1c768170e3fc8"}},{"code_sha256_prefix":"08b998318a5fa505","entry":"load_image2","repo":"paper11667/clipstyler","repo_kind":"official","path":"utils.py","file_url":"https://github.com/paper11667/clipstyler/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"08b998318a5fa505"}},{"code_sha256_prefix":"eb56729cc2a4d978","entry":"train_transform","repo":"paper11667/clipstyler","repo_kind":"official","path":"train_fast.py","file_url":"https://github.com/paper11667/clipstyler/blob/HEAD/train_fast.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"eb56729cc2a4d978"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}