Instructions to use Leon1000/Wan2.2-I2V-KungFu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Leon1000/Wan2.2-I2V-KungFu 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.2-I2V-A14B", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Leon1000/Wan2.2-I2V-KungFu") prompt = "一个小孩双脚直立,双臂灵活张开,时而抬手,然后转身朝向左边,时而踢腿,做着一系列打拳动作,wugong" 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") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
| license: apache-2.0 | |
| language: | |
| - en | |
| base_model: | |
| - Wan-AI/Wan2.2-I2V-A14B | |
| pipeline_tag: image-to-video | |
| tags: | |
| - lora | |
| - diffusers | |
| - template:diffusion-lora | |
| widget: | |
| - text: >- | |
| 一个小孩双脚直立,双臂灵活张开,时而抬手,然后转身朝向左边,时而踢腿,做着一系列打拳动作,wugong | |
| output: | |
| url: result/output1.mp4 | |
| - text: >- | |
| 一个小动物双脚直立,双臂灵活张开,时而抬手,然后转身朝向左边,时而踢腿,做着一系列打拳动作,wugong | |
| output: | |
| url: result/output2.mp4 | |
| - text: >- | |
| 一个小动物双脚直立,双臂灵活张开,时而抬手,然后转身朝向左边,时而踢腿,做着一系列打拳动作,wugong | |
| output: | |
| url: result/output3.mp4 | |
| - text: >- | |
| 一个男人双脚直立,双臂灵活张开,时而抬手,然后转身朝向左边,时而踢腿,做着一系列打拳动作,wugong | |
| output: | |
| url: result/output4.mp4 | |
| - text: >- | |
| 一个女人双脚直立,双臂灵活张开,时而抬手,然后转身朝向左边,时而踢腿,做着一系列打拳动作,wugong | |
| output: | |
| url: result/output5.mp4 | |
| - text: >- | |
| 一个小孩双脚直立,双臂灵活张开,时而抬手,然后转身朝向左边,时而踢腿,做着一系列打拳动作,wugong | |
| output: | |
| url: result/output6.mp4 | |
| <div style="background-color: #f8f9fa; padding: 20px; border-radius: 10px; margin-bottom: 20px;"> | |
| <h1 style="color: #24292e; margin-top: 0;">valiantcat LoRA for Wan2.2-I2V-A14B</h1> | |
| <div style="background-color: white; padding: 15px; border-radius: 8px; margin: 15px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1);"> | |
| <h2 style="color: #24292e; margin-top: 0;">Overview</h2> | |
| <p>This LoRA is trained on the Wan2.2-I2V-A14B model.</p> | |
| </div> | |
| <div style="background-color: white; padding: 15px; border-radius: 8px; margin: 15px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1);"> | |
| <h2 style="color: #24292e; margin-top: 0;">Features</h2> | |
| <ul style="margin-bottom: 0;"> | |
| <li>Generate any life videos of eva through prompt</li> | |
| <li>Trained on the Wan2.2-I2V-A14B base model</li> | |
| <li>Consistent results across different object types</li> | |
| <li>Simple prompt structure that's easy to adapt</li> | |
| </ul> | |
| </div> | |
| <Gallery /> | |
| # Model File and Inference Workflow | |
| ## 📥 Download Links: | |
| - [wan2.2_wugong_i2v_high](./wan2.2_wugong_i2v_high.safetensors) - LoRA Model File | |
| - [wan2.2_wugong_i2v_low](./wan2.2_wugong_i2v_low.safetensors) - LoRA Model File | |
| --- | |
| <div style="background-color: #f8f9fa; padding: 20px; border-radius: 10px; margin-bottom: 20px;"> | |
| <div style="background-color: white; padding: 15px; border-radius: 8px; margin: 15px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1);"> | |
| <h2 style="color: #24292e; margin-top: 0;">Recommended Settings</h2> | |
| <ul style="margin-bottom: 0;"> | |
| <li><b>LoRA Strength:</b> 1.0</li> | |
| <li><b>Embedded Guidance Scale:</b> 1.0</li> | |
| <li><b>Flow Shift:</b> 8.0</li> | |
| </ul> | |
| </div> | |
| <div style="background-color: white; padding: 15px; border-radius: 8px; margin: 15px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1);"> | |
| <h2 style="color: #24292e; margin-top: 0;">Trigger Words</h2> | |
| <p>The key trigger phrase is: <code style="background-color: #f0f0f0; padding: 3px 6px; border-radius: 4px;">wugong</code></p> | |
| </div> | |
| <div style="background-color: white; padding: 15px; border-radius: 8px; margin: 15px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1);"> | |
| <h2 style="color: #24292e; margin-top: 0;">Prompt Template</h2> | |
| <p>For best results, use this prompt structure:</p> | |
| <div style="background-color: #f0f0f0; padding: 12px; border-radius: 6px; margin: 10px 0;"> | |
| <i>一个小孩双脚直立,双臂灵活张开,时而抬手,然后转身朝向左边,时而踢腿,做着一系列打拳动作,wugong</i> | |
| </div> | |
| </div> | |