Diffusers How to use prithivMLmods/Canes-Cars-Model-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("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("prithivMLmods/Canes-Cars-Model-LoRA")
prompt = "A black Ford Mustang was photographed on the side of an abandoned road in British Columbia, Canada surrounded by trees and grass. The car is driving fast down the dirt road at sunset. Light beams shine from its headlights. Shot in the style of Peter Lindbergh for Aman Resorts --ar 85:128 --v 6.0 --style raw"
image = pipe(prompt).images[0]