Skip to content
プロジェクト

概要

Official implementations for paper: LivePhoto: Real Image Animation with Text-guided Motion Control

デザイン・メディア

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

LivePhoto: Real Image Animation with Text-guided Motion Control

Paper PDF Project Page Project Page
The University of Hong Kong   |   Alibaba Group |   Ant Group

News

📢 LivePhoto-Wan2.1 is released.

LivePhoto-Wan2.1

LivePhoto-Wan2.1 supports text-guided image-to-video generation with control over motion intensity levels. Built upon the Wan2.1-T2V-1.3B architecture, it is adapted for I2V tasks using Pusa fine-tuning strategy. A motion intensity module is plugged in to adjust movement strength in the generated videos.

Installation

conda create -n livephoto python=3.10 -y
conda activate livephoto
cd ./LivePhoto-Wan2.1/PusaV1
pip install -e .
pip install xfuser>=0.4.3 absl-py peft lightning pandas deepspeed wandb av 

Model Preparation

pip install -U "huggingface_hub[cli]==0.34.0"
hf download Wan-AI/Wan2.1-T2V-1.3B Wan2.1_VAE.pth models_t5_umt5-xxl-enc-bf16.pth --local-dir ./model_zoo/Wan2.1/base/
hf download Wan-AI/Wan2.1-T2V-1.3B --include="google/*" --local-dir ./model_zoo/Wan2.1/base
hf download shirley430316/LivePhoto-Wan2.1 lora.safetensors base.safetensors --local-dir ./model_zoo/Wan2.1/

After proper preparation, the directory looks like:

./model_zoo
  - Wan2.1
    - base
      - Wan2.1_VAE.pth
      - models_t5_umt5-xxl-enc-bf16.pth
      - google
    - base.safetensors
    - lora.safetensors

Usage Example

I2V with Motion Intensity Levels

CUDA_VISIBLE_DEVICES=0 python examples/pusavideo/wan_14b_multi_frames_pusa.py \
  --image_paths "./demos/input_image.jpg" \
  --prompt "A cute orange kitten with big round eyes stands upright on its hind legs on a smooth wooden floor. The kitten begins to move its tiny front paws up and down rhythmically, swaying its body left and right as if dancing. Its fluffy tail flicks slightly behind it, and the soft lighting creates a warm, cozy indoor atmosphere. The kitten’s ears twitch gently as it keeps its balance, adding to the charm of its playful little dance. The background stays softly blurred, keeping focus on the kitten’s adorable movements." \
  --cond_position "0" \
  --noise_multipliers "0" \
  --lora_path "./model_zoo/Wan2.1/lora.safetensors" \
  --lora_alpha 1.2 \
  --num_inference_steps 30 \
  --cfg_scale 5 \
  --motion_intensity 6  # valid motion intensity levels from 1 through 6

Data Preparation

For dataset structure and preparation steps, see the detailed guide in:

PusaV1/dataset/README.md

Limitations

  • Video generation quality is inherently limited by the capabilities of the base Wan2.1-T2V-1.3B model, e.g., camera motion control is not currently supported.
  • Certain image types are likely to generate low quality videos, e.g. cartoon and animated contents, possibly due to dataset biases.

Acknowledgement

This version is developed upon the codebase of Pusa-VidGen. Much appreciation for the insightful project.

Citation

If you find this codebase useful for your research, please use the following entry.

@article{chen2023livephoto,
    title={LivePhoto: Real Image Animation with Text-guided Motion Control},
    author={Chen, Xi and Liu, Zhiheng and Chen, Mengting and Feng, Yutong and Liu, Yu and Shen, Yujun and Zhao, Hengshuang},
    journal={arXiv preprint arXiv:2312.02928},
    year={2023}
    }

関連プロジェクトを探す

読み込み中…