htuannn commited on
Commit
98ed3cd
1 Parent(s): 0f25f53

End of training

Browse files
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - stable-diffusion
4
+ - stable-diffusion-diffusers
5
+ - diffusers-training
6
+ - text-to-image
7
+ - diffusers
8
+ - dora
9
+ - template:sd-lora
10
+ widget:
11
+
12
+ - text: 'living room - kitchen in the style of <s0><s1> with a open floor plan, featuring a coffee table, a couch, a chandelier, and a set of dining table'
13
+ output:
14
+ url:
15
+ "image_0.png"
16
+
17
+ - text: 'living room - kitchen in the style of <s0><s1> with a open floor plan, featuring a coffee table, a couch, a chandelier, and a set of dining table'
18
+ output:
19
+ url:
20
+ "image_1.png"
21
+
22
+ - text: 'living room - kitchen in the style of <s0><s1> with a open floor plan, featuring a coffee table, a couch, a chandelier, and a set of dining table'
23
+ output:
24
+ url:
25
+ "image_2.png"
26
+
27
+ - text: 'living room - kitchen in the style of <s0><s1> with a open floor plan, featuring a coffee table, a couch, a chandelier, and a set of dining table'
28
+ output:
29
+ url:
30
+ "image_3.png"
31
+
32
+ base_model: runwayml/stable-diffusion-v1-5
33
+ instance_prompt: living room - kitchen in style of <s0><s1> with an open floor plan
34
+ license: openrail++
35
+ ---
36
+
37
+ # SD1.5 LoRA DreamBooth - htuannn/living-room-sd-1-5-32_100
38
+
39
+ <Gallery />
40
+
41
+ ## Model description
42
+
43
+ ### These are htuannn/living-room-sd-1-5-32_100 LoRA adaption weights for runwayml/stable-diffusion-v1-5.
44
+
45
+ ## Download model
46
+
47
+ ### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
48
+
49
+ - **LoRA**: download **[`living-room-sd-1-5-32_100.safetensors` here 💾](/htuannn/living-room-sd-1-5-32_100/blob/main/living-room-sd-1-5-32_100.safetensors)**.
50
+ - Place it on your `models/Lora` folder.
51
+ - On AUTOMATIC1111, load the LoRA by adding `<lora:living-room-sd-1-5-32_100:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
52
+ - *Embeddings*: download **[`living-room-sd-1-5-32_100_emb.safetensors` here 💾](/htuannn/living-room-sd-1-5-32_100/blob/main/living-room-sd-1-5-32_100_emb.safetensors)**.
53
+ - Place it on it on your `embeddings` folder
54
+ - Use it by adding `living-room-sd-1-5-32_100_emb` to your prompt. For example, `living room - kitchen in style of living-room-sd-1-5-32_100_emb with an open floor plan`
55
+ (you need both the LoRA and the embeddings as they were trained together for this LoRA)
56
+
57
+
58
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
59
+
60
+ ```py
61
+ from diffusers import AutoPipelineForText2Image
62
+ import torch
63
+ from huggingface_hub import hf_hub_download
64
+ from safetensors.torch import load_file
65
+
66
+ pipeline = AutoPipelineForText2Image.from_pretrained('runwayml/stable-diffusion-v1-5', torch_dtype=torch.float16).to('cuda')
67
+ pipeline.load_lora_weights('htuannn/living-room-sd-1-5-32_100', weight_name='pytorch_lora_weights.safetensors')
68
+ embedding_path = hf_hub_download(repo_id='htuannn/living-room-sd-1-5-32_100', filename='living-room-sd-1-5-32_100_emb.safetensors', repo_type="model")
69
+ state_dict = load_file(embedding_path)
70
+ pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
71
+
72
+ image = pipeline('living room - kitchen in the style of <s0><s1> with a open floor plan, featuring a coffee table, a couch, a chandelier, and a set of dining table').images[0]
73
+ ```
74
+
75
+ 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)
76
+
77
+ ## Trigger words
78
+
79
+ To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
80
+
81
+ to trigger concept `TOK` → use `<s0><s1>` in your prompt
82
+
83
+
84
+
85
+ ## Details
86
+ All [Files & versions](/htuannn/living-room-sd-1-5-32_100/tree/main).
87
+
88
+ 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).
89
+
90
+ LoRA for the text encoder was enabled. False.
91
+
92
+ Pivotal tuning was enabled: True.
93
+
94
+ Special VAE used for training: None.
95
+
image_0.png ADDED
image_1.png ADDED
image_2.png ADDED
image_3.png ADDED
living-room-sd-1-5-32_100.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72d19cc66a728b920c63b5a4e5c1fbf14d578471670172beea29d40cd3b4c19e
3
+ size 25986232
living-room-sd-1-5-32_100_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b6396b63b21770c9d1459a47133078d8c0a7b7fe3d0518ef624cd3ce4666eb9
3
+ size 3152
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07a2f7b9d5d2ad5357de98147586e27d47797f1015c3384fc3fa4a7f3d47f6c9
3
+ size 25966896