rexoscare commited on
Commit
39999ab
1 Parent(s): 218fc27

End of training

Browse files
.gitattributes CHANGED
@@ -33,3 +33,7 @@ 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_1.png filter=lfs diff=lfs merge=lfs -text
38
+ image_2.png filter=lfs diff=lfs merge=lfs -text
39
+ image_3.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - stable-diffusion-xl
4
+ - stable-diffusion-xl-diffusers
5
+ - diffusers-training
6
+ - text-to-image
7
+ - diffusers
8
+ - lora
9
+ - template:sd-lora
10
+ widget:
11
+
12
+ - text: 'a painting of a man and a woman sitting, in the style of <s0><s1>'
13
+ output:
14
+ url:
15
+ "image_0.png"
16
+
17
+ - text: 'a painting of a man and a woman sitting, in the style of <s0><s1>'
18
+ output:
19
+ url:
20
+ "image_1.png"
21
+
22
+ - text: 'a painting of a man and a woman sitting, in the style of <s0><s1>'
23
+ output:
24
+ url:
25
+ "image_2.png"
26
+
27
+ - text: 'a painting of a man and a woman sitting, in the style of <s0><s1>'
28
+ output:
29
+ url:
30
+ "image_3.png"
31
+
32
+ base_model: stabilityai/stable-diffusion-xl-base-1.0
33
+ instance_prompt: painting in the style of <s0><s1>
34
+ license: openrail++
35
+ ---
36
+
37
+ # SDXL LoRA DreamBooth - rexoscare/bengali-pattachitra-paintings-art-model
38
+
39
+ <Gallery />
40
+
41
+ ## Model description
42
+
43
+ ### These are rexoscare/bengali-pattachitra-paintings-art-model LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
44
+
45
+ ## Download model
46
+
47
+ ### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
48
+
49
+ - **LoRA**: download **[`bengali-pattachitra-paintings-art-model.safetensors` here 💾](/rexoscare/bengali-pattachitra-paintings-art-model/blob/main/bengali-pattachitra-paintings-art-model.safetensors)**.
50
+ - Place it on your `models/Lora` folder.
51
+ - On AUTOMATIC1111, load the LoRA by adding `<lora:bengali-pattachitra-paintings-art-model:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
52
+ - *Embeddings*: download **[`bengali-pattachitra-paintings-art-model_emb.safetensors` here 💾](/rexoscare/bengali-pattachitra-paintings-art-model/blob/main/bengali-pattachitra-paintings-art-model_emb.safetensors)**.
53
+ - Place it on it on your `embeddings` folder
54
+ - Use it by adding `bengali-pattachitra-paintings-art-model_emb` to your prompt. For example, `painting in the style of bengali-pattachitra-paintings-art-model_emb`
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('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
67
+ pipeline.load_lora_weights('rexoscare/bengali-pattachitra-paintings-art-model', weight_name='pytorch_lora_weights.safetensors')
68
+ embedding_path = hf_hub_download(repo_id='rexoscare/bengali-pattachitra-paintings-art-model', filename='bengali-pattachitra-paintings-art-model_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
+ pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
72
+
73
+ image = pipeline('a painting of a man and a woman sitting, in the style of <s0><s1>').images[0]
74
+ ```
75
+
76
+ 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)
77
+
78
+ ## Trigger words
79
+
80
+ To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
81
+
82
+ to trigger concept `TOK` → use `<s0><s1>` in your prompt
83
+
84
+
85
+
86
+ ## Details
87
+ All [Files & versions](/rexoscare/bengali-pattachitra-paintings-art-model/tree/main).
88
+
89
+ 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).
90
+
91
+ LoRA for the text encoder was enabled. False.
92
+
93
+ Pivotal tuning was enabled: True.
94
+
95
+ Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
96
+
bengali-pattachitra-paintings-art-model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a784e8ff498b2e2b22b804fc8e7b3145eccee341bc342f028e2323f19d10843a
3
+ size 139597504
bengali-pattachitra-paintings-art-model_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2984b0971aff7b39247f14f65ddd2c8bda19df243235e8f1ef91858a5c3f9f5
3
+ size 16536
checkpoint-2000/bengali-pattachitra-paintings-art-model_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2984b0971aff7b39247f14f65ddd2c8bda19df243235e8f1ef91858a5c3f9f5
3
+ size 16536
checkpoint-2000/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7be76e3757a225718a52a5437314e039c60eec9613b4662169a930a24acfe534
3
+ size 1899073498
checkpoint-2000/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59f73ee9b03e8de819f4815950f114df6f72e3d46dc727051447865ce2add798
3
+ size 69842016
checkpoint-2000/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9606d1cd1cc4210e68c17e19945e82ed3470951548aedc2a9b9cffc89adbaf5
3
+ size 14280
checkpoint-2000/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22dbf40978352fc68dc380c1bb84d309ac1fe1989fe5819be6b1e3309ded4c83
3
+ size 1064
image_0.png ADDED

Git LFS Details

  • SHA256: e49065e39bbccbbf5cb0e13f325d2d2643998d835c9ebefa91b3e013c78e1078
  • Pointer size: 132 Bytes
  • Size of remote file: 1.65 MB
image_1.png ADDED

Git LFS Details

  • SHA256: 5bedf9260c2b1e6b16e3f44da745c61f6a0e5dade669de7e4f86b604a8042eaf
  • Pointer size: 132 Bytes
  • Size of remote file: 1.7 MB
image_2.png ADDED

Git LFS Details

  • SHA256: 1c28f0800e77f39541fd4e558dd2d3fb7f381895a456d22014f4eb7f10d2c4f8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.52 MB
image_3.png ADDED

Git LFS Details

  • SHA256: bb0870252b412b515a5055fad23fc7a7428b7b3e9290543af86c08341c6c8eda
  • Pointer size: 132 Bytes
  • Size of remote file: 1.58 MB
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78ef9fb1da57bdff10e63df98233553f79c8cf1548d247e9f993f0cdd86b98ce
3
+ size 139514704