cindyloo337 commited on
Commit
e30585e
·
verified ·
1 Parent(s): b7b78c2

End of training

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ 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_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 in the woods
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-v3
34
+
35
+ <Gallery />
36
+
37
+ ## Model description
38
+
39
+ ### These are cindyloo337/sbne-chicken-v3 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-v3.safetensors` here 💾](/cindyloo337/sbne-chicken-v3/blob/main/sbne-chicken-v3.safetensors)**.
46
+ - Place it on your `models/Lora` folder.
47
+ - On AUTOMATIC1111, load the LoRA by adding `<lora:sbne-chicken-v3: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-v3_emb.safetensors` here 💾](/cindyloo337/sbne-chicken-v3/blob/main/sbne-chicken-v3_emb.safetensors)**.
49
+ - Place it on it on your `embeddings` folder
50
+ - Use it by adding `sbne-chicken-v3_emb` to your prompt. For example, `a sbne-chicken-v3_emb chicken in the woods`
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-v3', weight_name='pytorch_lora_weights.safetensors')
64
+ embedding_path = hf_hub_download(repo_id='cindyloo337/sbne-chicken-v3', filename='sbne-chicken-v3_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-v3/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]
image_0.png ADDED
image_1.png ADDED
image_2.png ADDED

Git LFS Details

  • SHA256: 5e37a0cd2b90943dfff1ea55e2ba8bc4f6e6923ca3f1159d600f1bb8973e87ad
  • Pointer size: 132 Bytes
  • Size of remote file: 1 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:0f4c6aaff57bfae84f87acb2f86a169631d8b6cf38b677c729876e62eec9619b
3
+ size 33236336
sbne-chicken-v3.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:875bac293d646615c93dd1dd3a51ac7ecf21fbd5aad4fd9fdb685794c80bdcd2
3
+ size 33255056
sbne-chicken-v3_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fe4915a751c7503f1267fbfac2d08601d7fb80b38e9c15b688ef0fc314805ac
3
+ size 4176