{"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/a-closed-form-solution-to-photorealistic","title":"A Closed-form Solution to Photorealistic Image Stylization","arxiv_id":"1802.06474","date":"2018-02-19","proceeding":"ECCV 2018 9","authors":["Yijun Li","Ming-Yu Liu","Xueting Li","Ming-Hsuan Yang","Jan Kautz"],"abstract":"Photorealistic image stylization concerns transferring style of a reference\nphoto to a content photo with the constraint that the stylized photo should\nremain photorealistic. While several photorealistic image stylization methods\nexist, they tend to generate spatially inconsistent stylizations with\nnoticeable artifacts. In this paper, we propose a method to address these\nissues. The proposed method consists of a stylization step and a smoothing\nstep. While the stylization step transfers the style of the reference photo to\nthe content photo, the smoothing step ensures spatially consistent\nstylizations. Each of the steps has a closed-form solution and can be computed\nefficiently. We conduct extensive experimental validations. The results show\nthat the proposed method generates photorealistic stylization outputs that are\nmore preferred by human subjects as compared to those by the competing methods\nwhile running much faster. Source code and additional results are available at\nhttps://github.com/NVIDIA/FastPhotoStyle .","url_abs":"http://arxiv.org/abs/1802.06474v5","url_pdf":"http://arxiv.org/pdf/1802.06474v5.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":"a-closed-form-solution-to-photorealistic","repo_url":"https://github.com/NVIDIA/FastPhotoStyle","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"a-closed-form-solution-to-photorealistic","repo_url":"https://github.com/Lees001/FastPhotoStyle","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"a-closed-form-solution-to-photorealistic","repo_url":"https://github.com/MohdDanish/FastPhotoStyle1","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"a-closed-form-solution-to-photorealistic","repo_url":"https://github.com/clovaai/WCT2","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"a-closed-form-solution-to-photorealistic","repo_url":"https://github.com/deepdeepdot/FastPhotoStyle","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"a-closed-form-solution-to-photorealistic","repo_url":"https://github.com/freedombenLiu/FastPhotoStyle","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"a-closed-form-solution-to-photorealistic","repo_url":"https://github.com/guizilaile23/ZSL-SSS","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"a-closed-form-solution-to-photorealistic","repo_url":"https://github.com/midm/FastPhotoStyle","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"a-closed-form-solution-to-photorealistic","repo_url":"https://github.com/sleebapaul/AuriaKathi","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"a-closed-form-solution-to-photorealistic","repo_url":"https://github.com/svjack/PhotoWCT","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"a-closed-form-solution-to-photorealistic","repo_url":"https://github.com/smaranjitghose/DeepHoli","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok","spdx":"CC0-1.0"}},{"paper_slug":"a-closed-form-solution-to-photorealistic","repo_url":"https://github.com/sukkritsharmaofficial/NEURALFUSE","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok","spdx":"CC0-1.0"}}],"tasks":[{"task_slug":"form","task_name":"Form"},{"task_slug":"image-stylization","task_name":"Image Stylization"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1802.06474","atlas_url":"https://app.syntology.ai/?focus=1802.06474","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1802.06474"}},"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/guizilaile23/ZSL-SSS","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/svjack/PhotoWCT","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/smaranjitghose/DeepHoli","reach":{"status":"ok","spdx":"CC0-1.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/NVIDIA/FastPhotoStyle","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sleebapaul/AuriaKathi","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/deepdeepdot/FastPhotoStyle","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/clovaai/WCT2","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/midm/FastPhotoStyle","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/freedombenLiu/FastPhotoStyle","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Lees001/FastPhotoStyle","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/MohdDanish/FastPhotoStyle1","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sukkritsharmaofficial/NEURALFUSE","reach":{"status":"ok","spdx":"CC0-1.0"}}],"summary":{"ran_draft_wrong":7,"ran_honours":1,"ran_violates":1,"ran_fixture":1,"unverified":6},"by_repo_kind":{"listed":{"samples":14,"ran":8,"repositories":3}},"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":3,"samples":[{"code_sha256_prefix":"19379807ba70daaa","entry":"conv1x1","repo":"sleebapaul/AuriaKathi","repo_kind":"listed","path":"AttnGAN/model.py","file_url":"https://github.com/sleebapaul/AuriaKathi/blob/HEAD/AttnGAN/model.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"19379807ba70daaa"}},{"code_sha256_prefix":"ea864de5c552bc4a","entry":"conv3x3","repo":"sleebapaul/AuriaKathi","repo_kind":"listed","path":"AttnGAN/model.py","file_url":"https://github.com/sleebapaul/AuriaKathi/blob/HEAD/AttnGAN/model.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ea864de5c552bc4a"}},{"code_sha256_prefix":"e0c14774d8283a63","entry":"cosine_similarity","repo":"sleebapaul/AuriaKathi","repo_kind":"listed","path":"AttnGAN/miscc/losses.py","file_url":"https://github.com/sleebapaul/AuriaKathi/blob/HEAD/AttnGAN/miscc/losses.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e0c14774d8283a63"}},{"code_sha256_prefix":"3f416806a9d75fdf","entry":"get_rank","repo":"clovaai/WCT2","repo_kind":"listed","path":"utils/core.py","file_url":"https://github.com/clovaai/WCT2/blob/HEAD/utils/core.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3f416806a9d75fdf"}},{"code_sha256_prefix":"ca190ac7aa0a7723","entry":"get_squeeze_feat","repo":"clovaai/WCT2","repo_kind":"listed","path":"utils/core.py","file_url":"https://github.com/clovaai/WCT2/blob/HEAD/utils/core.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ca190ac7aa0a7723"}},{"code_sha256_prefix":"289a3baab5b57fbb","entry":"get_wav","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"289a3baab5b57fbb"}},{"code_sha256_prefix":"59848503040bbdac","entry":"is_image_file","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"59848503040bbdac"}},{"code_sha256_prefix":"115cdf07bf34f7ed","entry":"memory_limit_image_resize","repo":"MohdDanish/FastPhotoStyle1","repo_kind":"listed","path":"process_stylization.py","file_url":"https://github.com/MohdDanish/FastPhotoStyle1/blob/HEAD/process_stylization.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"115cdf07bf34f7ed"}},{"code_sha256_prefix":"de40dd53e9e39e11","entry":"svd","repo":"clovaai/WCT2","repo_kind":"listed","path":"utils/core.py","file_url":"https://github.com/clovaai/WCT2/blob/HEAD/utils/core.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"de40dd53e9e39e11"}},{"code_sha256_prefix":"c96308e17ab1e7ae","entry":"upBlock","repo":"sleebapaul/AuriaKathi","repo_kind":"listed","path":"AttnGAN/model.py","file_url":"https://github.com/sleebapaul/AuriaKathi/blob/HEAD/AttnGAN/model.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c96308e17ab1e7ae"}},{"code_sha256_prefix":"1e9b9a9b96ddfe5f","entry":"conv1x1","repo":"sleebapaul/AuriaKathi","repo_kind":"listed","path":"AttnGAN/GlobalAttention.py","file_url":"https://github.com/sleebapaul/AuriaKathi/blob/HEAD/AttnGAN/GlobalAttention.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":"1e9b9a9b96ddfe5f"}},{"code_sha256_prefix":"4dcdc9386ef6f6f5","entry":"func_attention","repo":"sleebapaul/AuriaKathi","repo_kind":"listed","path":"AttnGAN/GlobalAttention.py","file_url":"https://github.com/sleebapaul/AuriaKathi/blob/HEAD/AttnGAN/GlobalAttention.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":"4dcdc9386ef6f6f5"}},{"code_sha256_prefix":"56624aa2366aca04","entry":"gen_example_from_text","repo":"sleebapaul/AuriaKathi","repo_kind":"listed","path":"AttnGAN/gen_art.py","file_url":"https://github.com/sleebapaul/AuriaKathi/blob/HEAD/AttnGAN/gen_art.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":"56624aa2366aca04"}},{"code_sha256_prefix":"f07cfbd0acf91fbe","entry":"get_encoder","repo":"sleebapaul/AuriaKathi","repo_kind":"listed","path":"GPT_2_Finetuning/gpt_2_simple/encoder.py","file_url":"https://github.com/sleebapaul/AuriaKathi/blob/HEAD/GPT_2_Finetuning/gpt_2_simple/encoder.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":"f07cfbd0acf91fbe"}},{"code_sha256_prefix":"4f76173dfe4b0c11","entry":"get_pairs","repo":"sleebapaul/AuriaKathi","repo_kind":"listed","path":"GPT_2_Finetuning/gpt_2_simple/encoder.py","file_url":"https://github.com/sleebapaul/AuriaKathi/blob/HEAD/GPT_2_Finetuning/gpt_2_simple/encoder.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":"4f76173dfe4b0c11"}},{"code_sha256_prefix":"dd07c72f922bc1e8","entry":"start_tf_sess","repo":"sleebapaul/AuriaKathi","repo_kind":"listed","path":"GPT_2_Finetuning/gpt_2.py","file_url":"https://github.com/sleebapaul/AuriaKathi/blob/HEAD/GPT_2_Finetuning/gpt_2.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":"dd07c72f922bc1e8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}