Downloads · 30 days
9
1% of all-time downloads
sr5434/sd-pokemon-model-lora
sd-pokemon-model-lora is a text-to-image model from sr5434. Use it when you need an image from a text prompt. It is set up for diffusers.
I trained this model using LoRA and Stable Diffusion v1.4
Downloads · 30 days
9
1% of all-time downloads
All-time downloads
1.3K
Public
Repo size
3.3 MB
Likes
3
Public
Click a slice to open those files.
.bin6.6 MB · 100%
From the Hugging Face model README
I trained this model using LoRA and Stable Diffusion v1.4
Sample code:
from diffusers import StableDiffusionPipeline
import torch
model_path = "sr5434/sd-pokemon-model-lora"
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16)
pipe.unet.load_attn_procs(model_path)
pipe.to("cuda")
prompt = input("Prompt:")
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
image.save("pokemon.png")