Instructions to use joyfox/Wan2.2-I2V-Fly with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use joyfox/Wan2.2-I2V-Fly 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("joyfox/Wan2.2-I2V-Fly") prompt = "这个女人以超人的姿态水平悬空,身体紧贴着地面高速飞行,feixing" 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: >- | |
| 这个女人以超人的姿态水平悬空,身体紧贴着地面高速飞行,feixing | |
| output: | |
| url: result/output1.mp4 | |
| - text: >- | |
| 这个女人以超人的姿态水平悬空,身体紧贴着地面高速飞行,feixing | |
| output: | |
| url: result/output2.mp4 | |
| - text: >- | |
| 这个男人以超人的姿态水平悬空,身体紧贴着地面高速飞行,feixing | |
| output: | |
| url: result/output3.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_fly_i2v_high](./wan2.2_fly_i2v_high.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;">feixing</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>这个男人以超人的姿态水平悬空,身体紧贴着地面高速飞行,feixing</i> | |
| </div> | |
| </div> | |