gigant/oldbookillustrations
Viewer • Updated • 4.15k • 1.2k • 39
How to use Oedon42/oldpainter-lora-xl with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("Oedon42/oldpainter-lora-xl")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]These are LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0. The weights were fine-tuned on the gigant/oldbookillustrations dataset. You can find some example images in the following.
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0")
pipe.load_lora_weights("Oedon42/oldpainter-lora-xl")
prompt = "big white rose, details, 19th century, antiquity, reference book, color, Europe, frontispiece, 8k"
image = pipe(prompt).images[0]
[TODO]
Base model
stabilityai/stable-diffusion-xl-base-1.0