Optical-Flow Guided Prompt Optimization for Coherent Video Generation

Hyelin Nam, Jaemin Kim, Dohun Lee, Jong Chul Ye
11/23/2024
cs.CVcs.AIcs.LG

No official code found. Best implementation: HyelinNAM/MotionPrompt (3 stars, last commit 2025-03-11).

Abstract

While text-to-video diffusion models have made significant strides, many still face challenges in generating videos with temporal consistency. Within diffusion frameworks, guidance techniques have proven effective in enhancing output quality during inference; however, applying these methods to video diffusion models introduces additional complexity of handling computations across entire sequences. To address this, we propose a novel framework called MotionPrompt that guides the video generation process via optical flow. Specifically, we train a discriminator to distinguish optical flow between random pairs of frames from real videos and generated ones. Given that prompts can influence the entire video, we optimize learnable token embeddings during reverse sampling steps by using gradients from a trained discriminator applied to random frame pairs. This approach allows our method to generate visually coherent video sequences that closely reflect natural motion dynamics, without compromising the fidelity of the generated content. We demonstrate the effectiveness of our approach across various models.

View on arXivView PDF

Code Implementations(1)

[CVPR2025] Official PyTorch implementation of "Optical-Flow Guided Prompt Optimization for Coherent Video Generation (Motion Prompt)"

30Nov 14, 20241 years ago

Similar Papers

Cite this paper

@article{nam2024opticalflow,
  title  = {Optical-Flow Guided Prompt Optimization for Coherent Video Generation},
  author = {Hyelin Nam and Jaemin Kim and Dohun Lee and Jong Chul Ye},
  year   = {2024},
  eprint = {2411.15540},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.15540v2},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.15540.svg)](https://codeofpaper.com/paper/2411.15540)

Discussion