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
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,33 +19,18 @@ widget:
|
|
| 19 |
output:
|
| 20 |
url: result/people_fight1.mp4
|
| 21 |
- text: >-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
squish effect.
|
| 26 |
-
output:
|
| 27 |
-
url: example_videos/tank_squish.mp4
|
| 28 |
-
- text: >-
|
| 29 |
-
In the video, a miniature balloon is presented. The balloon is held in a
|
| 30 |
-
person's hands. The person then presses on the balloon, causing a sq41sh
|
| 31 |
-
squish effect. The person keeps pressing down on the balloon, further
|
| 32 |
-
showing the sq41sh squish effect.
|
| 33 |
-
output:
|
| 34 |
-
url: example_videos/balloon_squish.mp4
|
| 35 |
-
- text: >-
|
| 36 |
-
In the video, a miniature rodent is presented. The rodent is held in a
|
| 37 |
-
person's hands. The person then presses on the rodent, causing a sq41sh
|
| 38 |
-
squish effect. The person keeps pressing down on the rodent, further showing
|
| 39 |
-
the sq41sh squish effect.
|
| 40 |
output:
|
| 41 |
-
url:
|
| 42 |
- text: >-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
the sq41sh squish effect.
|
| 47 |
output:
|
| 48 |
-
url:
|
|
|
|
| 49 |
---
|
| 50 |
<div style="background-color: #f8f9fa; padding: 20px; border-radius: 10px; margin-bottom: 20px;">
|
| 51 |
<h1 style="color: #24292e; margin-top: 0;">Squish Effect LoRA for Wan2.1 14B I2V 480p</h1>
|
|
|
|
| 19 |
output:
|
| 20 |
url: result/people_fight1.mp4
|
| 21 |
- text: >-
|
| 22 |
+
dajia,这是一对情侣对打得视频,镜头拉远,保持人物不变,这两个人开始对打,两个人不断旋转,拳打脚踢,姿势像是传统武术,
|
| 23 |
+
十分专业,两个人相互比试,打的有来有回,突然左边的人腾空跳起,保持飞在空中用腿不停踢另一个人上半身,
|
| 24 |
+
男人被踢得一边用手阻挡女人的飞踢一边后退,镜头跟随,保持背景和人物的服装不改变。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
output:
|
| 26 |
+
url: result/people_fight2.mp4
|
| 27 |
- text: >-
|
| 28 |
+
dajia,这是一对闺蜜对打得视频,镜头拉远,保持人物不变,这两个人开始对打,两个人不断旋转,拳打脚踢,姿势像是传统武术,
|
| 29 |
+
十分专业,两个人相互比试,打的有来有回,突然右边的人腾空跳起,保持飞在空中用腿不停踢另一个人上半身,
|
| 30 |
+
右边的女人被踢得一边用手阻挡女人的飞踢一边后退,镜头跟随,保持背景和人物的服装不改变。
|
|
|
|
| 31 |
output:
|
| 32 |
+
url: result/people_fight3.mp4
|
| 33 |
+
|
| 34 |
---
|
| 35 |
<div style="background-color: #f8f9fa; padding: 20px; border-radius: 10px; margin-bottom: 20px;">
|
| 36 |
<h1 style="color: #24292e; margin-top: 0;">Squish Effect LoRA for Wan2.1 14B I2V 480p</h1>
|