Views
No views yet
stable-diffusion-v1-5/stable-diffusion-v1-51import torch
2from diffusers import StableDiffusionPipeline
3
4pipe = StableDiffusionPipeline.from_pretrained(
5 "stable-diffusion-v1-5/stable-diffusion-v1-5", torch_dtype=torch.float16
6).to("cuda")
7
8pipe.load_lora_weights("tenith/pokemon-lora")
9
10image = pipe("your prompt here", num_inference_steps=30, guidance_scale=7.5).images[0]
11image.save("output.png")