armhebb commited on
Commit
69f0c5f
·
verified ·
1 Parent(s): 9d37528

End of training

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - stable-diffusion-xl
4
+ - stable-diffusion-xl-diffusers
5
+ - text-to-image
6
+ - diffusers
7
+ - lora
8
+ - template:sd-lora
9
+ widget:
10
+
11
+ - text: 'a photo in the style of The dataset has already been processed with this model.'
12
+
13
+ instance_prompt: a photo in the style of The dataset has already been processed with this model.
14
+ license: openrail++
15
+ ---
16
+
17
+ # SDXL LoRA DreamBooth - armhebb/65995e622d50edfb3ead9268
18
+
19
+ <Gallery />
20
+
21
+ ## Model description
22
+
23
+ ### These are armhebb/65995e622d50edfb3ead9268 LoRA adaption weights.
24
+
25
+ ## Download model
26
+
27
+ ### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
28
+
29
+ - **LoRA**: download **[`/kohl_s_sonoma__checkpoints.safetensors` here 💾](/armhebb/65995e622d50edfb3ead9268/blob/main//kohl_s_sonoma__checkpoints.safetensors)**.
30
+ - Place it on your `models/Lora` folder.
31
+ - On AUTOMATIC1111, load the LoRA by adding `<lora:/kohl_s_sonoma__checkpoints:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
32
+ - *Embeddings*: download **[`/kohl_s_sonoma__checkpoints_emb.safetensors` here 💾](/armhebb/65995e622d50edfb3ead9268/blob/main//kohl_s_sonoma__checkpoints_emb.safetensors)**.
33
+ - Place it on it on your `embeddings` folder
34
+ - Use it by adding `/kohl_s_sonoma__checkpoints_emb` to your prompt. For example, `a photo in the style of The dataset has already been processed with this model.`
35
+ (you need both the LoRA and the embeddings as they were trained together for this LoRA)
36
+
37
+
38
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
39
+
40
+ ```py
41
+ from diffusers import AutoPipelineForText2Image
42
+ import torch
43
+ from huggingface_hub import hf_hub_download
44
+ from safetensors.torch import load_file
45
+
46
+ pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
47
+ pipeline.load_lora_weights('armhebb/65995e622d50edfb3ead9268', weight_name='pytorch_lora_weights.safetensors')
48
+ embedding_path = hf_hub_download(repo_id='armhebb/65995e622d50edfb3ead9268', filename='/kohl_s_sonoma__checkpoints_emb.safetensors' repo_type="model")
49
+ state_dict = load_file(embedding_path)
50
+ pipeline.load_textual_inversion(state_dict["clip_l"], token=[], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
51
+ pipeline.load_textual_inversion(state_dict["clip_g"], token=[], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
52
+
53
+ image = pipeline('a photo in the style of The dataset has already been processed with this model.').images[0]
54
+ ```
55
+
56
+ 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)
57
+
58
+ ## Trigger words
59
+
60
+ To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
61
+
62
+ to trigger concept `Thedatasethasalreadybeenprocessedwiththismodel.` → use `<s0>` in your prompt
63
+
64
+
65
+
66
+ ## Details
67
+ All [Files & versions](/armhebb/65995e622d50edfb3ead9268/tree/main).
68
+
69
+ The weights were trained using [🧨 diffusers Advanced Dreambooth Training Script](https://github.com/huggingface/diffusers/blob/main/examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py).
70
+
71
+ LoRA for the text encoder was enabled. False.
72
+
73
+ Pivotal tuning was enabled: True.
74
+
75
+ Special VAE used for training: None.
76
+
kohl_s_sonoma__checkpoints.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b90ba4de4c2a0d89809f3a4c5aeacbd2b28b4dd0adb14de24ea69a9a0e3a4d69
3
+ size 186046568
kohl_s_sonoma__checkpoints_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f323306f9e3e1af74f180c92b59de077760a009ced3a5e118fabfeac34926ba
3
+ size 4240
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cccea99b301adec15f7dffb93878cf6c44ff80e26e4129d972c128903b3a684e
3
+ size 185963768