Views
No views yet
TOK to trigger the image generation.1>>> import torch
2>>> from diffusers import Krea2Pipeline
3
4>>> # Load the LoRA onto Krea 2 Turbo (the distilled inference model)
5>>> pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")
6>>> pipe.load_lora_weights("aimalias/k4td")
7
8>>> # Turbo recipe: 8 steps, no classifier-free guidance
9>>> image = pipe("TOK", num_inference_steps=8, guidance_scale=0.0).images[0]
10>>> image.save("output.png")# TODO: add an example code snippet for running this diffusion pipeline