How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("tenith/pokemon-lora")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

LoRA fine-tuned on custom dataset

Details

  • Base model: stable-diffusion-v1-5/stable-diffusion-v1-5
  • Resolution: 512px
  • Method: LoRA (rank 16)
  • Training steps: 1500
  • Learning rate: 0.0001

Usage

import torch
from diffusers import StableDiffusionPipeline

pipe = StableDiffusionPipeline.from_pretrained(
    "stable-diffusion-v1-5/stable-diffusion-v1-5", torch_dtype=torch.float16
).to("cuda")

pipe.load_lora_weights("tenith/pokemon-lora")

image = pipe("your prompt here", num_inference_steps=30, guidance_scale=7.5).images[0]
image.save("output.png")
Downloads last month
1
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for tenith/pokemon-lora

Adapter
(661)
this model