Skip to main content
ToolPotion
AI Advisor
Submit a Tool (Free)

TokenFlow

TokenFlow is a PyTorch implementation for consistent video editing using pre-trained text-to-image diffusion models. It enables text-driven video editing without further training, preserving spatial layout and dynamics by enforcing consistency in diffusion features through inter-frame correspondences. Achieves state-of-the-art results on real-world videos.

View Repository
Share
View Repository
Share

TokenFlow presents an innovative framework for consistent video editing, leveraging pre-trained text-to-image diffusion models without requiring any additional training or fine-tuning. The rapid advancements in generative AI have extended to video generation, yet current state-of-the-art video models often fall short of image models in visual quality and user control. This work introduces a method that harnesses the power of text-to-image diffusion models for text-driven video editing.

Read More

Given a source video and a target text prompt, TokenFlow generates a high-quality video that aligns with the target text while meticulously preserving the spatial layout and dynamics of the original input video. The core innovation lies in the observation that consistency in the edited video can be achieved by enforcing consistency within the diffusion feature space. This is accomplished by explicitly propagating diffusion features based on readily available inter-frame correspondences within the model. Consequently, the framework operates without the need for any training or fine-tuning and is compatible with any off-the-shelf text-to-image editing technique.

The implementation is provided in PyTorch and is the official repository for the "TokenFlow: Consistent Diffusion Features for Consistent Video Editing" paper, presented at ICLR 2024. The project demonstrates state-of-the-art editing results across a variety of real-world videos. Users can explore sample results, project details, and the underlying research through the provided links. The framework is designed for structure-preserving edits and builds upon existing image editing techniques such as Plug-and-Play, ControlNet, and SDEdit. Users are advised to ensure compatibility with their chosen base editing technique, as the LDM decoder might introduce minor jitterness depending on the original video content.

  • CategoryAI Video Editors
  • Pricing ModelOpen source
  • DeploymentCloud
  • PlatformsWeb

  • Official PyTorch implementation of TokenFlow

  • Enables consistent video editing using pre-trained diffusion models

  • No further training or fine-tuning required

  • Preserves spatial layout and dynamics of input videos

  • Achieves text-driven video editing

  • Enforces consistency in diffusion feature space

  • Utilizes inter-frame correspondences for feature propagation

  • Compatible with off-the-shelf text-to-image editing methods

  • Demonstrates state-of-the-art editing results

  • Supports structure-preserving edits

  • Works with Plug-and-Play, ControlNet, and SDEdit techniques

  1. Clone: Clone the TokenFlow repository from GitHub.

  2. Install dependencies: Create a conda environment and install required packages using `pip install -r requirements.txt`.

  3. Preprocess: Prepare your video by running `python preprocess.py` with specified data path and inversion prompt.

  4. Configure: Create a YAML configuration file for your chosen editing method (e.g., `configs/config_pnp.yaml`).

  5. Execute: Run the editing script, such as `python run_tokenflow_pnp.py`, using your configuration.

  • Text-driven video modification
  • Structure-preserving video editing
  • AI-powered video content creation
  • Enhancing video quality
  • Research and development in video AI

TokenFlow Reviews

Loading...

Popular AI Tools Like TokenFlow

Lumiere

AI Models

Lumiere is a space-time diffusion model from Google Research for generating realistic, diverse, and coherent videos. It synthesizes entire video durations in a single pass,…

AI Video Generators
View Tool

AI Models

Space-time diffusion model from Google Research for generating realistic, diverse, and coherent videos. It synthesizes entire video durations in a single pass,…Lumiere is a space-time diffusion model from Google Research for generating realistic, diverse, and coherent videos. It synthesizes entire video durations in a single pass,…

AI Video Generators
See the Top 5 AI Models

Stable Video Diffusion Online transforms images and text into short videos using an advanced AI model. This research preview tool expands content creation possibilities for media,…

AI Video Generators
View Tool

