gigant/oldbookillustrations
Viewer • Updated • 4.15k • 1.18k • 39
How to use Oedon42/oldpainter-lora with Diffusers:
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("Oedon42/oldpainter-lora")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]These are LoRA adaption weights for stable-diffusion-v1-5/stable-diffusion-v1-5. 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("stable-diffusion-v1-5/stable-diffusion-v1-5")
pipe.load_lora_weights("Oedon42/oldpainter-lora")
prompt = "1800s, 19th century, antiquity, black & white, Croatia, Europe, ruins"
image = pipe(prompt).images[0]
Here are some preview results of the model:
[TODO: describe the data used to train the model]
Base model
stable-diffusion-v1-5/stable-diffusion-v1-5