Instructions to use Remade-AI/Samurai with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Remade-AI/Samurai 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-480P,Wan-AI/Wan2.1-I2V-14B-480P-Diffusers", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Remade-AI/Samurai") prompt = "The video begins with a man. He begins the 54mur41 samurai transformation, and becomes a samurai. He is wearing a traditional samurai outfit, and is holding a katana. The background behind him is a misty mountainous landscape." 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 Settings
- Draw Things
- Xet hash:
- 4401615adf6c97810cc7c230420b8bef3d9a70b3f0ddb62befe37765e89c4b63
- Size of remote file:
- 501 kB
- SHA256:
- 2f3a41134fd86338a4ebd172f966837f62a4e4f30d6333f54523261390e07435
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.