Instructions to use TheLastBen/William_Eggleston_Style_SDXL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use TheLastBen/William_Eggleston_Style_SDXL 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("TheLastBen/William_Eggleston_Style_SDXL") prompt = "by william eggleston" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
ValueError: Checkpoint not supported
ValueError: Checkpoint not supported error code when attempting to load this William Eggleston style LoRA safetensor (wegg.safetensors) on top of the SD-XL-v1.0 base model. I'm following the recommendations from HF at: https://huggingface.co/TheLastBen/William_Eggleston_Style_SDXL
- Successfully loaded and inferenced the SD-XL-v1.0 base model:
base_model_id = "stabilityai/stable-diffusion-xl-base-1.0"pipeline = StableDiffusionXLPipeline.from_pretrained(base_model_id, variant="fp16", torch_dtype=torch.float16,).to("cuda")
- Error code arises when attempting to load LoRA weights:
pipeline.load_lora_weights("TheLastBen/William_Eggleston_Style_SDXL", weight_name="wegg.safetensors",)
Using diffusers version: 0.20.0.
Suggestions on how to successfully load these LoRA weights? This same pipeline is successful in loading the LoRA weights for: https://huggingface.co/nerijs/pixel-art-xl This result leads me to believe the issue might be in the .safetensors file and not the diffusers package. Thanks for your suggestions!
"Diffusers is working fast to support all LoRA loading with the native method pipe.load_lora_weights. Until then, bmaltais kohnya_ss lora method has worked..."
Work-around found here:
https://colab.research.google.com/drive/14aEJsKdEQ9_kyfsiV6JDok799kxPul0j
checkout the code used here https://huggingface.co/spaces/multimodalart/LoraTheExplorer/tree/main
Thank you!