Instructions to use joyfox/Wan2.1-Mecha-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use joyfox/Wan2.1-Mecha-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-Mecha-LoRA") prompt = "gangtiexia,背景保持不变,这个人开始变身白色机甲,变身过程中出现机甲面罩遮住脸部,变身完成之后这个人向前走" 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 Settings
- Draw Things
Update README.md
Browse files
README.md
CHANGED
|
@@ -60,7 +60,7 @@ widget:
|
|
| 60 |
|
| 61 |
# Model File and Inference Workflow
|
| 62 |
|
| 63 |
-
##
|
| 64 |
|
| 65 |
- [wan2.1-Mecha.safetensors](./wan2.1-Mecha.safetensors) - LoRA Model File
|
| 66 |
- [wan_img2video_lora_workflow.json](./result/wan2.1-exmple.json) - Wan I2V with LoRA Workflow for ComfyUI
|
|
|
|
| 60 |
|
| 61 |
# Model File and Inference Workflow
|
| 62 |
|
| 63 |
+
## <code style="background-color: #f0f0f0; padding: 3px 6px; border-radius: 4px;">[color]</code> with whatever you want to let this person transform into the color of a mecha</p> Download Links:
|
| 64 |
|
| 65 |
- [wan2.1-Mecha.safetensors](./wan2.1-Mecha.safetensors) - LoRA Model File
|
| 66 |
- [wan_img2video_lora_workflow.json](./result/wan2.1-exmple.json) - Wan I2V with LoRA Workflow for ComfyUI
|