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-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") output = pipe(image=input_image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Upload 2 files
Browse files- .gitattributes +2 -0
- example_videos/man_samurai.mp4 +3 -0
- example_videos/rabbit_samurai.mp4 +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
example_videos/man_samurai.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
example_videos/rabbit_samurai.mp4 filter=lfs diff=lfs merge=lfs -text
|
example_videos/man_samurai.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e67311788ca4160bd819c2ff9d6916a07b6bba78f1de3f0992d6d343e7acddff
|
| 3 |
+
size 632599
|
example_videos/rabbit_samurai.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f3a41134fd86338a4ebd172f966837f62a4e4f30d6333f54523261390e07435
|
| 3 |
+
size 500866
|