Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

joyfox
/
Wan2.1-Fight-LoRA

Image-to-Video
Diffusers
English
text-to-image
lora
template:diffusion-lora
Model card Files Files and versions
xet
Community

Instructions to use joyfox/Wan2.1-Fight-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use joyfox/Wan2.1-Fight-LoRA with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    from diffusers.utils import load_image, export_to_video
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.1-I2V-14B-720P,Wan-AI/Wan2.1-I2V-14B-720P-Diffusers", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("joyfox/Wan2.1-Fight-LoRA")
    
    prompt = "dajia,这是一个两个人对打得视频,镜头拉远,保持人物不变,这两个人开始对打,两个人不断旋转,拳打脚踢,姿势像是传统武术, 十分专业,两个人相互比试,打的有来有回,突然左边的人腾空跳起,保持飞在空中用腿不停踢另一个人上半身, 男人被踢得一边用手阻挡女人的飞踢一边后退,镜头跟随,保持背景和人物的服装不改变."
    input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png")
    
    image = pipe(image=input_image, prompt=prompt).frames[0]
    export_to_video(output, "output.mp4")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
Wan2.1-Fight-LoRA
411 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 18 commits
starsfriday's picture
starsfriday
Update README.md
2e8435a verified 10 months ago
  • result
    Upload folder using huggingface_hub 10 months ago
  • .gitattributes
    1.93 kB
    Upload folder using huggingface_hub 10 months ago
  • README.md
    7.22 kB
    Update README.md 10 months ago
  • adapter_config.json
    811 Bytes
    Upload folder using huggingface_hub 10 months ago
  • wan2.1-fight.safetensors
    359 MB
    xet
    Upload folder using huggingface_hub 10 months ago