Text-Animator: Controllable Visual Text Video Generation

Lin Liu, Quande Liu, Shengju Qian, Yuan Zhou, Wengang Zhou, Houqiang Li, Lingxi Xie, Qi TianarXiv 2024 · DOI

Abstract

Generating readable and stable visual text in videos is a significant challenge for current Text-to-Video (T2V) models, which often suffer from "text collapse" and motion incoherence. We present Text-Animator, a novel one-stage framework designed for high-fidelity, controllable visual text generation. By integrating glyph-based text embeddings and camera pose information, Text-Animator achieves superior textual fidelity and temporal consistency. Experimental results demonstrate a nearly 200% improvement in sentence accuracy over existing state-of-the-art methods.

Introduction

While recent advancements in image generation have enabled the rendering of crisp text, extending these capabilities to the video domain has proven difficult. Standard T2V models prioritize semantic scene consistency over granular character details, leading to blurry or misspelled text that drifts unnaturally during camera movement. Existing Image-to-Video (I2V) pipelines often fail to maintain the structural integrity of text across frames. Text-Animator addresses these limitations by treating text generation as a spatially and temporally anchored process within a unified diffusion framework.

Methodology

Text-Animator is built upon the AnimateDiffV3 architecture and introduces three primary modules to ensure text stability:

  1. Text Embedding Injection: The model utilizes glyph maps (character shapes) and position maps (spatial coordinates) processed through a specialized ControlNet. This ensures the 3D-UNet captures the precise structural details of the characters.
  2. Camera Control Module: To prevent text drift, the framework incorporates Plucker embeddings to represent camera pose. This allows the model to synchronize text movement with the background and scene objects accurately.
  3. Text Refinement Module: This module adjusts the geometry of text maps across frames using an expansion factor, preventing distortion during complex camera trajectories.
Temporal consistency of visual text 'CAFE' on a mug across video frames.

Unlike multi-stage I2V approaches, Text-Animator is a one-stage method that synthesizes text and video simultaneously, preserving high-frequency details that are often lost in sequential processing.

Experimental Evaluation

The framework was evaluated using a subset of the LAION AnyText-benchmark, focusing on text integrated into natural scenes such as signs and labels. Text-Animator was compared against leading models including Stable Video Diffusion (SVD), Gen-2, Pika, and Open-SORA.

Quantitative Results

Text-Animator significantly outperforms baselines in both accuracy and similarity metrics:

  • Sentence Accuracy (Sen. Acc): Achieved 0.779, representing a 191.8% improvement over the best baseline (AnyText + I2VGen-XL at 0.267).
  • Normalized Edit Distance (NED): Achieved 0.802, indicating high character-level precision.

Qualitative Analysis

Qualitative comparisons reveal that Text-Animator maintains sharp, correctly oriented text even during significant camera pans or zooms. In contrast, baseline models frequently produce illegible artifacts or "text-like" blobs.

High-fidelity rendering of 'STOP' text on a road surface with realistic perspective.

Conclusion and Future Work

Text-Animator represents a major step toward professional-grade AI video generation for advertising and e-commerce. By leveraging camera pose as a grounding signal, it effectively "pins" text to the 3D environment. Future research will focus on improving text rendering on highly curved surfaces and extending consistency for long-form video sequences.

Summary updated

BibTeX
@misc{liu2024text,
  author = {Lin Liu and Quande Liu and Shengju Qian and Yuan Zhou and Wengang Zhou and Houqiang Li and Lingxi Xie and Qi Tian},
  title = {{Text-Animator: Controllable Visual Text Video Generation}},
  year = {2024},
  eprint = {2406.17777},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.17777},
}
Figure