{"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/styleshot-a-snapshot-on-any-style","title":"StyleShot: A Snapshot on Any Style","arxiv_id":"2407.01414","date":"2024-07-01","proceeding":null,"authors":["Junyao Gao","Yanchen Liu","Yanan sun","Yinhao Tang","Yanhong Zeng","Kai Chen","Cairong Zhao"],"abstract":"In this paper, we show that, a good style representation is crucial and sufficient for generalized style transfer without test-time tuning. We achieve this through constructing a style-aware encoder and a well-organized style dataset called StyleGallery. With dedicated design for style learning, this style-aware encoder is trained to extract expressive style representation with decoupling training strategy, and StyleGallery enables the generalization ability. We further employ a content-fusion encoder to enhance image-driven style transfer. We highlight that, our approach, named StyleShot, is simple yet effective in mimicking various desired styles, i.e., 3D, flat, abstract or even fine-grained styles, without test-time tuning. Rigorous experiments validate that, StyleShot achieves superior performance across a wide range of styles compared to existing state-of-the-art methods. The project page is available at: https://styleshot.github.io/.","url_abs":"https://arxiv.org/abs/2407.01414v1","url_pdf":"https://arxiv.org/pdf/2407.01414v1.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":"styleshot-a-snapshot-on-any-style","repo_url":"https://github.com/open-mmlab/StyleShot","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"styleshot-a-snapshot-on-any-style","repo_url":"https://github.com/Vill-Lab/forkOfStyleShot","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"image-generation","task_name":"Image Generation"},{"task_slug":"style-transfer","task_name":"Style Transfer"}],"methods":[],"datasets_introduced":[{"slug":"stylebench","name":"StyleBench","full_name":""},{"slug":"stylegallery","name":"StyleGallery","full_name":""}],"methods_introduced":[],"results":[{"leaderboard":"/sota/style-transfer-on-stylebench","task":"Style Transfer","dataset":"StyleBench","model":"StyleShot","rank_in_archive_order":1,"of":7,"metrics":{"CLIP Score":"0.660"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2407.01414","atlas_url":"https://app.syntology.ai/?focus=2407.01414","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.01414"}},"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/Vill-Lab/forkOfStyleShot","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/open-mmlab/StyleShot","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":2,"ran_fixture":1,"ran":4,"unverified":2},"by_repo_kind":{"official":{"samples":8,"ran":6,"repositories":1},"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":"5105747c2711b1cb","entry":"FeedForward","repo":"open-mmlab/StyleShot","repo_kind":"official","path":"ip_adapter/resampler.py","file_url":"https://github.com/open-mmlab/StyleShot/blob/HEAD/ip_adapter/resampler.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":"5105747c2711b1cb"}},{"code_sha256_prefix":"f9ec7d70add02b6f","entry":"HWC3","repo":"open-mmlab/StyleShot","repo_kind":"official","path":"annotator/util.py","file_url":"https://github.com/open-mmlab/StyleShot/blob/HEAD/annotator/util.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f9ec7d70add02b6f"}},{"code_sha256_prefix":"fcae89892257d1c0","entry":"collate_fn","repo":"Vill-Lab/forkOfStyleShot","repo_kind":"listed","path":"tutorial_train_styleshot_stage_1.py","file_url":"https://github.com/Vill-Lab/forkOfStyleShot/blob/HEAD/tutorial_train_styleshot_stage_1.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fcae89892257d1c0"}},{"code_sha256_prefix":"899f518fa323466c","entry":"collate_fn","repo":"open-mmlab/StyleShot","repo_kind":"official","path":"tutorial_train_styleshot_stage_2.py","file_url":"https://github.com/open-mmlab/StyleShot/blob/HEAD/tutorial_train_styleshot_stage_2.py","link_basis":"first_harvest_node","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":"899f518fa323466c"}},{"code_sha256_prefix":"230588e8f1237737","entry":"masked_mean","repo":"open-mmlab/StyleShot","repo_kind":"official","path":"ip_adapter/resampler.py","file_url":"https://github.com/open-mmlab/StyleShot/blob/HEAD/ip_adapter/resampler.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":"230588e8f1237737"}},{"code_sha256_prefix":"fa18e29c0ab322c6","entry":"nms","repo":"open-mmlab/StyleShot","repo_kind":"official","path":"annotator/util.py","file_url":"https://github.com/open-mmlab/StyleShot/blob/HEAD/annotator/util.py","link_basis":"first_harvest_node","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":"fa18e29c0ab322c6"}},{"code_sha256_prefix":"4cb2e2a2ca0bec9f","entry":"reshape_tensor","repo":"open-mmlab/StyleShot","repo_kind":"official","path":"ip_adapter/resampler.py","file_url":"https://github.com/open-mmlab/StyleShot/blob/HEAD/ip_adapter/resampler.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4cb2e2a2ca0bec9f"}},{"code_sha256_prefix":"b6a399852dc888c3","entry":"StyleProcessor","repo":"open-mmlab/StyleShot","repo_kind":"official","path":"ip_adapter/ip_adapter.py","file_url":"https://github.com/open-mmlab/StyleShot/blob/HEAD/ip_adapter/ip_adapter.py","link_basis":"first_harvest_node","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":"b6a399852dc888c3"}},{"code_sha256_prefix":"50fd68f6989503c6","entry":"resize_image","repo":"open-mmlab/StyleShot","repo_kind":"official","path":"annotator/util.py","file_url":"https://github.com/open-mmlab/StyleShot/blob/HEAD/annotator/util.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":"50fd68f6989503c6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}