Walkyrie_1.3B
Collection
2 items • Updated
How to use kpsss34/Walkyrie-1.3B-v2.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("kpsss34/Walkyrie-1.3B-v2.0", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]import torch
from pipeline_walkyrie import pipeline_walkyrie
from diffusers import AutoencoderKLWan
from PIL import Image
device = "cuda" if torch.cuda.is_available() else "cpu"
model_dtype = torch.bfloat16
model_id = "kpsss34/Walkyrie-1.3B-v2.0"
pipe = pipeline_walkyrie.from_pretrained(
model_id,
torch_dtype=model_dtype
)
pipe.to(device)
#pipe.load_lora_weights("lora.safetensors")
prompt = "a portrait of a young woman in a nightclub, cinematic film still, ultra wide aspect ratio, oval bokeh, soft highlight bloom, teal orange grading, film grain, moody lighting"
height = 1024
width = 1024
num_inference_steps = 20
guidance_scale = 1.0
generator = torch.Generator(device=device).manual_seed(0)
output = pipe(
prompt=prompt,
height=height,
width=width,
num_inference_steps=num_inference_steps,
guidance_scale=guidance_scale,
generator=generator,
output_type="pil"
).frames[0]
output.save("output.png")
Base model
kpsss34/Walkyrie-1.3B-v1.0