NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MagicFight: Personalized Martial Arts Combat Video Generation

Jiancheng Huang, Mingfu Yan, Songyan Chen, Yi Huang, Shifeng Chen

TL;DR

This paper introduces "MagicFight," a novel framework for generating personalized martial arts combat videos featuring two individuals. It addresses the limitations of existing single-person video generation models by introducing a new task, a custom dataset, and a multi-modal network designed to maintain character identity and action coherence in complex two-person interactions.

What Problem Does This Paper Address?

The field of personalized video generation has seen significant progress, but it's largely focused on single individuals, particularly for tasks like dance or fashion. Generating realistic, two-person combat videos, like martial arts, presents a unique challenge. Existing models struggle with:

  • Identity Confusion: Maintaining distinct appearances for both individuals, especially when they are close or interacting.
  • Anomalous Limbs/Actions: Producing anatomically correct and coherent movements for both fighters simultaneously.
  • Lack of Specialized Data: The absence of datasets tailored for two-person combat scenarios, which differ significantly from solo dance or fashion videos in terms of action complexity and interaction dynamics.

This paper aims to bridge this gap by creating a new task and a method capable of generating high-fidelity, two-person martial arts combat videos that preserve individual identities and ensure seamless action.

Methods

MagicFight builds upon existing diffusion models, specifically adapting the AnimateAnyone framework. Key methodological contributions include:

  • Personalized Attention (ID-attn) Layer: This novel layer is integrated into the denoising U-Net to specifically address the identity confusion problem. It allows the model to attend to specific regions of the reference identity images, ensuring that each character's appearance is maintained.
  • Large Pose Guider: Unlike lightweight controllers used for single-person tasks, MagicFight employs a more robust "Pose Guider" (similar to ControlNet) to handle the complex, two-person pose sequences required for martial arts.
  • Conditioned Background Generation: The framework allows users to provide a simple background image or use a pure white background, which is then enhanced by a "Background Crafter" (based on SDXL-Inpainting) to generate dynamic and contextually relevant backgrounds.
  • Body-Shape Adaptive Strategy: To ensure generated videos align with the reference IDs' body shapes, a strategy is introduced to predict pose keypoints, calculate centers of mass, and scale pose coordinates accordingly. This helps prevent visual incongruity when a given pose map differs significantly from the reference character's physique.
  • Long Video Generation Technique: A clip fusion method is used to ensure temporal consistency and smooth transitions when generating videos longer than typical diffusion model outputs.
  • Mixture Dataset Finetuning: The authors propose finetuning on a combination of their custom martial arts dataset and a synthesized two-person fashion dataset. This leverages the strengths of both: the combat realism of their dataset and the clean, high-definition textures of the fashion dataset.

Datasets

  • KungFu-Fiesta (KFF): A newly created dataset specifically for two-person martial arts combat video generation. It was generated using the Unity game engine, featuring diverse 3D characters, martial arts moves, and scenes. Each sample includes a combat video, two reference ID images, and a pose map sequence.
  • Synthesized Two-Person Fashion Dataset: Created by splicing pairs of single-person fashion videos from the UBC dataset. This dataset provides clean backgrounds and high-quality character textures, complementing the KFF dataset.

Key Insights and Ideas

  • The "Two-Person Combat" Gap: The paper clearly articulates that existing single-person video generation models are fundamentally insufficient for complex multi-person interactions like martial arts combat, highlighting the need for a new task and specialized solutions.
  • Identity is Paramount: The ID-attn layer is crucial for disentangling and preserving the identities of multiple characters, a problem that simple feature extraction or attention mechanisms struggle with.
  • Dataset Design Matters: The creation of the KFF dataset is a significant contribution, demonstrating that tailored datasets are essential for pushing the boundaries of specialized video generation tasks.
  • Leveraging Diverse Data: Combining specialized combat data with more general fashion data through mixture finetuning proves effective for improving both realism and aesthetic quality.
  • Body Shape Adaptation is Key: Explicitly addressing body shape differences between reference IDs and input poses is necessary for generating visually consistent and believable results.

Key Results

  • MagicFight significantly outperforms existing methods (MagicAnimate, AnimateAnyone, Champ, DreaMoving) on both the KFF Reconstruction Benchmark and the Open-set Combat Generation Benchmark, as evidenced by metrics like FVD, User Score, SSIM, PSNR, and LPIPS.
  • For instance, on the KFF Reconstruction Benchmark, MagicFight achieved a lower FVD (454.62) compared to the next best (Champ at 523.01) and a higher User Score (4.12 vs. 4.56 for Champ).
  • Qualitative results demonstrate MagicFight's ability to generate high-definition videos with realistic character details, maintaining temporal consistency and coherence even with significant motion and complex interactions.
  • The ablation studies confirm the importance of dataset scale, ID diversity, action variety, and the mixture dataset finetuning strategy for achieving optimal performance.

Limitations and Future Work

  • Limb Generation: The paper acknowledges that, like many generative models, MagicFight still struggles with perfect foot and hand generation.
  • Reference ID Viewpoint: The use of single-angle reference IDs can lead to issues when generating occluded parts or when the reference image lacks a frontal view, impacting facial quality.
  • Complex Overlap: When two people overlap significantly (e.g., in wrestling), pose control can become chaotic.
  • Future Work:
    • Handling complex clothing (e.g., flowing dresses, ribbons) may require manual pose map labeling.
  • Improving dynamic background generation (e.g., water, fire, rain, passers-by) is a significant area for future research.
  • Adapting the model to handle camera movement (e.g., dynamic shots, pans, zooms) is a crucial next step for generating more realistic martial arts movie-style videos.

Summary updated

BibTeX
@inproceedings{huang2024magicfight,
  author = {Jiancheng Huang and Mingfu Yan and Songyan Chen and Yi Huang and Shifeng Chen},
  title = {{MagicFight: Personalized Martial Arts Combat Video Generation}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3664647.3680849},
}
Figure