Instructions to use tushaar21/lcm-lora-sdxl-500-rank6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use tushaar21/lcm-lora-sdxl-500-rank6 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("tushaar21/lcm-lora-sdxl-500-rank6") prompt = "a advertising photo of the TOK bottle" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Training complete
Browse files- README.md +63 -0
- optimizer.bin +3 -0
- pytorch_lora_weights.safetensors +3 -0
- random_states_0.pkl +3 -0
- scaler.pt +3 -0
- scheduler.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- stable-diffusion-xl
|
| 4 |
+
- stable-diffusion-xl-diffusers
|
| 5 |
+
- text-to-image
|
| 6 |
+
- diffusers
|
| 7 |
+
- lora
|
| 8 |
+
- template:sd-lora
|
| 9 |
+
widget:
|
| 10 |
+
|
| 11 |
+
- text: 'a advertising photo of the TOK bottle'
|
| 12 |
+
|
| 13 |
+
base_model: stabilityai/stable-diffusion-xl-base-1.0
|
| 14 |
+
instance_prompt: a advertising photo of the TOK bottle
|
| 15 |
+
license: openrail++
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# SDXL LoRA DreamBooth - tushaar21/lcm-lora-sdxl-500-rank6
|
| 19 |
+
|
| 20 |
+
<Gallery />
|
| 21 |
+
|
| 22 |
+
## Model description
|
| 23 |
+
|
| 24 |
+
### These are tushaar21/lcm-lora-sdxl-500-rank6 LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
|
| 25 |
+
|
| 26 |
+
## Download model
|
| 27 |
+
|
| 28 |
+
### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
|
| 29 |
+
|
| 30 |
+
- **LoRA**: download **[`/content/drive/MyDrive/lora-lcm-sdxl-500/checkpoint-200.safetensors` here 💾](/tushaar21/lcm-lora-sdxl-500-rank6/blob/main//content/drive/MyDrive/lora-lcm-sdxl-500/checkpoint-200.safetensors)**.
|
| 31 |
+
- Place it on your `models/Lora` folder.
|
| 32 |
+
- On AUTOMATIC1111, load the LoRA by adding `<lora:/content/drive/MyDrive/lora-lcm-sdxl-500/checkpoint-200:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
| 36 |
+
|
| 37 |
+
```py
|
| 38 |
+
from diffusers import AutoPipelineForText2Image
|
| 39 |
+
import torch
|
| 40 |
+
|
| 41 |
+
pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
|
| 42 |
+
pipeline.load_lora_weights('tushaar21/lcm-lora-sdxl-500-rank6', weight_name='pytorch_lora_weights.safetensors')
|
| 43 |
+
|
| 44 |
+
image = pipeline('a advertising photo of the TOK bottle').images[0]
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
|
| 48 |
+
|
| 49 |
+
## Trigger words
|
| 50 |
+
|
| 51 |
+
You should use a advertising photo of the TOK bottle to trigger the image generation.
|
| 52 |
+
|
| 53 |
+
## Details
|
| 54 |
+
All [Files & versions](/tushaar21/lcm-lora-sdxl-500-rank6/tree/main).
|
| 55 |
+
|
| 56 |
+
The weights were trained using [🧨 diffusers Advanced Dreambooth Training Script](https://github.com/huggingface/diffusers/blob/main/examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py).
|
| 57 |
+
|
| 58 |
+
LoRA for the text encoder was enabled. False.
|
| 59 |
+
|
| 60 |
+
Pivotal tuning was enabled: False.
|
| 61 |
+
|
| 62 |
+
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
|
| 63 |
+
|
optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82c22ff3dab7135f62b6836d5b1a657a483ee07cfd198c062c8d9d3a5a7c2354
|
| 3 |
+
size 43556596
|
pytorch_lora_weights.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36b00719cc5b5b64a1eb4453a08090c3fc3a5c3281099664bd8b2d8d7ebf27bf
|
| 3 |
+
size 74011264
|
random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04826c5103bbaeefa2059f2442b797e7b509cdc1ab7783dc4c7140f0f1cdb0f2
|
| 3 |
+
size 14280
|
scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9bd55b3848d82967a207e0805911c79200c6adce71e3b37fd24549a718f75738
|
| 3 |
+
size 988
|
scheduler.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e440cace6589de6c72ad2cf84b033c31b67b56f5f593fdfc467c84dd99ca645
|
| 3 |
+
size 1000
|