cindyloo337
commited on
End of training
Browse files- README.md +108 -0
- checkpoint-500/optimizer.bin +3 -0
- checkpoint-500/pytorch_lora_weights.safetensors +3 -0
- checkpoint-500/random_states_0.pkl +3 -0
- checkpoint-500/scaler.pt +3 -0
- checkpoint-500/scheduler.bin +3 -0
- image_0.png +0 -0
- image_1.png +0 -0
- image_2.png +0 -0
- image_3.png +0 -0
- pytorch_lora_weights.safetensors +3 -0
- sbne-chicken-sd21-lora.safetensors +3 -0
- sbne-chicken-sd21-lora_emb.safetensors +3 -0
README.md
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: stabilityai/stable-diffusion-2-1
|
3 |
+
library_name: diffusers
|
4 |
+
license: openrail++
|
5 |
+
inference: true
|
6 |
+
instance_prompt: a red chicken in the style of <s0><s1>
|
7 |
+
widget:
|
8 |
+
- text: a <s0><s1> chicken on a beach, in the style of <s0><s1>
|
9 |
+
output:
|
10 |
+
url: image_0.png
|
11 |
+
- text: a <s0><s1> chicken on a beach, in the style of <s0><s1>
|
12 |
+
output:
|
13 |
+
url: image_1.png
|
14 |
+
- text: a <s0><s1> chicken on a beach, in the style of <s0><s1>
|
15 |
+
output:
|
16 |
+
url: image_2.png
|
17 |
+
- text: a <s0><s1> chicken on a beach, in the style of <s0><s1>
|
18 |
+
output:
|
19 |
+
url: image_3.png
|
20 |
+
tags:
|
21 |
+
- text-to-image
|
22 |
+
- diffusers
|
23 |
+
- diffusers-training
|
24 |
+
- lora
|
25 |
+
- template:sd-lorastable-diffusion
|
26 |
+
- stable-diffusion-diffusers
|
27 |
+
---
|
28 |
+
|
29 |
+
<!-- This model card has been generated automatically according to the information the training script had access to. You
|
30 |
+
should probably proofread and complete it, then remove this comment. -->
|
31 |
+
|
32 |
+
|
33 |
+
# SD1.5 LoRA DreamBooth - cindyloo337/sbne-chicken-sd21-lora
|
34 |
+
|
35 |
+
<Gallery />
|
36 |
+
|
37 |
+
## Model description
|
38 |
+
|
39 |
+
### These are cindyloo337/sbne-chicken-sd21-lora LoRA adaption weights for stabilityai/stable-diffusion-2-1.
|
40 |
+
|
41 |
+
## Download model
|
42 |
+
|
43 |
+
### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
|
44 |
+
|
45 |
+
- **LoRA**: download **[`sbne-chicken-sd21-lora.safetensors` here 💾](/cindyloo337/sbne-chicken-sd21-lora/blob/main/sbne-chicken-sd21-lora.safetensors)**.
|
46 |
+
- Place it on your `models/Lora` folder.
|
47 |
+
- On AUTOMATIC1111, load the LoRA by adding `<lora:sbne-chicken-sd21-lora:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
|
48 |
+
- *Embeddings*: download **[`sbne-chicken-sd21-lora_emb.safetensors` here 💾](/cindyloo337/sbne-chicken-sd21-lora/blob/main/sbne-chicken-sd21-lora_emb.safetensors)**.
|
49 |
+
- Place it on it on your `embeddings` folder
|
50 |
+
- Use it by adding `sbne-chicken-sd21-lora_emb` to your prompt. For example, `a red chicken in the style of sbne-chicken-sd21-lora_emb`
|
51 |
+
(you need both the LoRA and the embeddings as they were trained together for this LoRA)
|
52 |
+
|
53 |
+
|
54 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
55 |
+
|
56 |
+
```py
|
57 |
+
from diffusers import AutoPipelineForText2Image
|
58 |
+
import torch
|
59 |
+
from huggingface_hub import hf_hub_download
|
60 |
+
from safetensors.torch import load_file
|
61 |
+
|
62 |
+
pipeline = AutoPipelineForText2Image.from_pretrained('runwayml/stable-diffusion-v1-5', torch_dtype=torch.float16).to('cuda')
|
63 |
+
pipeline.load_lora_weights('cindyloo337/sbne-chicken-sd21-lora', weight_name='pytorch_lora_weights.safetensors')
|
64 |
+
embedding_path = hf_hub_download(repo_id='cindyloo337/sbne-chicken-sd21-lora', filename='sbne-chicken-sd21-lora_emb.safetensors', repo_type="model")
|
65 |
+
state_dict = load_file(embedding_path)
|
66 |
+
pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
|
67 |
+
|
68 |
+
image = pipeline('a <s0><s1> chicken on a beach, in the style of <s0><s1>').images[0]
|
69 |
+
```
|
70 |
+
|
71 |
+
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)
|
72 |
+
|
73 |
+
## Trigger words
|
74 |
+
|
75 |
+
To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
|
76 |
+
|
77 |
+
to trigger concept `TOK` → use `<s0><s1>` in your prompt
|
78 |
+
|
79 |
+
|
80 |
+
|
81 |
+
## Details
|
82 |
+
All [Files & versions](/cindyloo337/sbne-chicken-sd21-lora/tree/main).
|
83 |
+
|
84 |
+
The weights were trained using [🧨 diffusers Advanced Dreambooth Training Script](https://github.com/huggingface/diffusers/blob/main/examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py).
|
85 |
+
|
86 |
+
LoRA for the text encoder was enabled. False.
|
87 |
+
|
88 |
+
Pivotal tuning was enabled: True.
|
89 |
+
|
90 |
+
Special VAE used for training: None.
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
## Intended uses & limitations
|
95 |
+
|
96 |
+
#### How to use
|
97 |
+
|
98 |
+
```python
|
99 |
+
# TODO: add an example code snippet for running this diffusion pipeline
|
100 |
+
```
|
101 |
+
|
102 |
+
#### Limitations and bias
|
103 |
+
|
104 |
+
[TODO: provide examples of latent issues and potential remediations]
|
105 |
+
|
106 |
+
## Training details
|
107 |
+
|
108 |
+
[TODO: describe the data used to train the model]
|
checkpoint-500/optimizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:99b61362302c6699ba9aceebefd4295589b9e6f2da3e910aa7c3622ae8e8df92
|
3 |
+
size 26857106
|
checkpoint-500/pytorch_lora_weights.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9cd8a9196217b2e4217208eb3e93756ac8d16be9b5fb648dc37e8f2eaf8a2adf
|
3 |
+
size 6677176
|
checkpoint-500/random_states_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:236ea73217ce2d4e421efe97ccc311bb8c70f9219849c23c3bbddbfef9c8a217
|
3 |
+
size 14344
|
checkpoint-500/scaler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:18b984273ea2d45b7ffb1d047bb359d93111e41fcad70d16a1b453fd38f72636
|
3 |
+
size 988
|
checkpoint-500/scheduler.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:72ef7361eb3ca738d82f6b0ce999ee77ee2bbe2c79a64c85a993f2a2eea063c5
|
3 |
+
size 1064
|
image_0.png
ADDED
image_1.png
ADDED
image_2.png
ADDED
image_3.png
ADDED
pytorch_lora_weights.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9cd8a9196217b2e4217208eb3e93756ac8d16be9b5fb648dc37e8f2eaf8a2adf
|
3 |
+
size 6677176
|
sbne-chicken-sd21-lora.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a7d13e3f8689dcb76d344c98e9b8e8d613e557cf9caee0770f540258b60621c8
|
3 |
+
size 6695896
|
sbne-chicken-sd21-lora_emb.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6fe4915a751c7503f1267fbfac2d08601d7fb80b38e9c15b688ef0fc314805ac
|
3 |
+
size 4176
|