cindyloo337 commited on
Commit
6ae878b
·
verified ·
1 Parent(s): aba162a

End of training

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ image_0.png filter=lfs diff=lfs merge=lfs -text
37
+ image_2.png filter=lfs diff=lfs merge=lfs -text
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 <s0><s1> chicken
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-object-lora
34
+
35
+ <Gallery />
36
+
37
+ ## Model description
38
+
39
+ ### These are cindyloo337/sbne-chicken-sd21-object-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-object-lora.safetensors` here 💾](/cindyloo337/sbne-chicken-sd21-object-lora/blob/main/sbne-chicken-sd21-object-lora.safetensors)**.
46
+ - Place it on your `models/Lora` folder.
47
+ - On AUTOMATIC1111, load the LoRA by adding `<lora:sbne-chicken-sd21-object-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-object-lora_emb.safetensors` here 💾](/cindyloo337/sbne-chicken-sd21-object-lora/blob/main/sbne-chicken-sd21-object-lora_emb.safetensors)**.
49
+ - Place it on it on your `embeddings` folder
50
+ - Use it by adding `sbne-chicken-sd21-object-lora_emb` to your prompt. For example, `a sbne-chicken-sd21-object-lora_emb chicken`
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-object-lora', weight_name='pytorch_lora_weights.safetensors')
64
+ embedding_path = hf_hub_download(repo_id='cindyloo337/sbne-chicken-sd21-object-lora', filename='sbne-chicken-sd21-object-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-object-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-1000/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8367ac36f5c7eecf89ce184d7a290b30b12d5abce747e1941778500fbcf5ff78
3
+ size 99892882
checkpoint-1000/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6da9bf1b233c8332c533cacec5f5165226c0806f0d58dee2755252c053c8c60
3
+ size 24936768
checkpoint-1000/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac7da3357fa50215e88c60383e687496e38f486881bdc3dc46ffb75ac731b43e
3
+ size 14344
checkpoint-1000/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d8fdcd0311eba9854fff738038ed4c1a269832665b4d88ba4e4e3d02a1a7e0e
3
+ size 988
checkpoint-1000/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02c1875712672363efa2b38e5618a6dbdca576b421269b59a3333e86755f0b21
3
+ size 1064
image_0.png ADDED

Git LFS Details

  • SHA256: 43b239861f63e2e0ab9c9bf5692d630cf478979af2d58d38e4cf7ed128502713
  • Pointer size: 132 Bytes
  • Size of remote file: 1.06 MB
image_1.png ADDED
image_2.png ADDED

Git LFS Details

  • SHA256: 8ec5cc44ab2af394903aca3d9ed614e2f6dfc203aeca6f236cca6d7423c7aeef
  • Pointer size: 132 Bytes
  • Size of remote file: 1.03 MB
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:b6da9bf1b233c8332c533cacec5f5165226c0806f0d58dee2755252c053c8c60
3
+ size 24936768
sbne-chicken-sd21-object-lora.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f35ea51fc8bdfe65dba09c7e352ea949a0cbd0bc0f82cfef611caaeb317c5a8
3
+ size 24955488
sbne-chicken-sd21-object-lora_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fe4915a751c7503f1267fbfac2d08601d7fb80b38e9c15b688ef0fc314805ac
3
+ size 4176