FloAt: Flow Warping of Self-Attention for Clothing Animation Generation

Swasti Shreya Mishra, Kuldeep Kulkarni, Duygu Ceylan, Balaji Vasan SrinivasanarXiv 2024 · DOI

Abstract

FloAtControlNet is a training-free, diffusion-based framework designed to generate realistic clothing animations from text prompts and geometric normal maps. By leveraging optical flow derived from normal maps to warp internal self-attention maps, the method ensures temporal consistency and suppresses background flickering, effectively anchoring complex textures to moving geometry.

Introduction

Creating "cinemagraphs"—still images with localized, looping motion—is a powerful tool for digital media. However, animating human clothing remains a significant challenge due to complex geometric variations like folds and wrinkles, and high-frequency textures such as stripes or floral prints. Existing diffusion-based methods often suffer from "texture swimming," where patterns appear to crawl across the fabric, and background instability, where static regions flicker during animation. FloAtControlNet addresses these issues by introducing a mechanism to anchor textures to moving geometry without requiring additional training.

Methodology

FloAtControlNet builds upon a normal-map conditioned ControlNet using a training-free regime that manipulates the diffusion process in real-time.

Flow from Normals

The model utilizes the RAFT algorithm to compute optical flow between consecutive normal maps. These maps represent 3D surface orientation, capturing the "ground truth" of fabric movement.

An example of an input normal map sequence representing the 3D surface orientation of a garment.

Self-Attention Warping and Feature Injection

The core innovation lies in recomputing the U-Net's self-attention maps. For each frame, the attention map is a linear combination of its current state and the previous frame's map, warped by the calculated flow. This "pushes" visual features along the geometric path of the clothing. Additionally, self-attention feature injection is used to maintain global style consistency.

Background Suppression

To ensure background stability, the system employs a thresholded flow magnitude mask. Regions with zero flow (the background) are forced to retain the attention features of the initial frame, while only moving regions (the clothing) are updated.

Experimental Setup

The method was evaluated using the Cloth 3D dataset and a Custom Benchmark of 2,990 pairs (230 unique normal map sequences and 13 diverse text prompts). This benchmark specifically tested the model's ability to handle complex textures like "polka dotted dress" or "satin pants" that typically challenge video diffusion models.

Results and Discussion

FloAtControlNet demonstrated quantitative superiority over baselines such as CycleNet and Rerender-A-Video, achieving an N-RMSE of 19.396 and an N-PSNR of 13.748. Temporal consistency, measured by Self-LPIPS, improved significantly to 0.025 compared to 0.242 for standard ControlNet.

A generated frame showcasing the model's ability to render complex textures with high temporal stability.

Qualitatively, the model excels at animating intricate prints without the patterns dissolving or sliding. A user study involving 67 participants confirmed this, with FloAtControlNet being preferred 41.3% of the time.

Limitations

The method's performance is dependent on the quality of input normal maps. Furthermore, because self-attention maps are manipulated at a lower resolution ($64 \times 64$) than the final output ($512 \times 512$), the VAE decoder's upsampling can occasionally introduce subtle artifacts in the background.

Conclusion

FloAtControlNet provides a flexible, training-free solution for high-quality clothing animation. By using normal maps as motion proxies and warping self-attention maps, it effectively bridges the gap between static geometry and dynamic, textured visual generation.

Summary updated

BibTeX
@misc{mishra2024float,
  author = {Swasti Shreya Mishra and Kuldeep Kulkarni and Duygu Ceylan and Balaji Vasan Srinivasan},
  title = {{FloAt: Flow Warping of Self-Attention for Clothing Animation Generation}},
  year = {2024},
  eprint = {2411.15028},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.15028},
}
Figure