Instructions to use diffusers/lora-trained-xl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/lora-trained-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("diffusers/stable-diffusion-xl-base-0.9", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("diffusers/lora-trained-xl") prompt = "a photo of sks dog" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
| license: creativeml-openrail-m | |
| base_model: diffusers/stable-diffusion-xl-base-0.9 | |
| instance_prompt: a photo of sks dog | |
| tags: | |
| - 'stable-diffusion-xl' | |
| - 'stable-diffusion-xl-diffusers' | |
| - text-to-image | |
| - diffusers | |
| - lora | |
| inference: true | |
| # LoRA DreamBooth - sayakpaul/lora-trained-xl | |
| These are LoRA adaption weights for diffusers/stable-diffusion-xl-base-0.9. The weights were trained on a photo of sks dog using [DreamBooth](https://dreambooth.github.io/). You can find some example images in the following. | |
|  | |
|  | |
|  | |
|  | |
| LoRA for the text encoder was enabled: False. | |
| ## License | |
| [SDXL 0.9 Research License](https://huggingface.co/stabilityai/stable-diffusion-xl-base-0.9/blob/main/LICENSE.md) | |