How to use Remade-AI/Warrior 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/Warrior") prompt = "The video starts with a man. The next scene shows him with a mountain range in the background. His shirt is pulled up to his midriff, and he is wearing a skirt-like bottom. The man has a belt around his waist and is gesturing with his right hand. He is wearing brown, medieval looking leggings. The effect seen is warr10r warrior it. The man now appears as a warrior with an axe. He is shirtless, muscular, has tattoos, and is smiling with a determined look on his face. The background is the same mountain range as before. The next scene shows the man still as a warrior, and he is holding an axe with a golden axe head." 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")
The community tab is the place to discuss and collaborate with the HF community!