{"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/lagrangian-neural-style-transfer-for-fluids","title":"Lagrangian Neural Style Transfer for Fluids","arxiv_id":"2005.00803","date":"2020-05-02","proceeding":null,"authors":["Byung-soo Kim","Vinicius C. Azevedo","Markus Gross","Barbara Solenthaler"],"abstract":"Artistically controlling the shape, motion and appearance of fluid simulations pose major challenges in visual effects production. In this paper, we present a neural style transfer approach from images to 3D fluids formulated in a Lagrangian viewpoint. Using particles for style transfer has unique benefits compared to grid-based techniques. Attributes are stored on the particles and hence are trivially transported by the particle motion. This intrinsically ensures temporal consistency of the optimized stylized structure and notably improves the resulting quality. Simultaneously, the expensive, recursive alignment of stylization velocity fields of grid approaches is unnecessary, reducing the computation time to less than an hour and rendering neural flow stylization practical in production settings. Moreover, the Lagrangian representation improves artistic control as it allows for multi-fluid stylization and consistent color transfer from images, and the generality of the method enables stylization of smoke and liquids likewise.","url_abs":"https://arxiv.org/abs/2005.00803v1","url_pdf":"https://arxiv.org/pdf/2005.00803v1.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":"lagrangian-neural-style-transfer-for-fluids","repo_url":"https://github.com/byungsook/neural-flow-style","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"style-transfer","task_name":"Style Transfer"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2005.00803","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2005.00803"}},"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/byungsook/neural-flow-style","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"unverified":6},"by_repo_kind":{"official":{"samples":7,"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":"6d80592fd6d47b2d","entry":"add_argument_group","repo":"byungsook/neural-flow-style","repo_kind":"official","path":"config.py","file_url":"https://github.com/byungsook/neural-flow-style/blob/HEAD/config.py","link_basis":"harvester_set","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":"6d80592fd6d47b2d"}},{"code_sha256_prefix":"f4d50cb6c1ed76ce","entry":"batch_mgrid","repo":"byungsook/neural-flow-style","repo_kind":"official","path":"transform.py","file_url":"https://github.com/byungsook/neural-flow-style/blob/HEAD/transform.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":"f4d50cb6c1ed76ce"}},{"code_sha256_prefix":"3ffb1a3057ee059b","entry":"batch_warp2d","repo":"byungsook/neural-flow-style","repo_kind":"official","path":"transform.py","file_url":"https://github.com/byungsook/neural-flow-style/blob/HEAD/transform.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":"3ffb1a3057ee059b"}},{"code_sha256_prefix":"f1f9fab15177e9c1","entry":"batch_warp3d","repo":"byungsook/neural-flow-style","repo_kind":"official","path":"transform.py","file_url":"https://github.com/byungsook/neural-flow-style/blob/HEAD/transform.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":"f1f9fab15177e9c1"}},{"code_sha256_prefix":"322a47ff858b43d8","entry":"cosine_decay","repo":"byungsook/neural-flow-style","repo_kind":"official","path":"util.py","file_url":"https://github.com/byungsook/neural-flow-style/blob/HEAD/util.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":"322a47ff858b43d8"}},{"code_sha256_prefix":"5b0f602e36ba36f2","entry":"preprocess","repo":"byungsook/neural-flow-style","repo_kind":"official","path":"vgg.py","file_url":"https://github.com/byungsook/neural-flow-style/blob/HEAD/vgg.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":"5b0f602e36ba36f2"}},{"code_sha256_prefix":"66ce8a101ba12962","entry":"repeat","repo":"byungsook/neural-flow-style","repo_kind":"official","path":"vgg.py","file_url":"https://github.com/byungsook/neural-flow-style/blob/HEAD/vgg.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":"66ce8a101ba12962"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}