Transforms images and text into short videos using an advanced AI model. This research preview tool expands content creation possibilities for media,…Stable Video Diffusion Online transforms images and text into short videos using an advanced AI model. This research preview tool expands content creation possibilities for media,…

AI Video Generators
See the Top 250 AI Apps

Imagen Video

AI Models

Imagen Video is a text-conditional video generation system developed by Google Research. It leverages a cascade of video diffusion models to create high-definition videos from…

AI Video Generators
View Tool

AI Models

Text-conditional video generation system developed by Google Research. It leverages a cascade of video diffusion models to create high-definition videos from…Imagen Video is a text-conditional video generation system developed by Google Research. It leverages a cascade of video diffusion models to create high-definition videos from…

AI Video Generators
See the Top 5 AI Models

VideoAI

AI Apps

VideoAI is an AI video generator that turns text and images into videos using leading models such as Kling, Wan, Seedance, and Veo. It also offers image tools and AI music…

AI Video GeneratorsMedia & Entertainment

Ranked #98 for Writing video scripts

View Tool

AI Apps

AI video generator that turns text and images into videos using leading models such as Kling, Wan, Seedance, and Veo. It also offers image tools and AI music…VideoAI is an AI video generator that turns text and images into videos using leading models such as Kling, Wan, Seedance, and Veo. It also offers image tools and AI music…

AI Video GeneratorsMedia & Entertainment
Ranked #98 for Writing video scripts

Kandinsky 2

AI GitHub Repos

Kandinsky 2 is a multilingual text-to-image latent diffusion model. It offers advanced image generation capabilities, including text-to-image, image-to-image, and inpainting. The…

AI Models & LLMs
View Tool

AI GitHub Repos

Multilingual text-to-image latent diffusion model. It offers advanced image generation capabilities, including text-to-image, image-to-image, and inpainting. The…Kandinsky 2 is a multilingual text-to-image latent diffusion model. It offers advanced image generation capabilities, including text-to-image, image-to-image, and inpainting. The…

AI Models & LLMs
See the Top 250 AI GitHub Repos

VideoPoet

AI Models

VideoPoet is a large language model from Google Research capable of zero-shot video generation. It transforms autoregressive language models into high-quality video generators,…

AI Video Generators
View Tool

AI Models

Large language model from Google Research capable of zero-shot video generation. It transforms autoregressive language models into high-quality video generators,…VideoPoet is a large language model from Google Research capable of zero-shot video generation. It transforms autoregressive language models into high-quality video generators,…

AI Video Generators
See the Top 5 AI Models

insMind AI Video Generator is an all-in-one online tool that turns text, images, or prompts into cinematic AI videos using multiple leading models. It suits creators, marketers,…

AI Video GeneratorsMarketing & Creative Agencies
View Tool

All-in-one online tool that turns text, images, or prompts into cinematic AI videos using multiple leading models. It suits creators, marketers,…insMind AI Video Generator is an all-in-one online tool that turns text, images, or prompts into cinematic AI videos using multiple leading models. It suits creators, marketers,…

AI Video GeneratorsMarketing & Creative Agencies
See the Top 250 AI Apps

VideoEditAI.app is an all-in-one, multi-model AI platform for video editing, video generation, and image creation, bringing Runway Aleph, Kling O1, Veo, Seedance, and Nano Banana…

AI Video EditorsMarketing & Creative Agencies

Ranked #146 in AI Video Editors

View Tool

All-in-one, multi-model AI platform for video editing, video generation, and image creation, bringing Runway Aleph, Kling O1, Veo, Seedance, and Nano Banana…VideoEditAI.app is an all-in-one, multi-model AI platform for video editing, video generation, and image creation, bringing Runway Aleph, Kling O1, Veo, Seedance, and Nano Banana…

AI Video EditorsMarketing & Creative Agencies
Ranked #146 in AI Video Editors
1 of 8