Squaad AI
commited on
saving checkpoint-10
Browse files- README.md +62 -0
- checkpoint-10/optimizer.bin +3 -0
- checkpoint-10/pytorch_lora_weights.safetensors +3 -0
- checkpoint-10/random_states_0.pkl +3 -0
- checkpoint-10/scaler.pt +3 -0
- checkpoint-10/scheduler.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
base_model: stabilityai/stable-diffusion-xl-base-1.0
|
| 4 |
+
instance_prompt: TOK
|
| 5 |
+
tags:
|
| 6 |
+
- stable-diffusion-xl
|
| 7 |
+
- stable-diffusion-xl-diffusers
|
| 8 |
+
- text-to-image
|
| 9 |
+
- diffusers
|
| 10 |
+
- lora
|
| 11 |
+
inference: false
|
| 12 |
+
datasets:
|
| 13 |
+
- squaadinc/silvio
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# LoRA DreamBooth - squaadinc/teste
|
| 17 |
+
## MODEL IS CURRENTLY TRAINING ...
|
| 18 |
+
Last checkpoint saved: checkpoint-10
|
| 19 |
+
These are LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0 trained on @fffiloni's SD-XL trainer.
|
| 20 |
+
The weights were trained on the concept prompt:
|
| 21 |
+
```
|
| 22 |
+
TOK
|
| 23 |
+
```
|
| 24 |
+
Use this keyword to trigger your custom model in your prompts.
|
| 25 |
+
LoRA for the text encoder was enabled: False.
|
| 26 |
+
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
|
| 27 |
+
## Usage
|
| 28 |
+
Make sure to upgrade diffusers to >= 0.19.0:
|
| 29 |
+
```
|
| 30 |
+
pip install diffusers --upgrade
|
| 31 |
+
```
|
| 32 |
+
In addition make sure to install transformers, safetensors, accelerate as well as the invisible watermark:
|
| 33 |
+
```
|
| 34 |
+
pip install invisible_watermark transformers accelerate safetensors
|
| 35 |
+
```
|
| 36 |
+
To just use the base model, you can run:
|
| 37 |
+
```python
|
| 38 |
+
import torch
|
| 39 |
+
from diffusers import DiffusionPipeline, AutoencoderKL
|
| 40 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 41 |
+
vae = AutoencoderKL.from_pretrained('madebyollin/sdxl-vae-fp16-fix', torch_dtype=torch.float16)
|
| 42 |
+
pipe = DiffusionPipeline.from_pretrained(
|
| 43 |
+
"stabilityai/stable-diffusion-xl-base-1.0",
|
| 44 |
+
vae=vae, torch_dtype=torch.float16, variant="fp16",
|
| 45 |
+
use_safetensors=True
|
| 46 |
+
)
|
| 47 |
+
pipe.to(device)
|
| 48 |
+
# This is where you load your trained weights
|
| 49 |
+
specific_safetensors = "pytorch_lora_weights.safetensors"
|
| 50 |
+
lora_scale = 0.9
|
| 51 |
+
pipe.load_lora_weights(
|
| 52 |
+
'squaadinc/teste',
|
| 53 |
+
weight_name = specific_safetensors,
|
| 54 |
+
# use_auth_token = True
|
| 55 |
+
)
|
| 56 |
+
prompt = "A majestic TOK jumping from a big stone at night"
|
| 57 |
+
image = pipe(
|
| 58 |
+
prompt=prompt,
|
| 59 |
+
num_inference_steps=50,
|
| 60 |
+
cross_attention_kwargs={"scale": lora_scale}
|
| 61 |
+
).images[0]
|
| 62 |
+
```
|
checkpoint-10/optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4312ceb7f165da233b7d5857742928c4ace6899031a7003d0eb869a344aa5dcc
|
| 3 |
+
size 14989511
|
checkpoint-10/pytorch_lora_weights.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5565db047e502559773f22d226f90389458da6d43a876e96c0ba4732139de6f4
|
| 3 |
+
size 23401064
|
checkpoint-10/random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa07e6904942ace48e789c920b3f7046c91051c41b1db788b1dd6085b1ca45b2
|
| 3 |
+
size 14599
|
checkpoint-10/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:285e76ebe66a23f043b42182e14294a93d529fdc5c0c08159fd9fc10bbeaad36
|
| 3 |
+
size 557
|
checkpoint-10/scheduler.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:715829e32fb165fa1a4f8e58725497d96735edca5fca51b555511ac1bfc4ed5a
|
| 3 |
+
size 563
|