{"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/tokenflow-consistent-diffusion-features-for","title":"TokenFlow: Consistent Diffusion Features for Consistent Video Editing","arxiv_id":"2307.10373","date":"2023-07-19","proceeding":null,"authors":["Michal Geyer","Omer Bar-Tal","Shai Bagon","Tali Dekel"],"abstract":"The generative AI revolution has recently expanded to videos. Nevertheless, current state-of-the-art video models are still lagging behind image models in terms of visual quality and user control over the generated content. In this work, we present a framework that harnesses the power of a text-to-image diffusion model for the task of text-driven video editing. Specifically, given a source video and a target text-prompt, our method generates a high-quality video that adheres to the target text, while preserving the spatial layout and motion of the input video. Our method is based on a key observation that consistency in the edited video can be obtained by enforcing consistency in the diffusion feature space. We achieve this by explicitly propagating diffusion features based on inter-frame correspondences, readily available in the model. Thus, our framework does not require any training or fine-tuning, and can work in conjunction with any off-the-shelf text-to-image editing method. We demonstrate state-of-the-art editing results on a variety of real-world videos. Webpage: https://diffusion-tokenflow.github.io/","url_abs":"https://arxiv.org/abs/2307.10373v3","url_pdf":"https://arxiv.org/pdf/2307.10373v3.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":"tokenflow-consistent-diffusion-features-for","repo_url":"https://github.com/omerbt/tokenflow","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"video-editing","task_name":"Video Editing"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2307.10373","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2307.10373"}},"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/omerbt/tokenflow","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"ran_violates":1,"unverified":4},"by_repo_kind":{"listed":{"samples":6,"ran":2,"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":"0063341ea11f0fa7","entry":"get_timesteps","repo":"omerbt/tokenflow","repo_kind":"listed","path":"preprocess.py","file_url":"https://github.com/omerbt/tokenflow/blob/HEAD/preprocess.py","link_basis":"plan_row","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":"0063341ea11f0fa7"}},{"code_sha256_prefix":"cd5d5067de871c97","entry":"isinstance_str","repo":"omerbt/tokenflow","repo_kind":"listed","path":"util.py","file_url":"https://github.com/omerbt/tokenflow/blob/HEAD/util.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cd5d5067de871c97"}},{"code_sha256_prefix":"d5664e9029e72b35","entry":"batch_cosine_sim","repo":"omerbt/tokenflow","repo_kind":"listed","path":"util.py","file_url":"https://github.com/omerbt/tokenflow/blob/HEAD/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":"d5664e9029e72b35"}},{"code_sha256_prefix":"2d5a5ea3e1c511ce","entry":"load_imgs","repo":"omerbt/tokenflow","repo_kind":"listed","path":"util.py","file_url":"https://github.com/omerbt/tokenflow/blob/HEAD/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":"2d5a5ea3e1c511ce"}},{"code_sha256_prefix":"d1bae111aff83ba8","entry":"load_source_latents_t","repo":"omerbt/tokenflow","repo_kind":"listed","path":"tokenflow_utils.py","file_url":"https://github.com/omerbt/tokenflow/blob/HEAD/tokenflow_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":"d1bae111aff83ba8"}},{"code_sha256_prefix":"3a20f2ae91de3dde","entry":"register_conv_injection","repo":"omerbt/tokenflow","repo_kind":"listed","path":"tokenflow_utils.py","file_url":"https://github.com/omerbt/tokenflow/blob/HEAD/tokenflow_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":"3a20f2ae91de3dde"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}