op74185 commited on
Commit
5626409
·
verified ·
1 Parent(s): 3123ec0

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,29 @@ 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-10.png filter=lfs diff=lfs merge=lfs -text
39
+ image-11.png filter=lfs diff=lfs merge=lfs -text
40
+ image-12.png filter=lfs diff=lfs merge=lfs -text
41
+ image-13.png filter=lfs diff=lfs merge=lfs -text
42
+ image-14.png filter=lfs diff=lfs merge=lfs -text
43
+ image-15.png filter=lfs diff=lfs merge=lfs -text
44
+ image-16.png filter=lfs diff=lfs merge=lfs -text
45
+ image-17.png filter=lfs diff=lfs merge=lfs -text
46
+ image-18.png filter=lfs diff=lfs merge=lfs -text
47
+ image-19.png filter=lfs diff=lfs merge=lfs -text
48
+ image-2.png filter=lfs diff=lfs merge=lfs -text
49
+ image-20.png filter=lfs diff=lfs merge=lfs -text
50
+ image-21.png filter=lfs diff=lfs merge=lfs -text
51
+ image-22.png filter=lfs diff=lfs merge=lfs -text
52
+ image-23.png filter=lfs diff=lfs merge=lfs -text
53
+ image-24.png filter=lfs diff=lfs merge=lfs -text
54
+ image-25.png filter=lfs diff=lfs merge=lfs -text
55
+ image-3.png filter=lfs diff=lfs merge=lfs -text
56
+ image-4.png filter=lfs diff=lfs merge=lfs -text
57
+ image-5.png filter=lfs diff=lfs merge=lfs -text
58
+ image-6.png filter=lfs diff=lfs merge=lfs -text
59
+ image-7.png filter=lfs diff=lfs merge=lfs -text
60
+ image-8.png filter=lfs diff=lfs merge=lfs -text
61
+ image-9.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - text: a girl walking down the street at night in the style of <s0><s1>
11
+ output:
12
+ url: image-0.png
13
+ - text: a painting of a man in boxing gear in the style of <s0><s1>
14
+ output:
15
+ url: image-1.png
16
+ - text: an old man in a field looking up in the style of <s0><s1>
17
+ output:
18
+ url: image-2.png
19
+ - text: a woman is holding up balloons in the air in the style of <s0><s1>
20
+ output:
21
+ url: image-3.png
22
+ - text: a painting of a person walking down a street in the fall in the style of <s0><s1>
23
+ output:
24
+ url: image-4.png
25
+ - text: anime girl sitting on a balcony with a potted plant in the style of <s0><s1>
26
+ output:
27
+ url: image-5.png
28
+ - text: a painting of a man in boxing gloves in the style of <s0><s1>
29
+ output:
30
+ url: image-6.png
31
+ - text: a drawing of a woman in a dress jumping in the air in the style of <s0><s1>
32
+ output:
33
+ url: image-7.png
34
+ - text: a drawing of a man walking down a street with a bunch of lights in the style
35
+ of <s0><s1>
36
+ output:
37
+ url: image-8.png
38
+ - text: a painting of a man walking on the beach in the style of <s0><s1>
39
+ output:
40
+ url: image-9.png
41
+ - text: a painting of people sitting in a park in the style of <s0><s1>
42
+ output:
43
+ url: image-10.png
44
+ - text: an illustration of a girl with blue hair in the style of <s0><s1>
45
+ output:
46
+ url: image-11.png
47
+ - text: a woman in a skirt and black boots is dancing in the style of <s0><s1>
48
+ output:
49
+ url: image-12.png
50
+ - text: a painting of a boy walking through the woods in the style of <s0><s1>
51
+ output:
52
+ url: image-13.png
53
+ - text: an old man with his eyes closed sitting in a chair in the style of <s0><s1>
54
+ output:
55
+ url: image-14.png
56
+ - text: a painting of a man walking in the city in the style of <s0><s1>
57
+ output:
58
+ url: image-15.png
59
+ - text: a painting of a man in boxing gloves in the style of <s0><s1>
60
+ output:
61
+ url: image-16.png
62
+ - text: a painting of a man in a kitchen cooking in the style of <s0><s1>
63
+ output:
64
+ url: image-17.png
65
+ - text: anime girl sitting on a window sill with a plant in the style of <s0><s1>
66
+ output:
67
+ url: image-18.png
68
+ - text: a drawing of a man cooking in a kitchen in the style of <s0><s1>
69
+ output:
70
+ url: image-19.png
71
+ - text: a painting of a boy running through the woods in the style of <s0><s1>
72
+ output:
73
+ url: image-20.png
74
+ - text: a painting of three people sitting under a tree in the style of <s0><s1>
75
+ output:
76
+ url: image-21.png
77
+ - text: a drawing of a young boy with brown eyes in the style of <s0><s1>
78
+ output:
79
+ url: image-22.png
80
+ - text: an old man sitting at a table with a book in the style of <s0><s1>
81
+ output:
82
+ url: image-23.png
83
+ - text: a drawing of a girl with blue eyes and black hair in the style of <s0><s1>
84
+ output:
85
+ url: image-24.png
86
+ - text: a drawing of a man walking on the beach in the style of <s0><s1>
87
+ output:
88
+ url: image-25.png
89
+ base_model: stabilityai/stable-diffusion-xl-base-1.0
90
+ instance_prompt: in the style of <s0><s1>
91
+ license: openrail++
92
+ ---
93
+
94
+ # SDXL LoRA DreamBooth - op74185/watercolor-illustration
95
+
96
+ <Gallery />
97
+
98
+ ## Model description
99
+
100
+ ### These are op74185/watercolor-illustration LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
101
+
102
+ ## Download model
103
+
104
+ ### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
105
+
106
+ - **LoRA**: download **[`watercolor-illustration.safetensors` here 💾](/op74185/watercolor-illustration/blob/main/watercolor-illustration.safetensors)**.
107
+ - Place it on your `models/Lora` folder.
108
+ - On AUTOMATIC1111, load the LoRA by adding `<lora:watercolor-illustration:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
109
+ - *Embeddings*: download **[`watercolor-illustration_emb.safetensors` here 💾](/op74185/watercolor-illustration/blob/main/watercolor-illustration_emb.safetensors)**.
110
+ - Place it on it on your `embeddings` folder
111
+ - Use it by adding `watercolor-illustration_emb` to your prompt. For example, `in the style of watercolor-illustration_emb`
112
+ (you need both the LoRA and the embeddings as they were trained together for this LoRA)
113
+
114
+
115
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
116
+
117
+ ```py
118
+ from diffusers import AutoPipelineForText2Image
119
+ import torch
120
+ from huggingface_hub import hf_hub_download
121
+ from safetensors.torch import load_file
122
+
123
+ pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
124
+ pipeline.load_lora_weights('op74185/watercolor-illustration', weight_name='pytorch_lora_weights.safetensors')
125
+ embedding_path = hf_hub_download(repo_id='op74185/watercolor-illustration', filename='watercolor-illustration_emb.safetensors' repo_type="model")
126
+ state_dict = load_file(embedding_path)
127
+ pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
128
+ pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
129
+
130
+ image = pipeline('in the style of <s0><s1>').images[0]
131
+ ```
132
+
133
+ 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)
134
+
135
+ ## Trigger words
136
+
137
+ To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
138
+
139
+ to trigger concept `TOK` → use `<s0><s1>` in your prompt
140
+
141
+
142
+
143
+ ## Details
144
+ All [Files & versions](/op74185/watercolor-illustration/tree/main).
145
+
146
+ 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).
147
+
148
+ LoRA for the text encoder was enabled. False.
149
+
150
+ Pivotal tuning was enabled: True.
151
+
152
+ Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
153
+
image-0.png ADDED

Git LFS Details

  • SHA256: 5a980b6629d0179d13c3b389a1872eb16f33d4ce66d676f4252e33b0e2790198
  • Pointer size: 132 Bytes
  • Size of remote file: 1.82 MB
image-1.png ADDED

Git LFS Details

  • SHA256: 2f0ecab3c9f22cd108e92a1079902f4bdaf3a84c2d284a5512a3a79002ce6bb1
  • Pointer size: 132 Bytes
  • Size of remote file: 1.55 MB
image-10.png ADDED

Git LFS Details

  • SHA256: cc8e422a892a144b75eea99e9a7682e238f2c613e64d3e70f616517116544b78
  • Pointer size: 132 Bytes
  • Size of remote file: 1.7 MB
image-11.png ADDED

Git LFS Details

  • SHA256: a84fe8c4adf6bdc2fe04423c656a419c5f42f2c716b1bc384e5c2cb097093fdd
  • Pointer size: 132 Bytes
  • Size of remote file: 1.75 MB
image-12.png ADDED

Git LFS Details

  • SHA256: d72d83f1ce1a3e89f0f21aac80436a40ff47b8af362ea1c238fbdafbaf839cc3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.65 MB
image-13.png ADDED

Git LFS Details

  • SHA256: b99ddfda6f754527136932d98c473604a0c859cc364364c43b1c57fe70b488df
  • Pointer size: 132 Bytes
  • Size of remote file: 1.56 MB
image-14.png ADDED

Git LFS Details

  • SHA256: 95bc96041c4181c26ee7f088d47186297015f0aafdb8037ca8bb3f26b9e41d7d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.71 MB
image-15.png ADDED

Git LFS Details

  • SHA256: 2116df42b1e07ade60a135886d7907004d3eb6e0937e6b936846d95729d14ca2
  • Pointer size: 132 Bytes
  • Size of remote file: 1.54 MB
image-16.png ADDED

Git LFS Details

  • SHA256: 175c1e71bd9c683b01ddbb368516229080ffd6cc09e824ad0142ea9bbc7b4efc
  • Pointer size: 132 Bytes
  • Size of remote file: 2.11 MB
image-17.png ADDED

Git LFS Details

  • SHA256: b9f6978888cd7881f6b86fc5099f5a3f8e2b6fec76a9489db5fd5a6656512315
  • Pointer size: 132 Bytes
  • Size of remote file: 1.47 MB
image-18.png ADDED

Git LFS Details

  • SHA256: c53d841a84a999ec0408ce3a78b5d3a9a61fe5fa69fdfd1f18821898041fb7cc
  • Pointer size: 132 Bytes
  • Size of remote file: 1.52 MB
image-19.png ADDED

Git LFS Details

  • SHA256: 0572a55e31cbf59635e209af0b0fff17dd8b1358868eb0c7c027f80225544b42
  • Pointer size: 132 Bytes
  • Size of remote file: 1.54 MB
image-2.png ADDED

Git LFS Details

  • SHA256: 77376f1b3296cc0c04f38ae8bc30c0f79f37eb6969d40f0a88a2d1906a175411
  • Pointer size: 132 Bytes
  • Size of remote file: 1.45 MB
image-20.png ADDED

Git LFS Details

  • SHA256: 7c7e6d14f4098bc71fc55f7e7a848c8e4ba8f60ab184a9a4f2dc4f6c662126d4
  • Pointer size: 132 Bytes
  • Size of remote file: 2.34 MB
image-21.png ADDED

Git LFS Details

  • SHA256: 8e2c349023ebe29dd00a4b88159672e550674f050372557f26047f123cec58d1
  • Pointer size: 132 Bytes
  • Size of remote file: 1.6 MB
image-22.png ADDED

Git LFS Details

  • SHA256: 5a6ab3b4942037f469d67018a3e5cea72dbfe4e0bf32d092d386c3820d879f92
  • Pointer size: 132 Bytes
  • Size of remote file: 1.58 MB
image-23.png ADDED

Git LFS Details

  • SHA256: 221ccd5cfccc21fcac7d372f144ce54875ed3403f7b5fc01587cddf2ea18d6ac
  • Pointer size: 132 Bytes
  • Size of remote file: 1.45 MB
image-24.png ADDED

Git LFS Details

  • SHA256: 8f4965a8a994ac340aecaf02452a7e12f68fd326a75badce699199cbb3faaafd
  • Pointer size: 132 Bytes
  • Size of remote file: 1.72 MB
image-25.png ADDED

Git LFS Details

  • SHA256: 019d9da7f189281b75932d46d3f5772e5f135e98ec0521839a3068520cc4df7f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.73 MB
image-3.png ADDED

Git LFS Details

  • SHA256: 0fa7e287ad5c17f4dc825def663200cc4b54ad8be08482b0ef25ff431e774489
  • Pointer size: 132 Bytes
  • Size of remote file: 1.9 MB
image-4.png ADDED

Git LFS Details

  • SHA256: 7948ab39d65bb9d47da1525029d7ebbcfdbd920dd4427142ded796163580d8a4
  • Pointer size: 132 Bytes
  • Size of remote file: 1.86 MB
image-5.png ADDED

Git LFS Details

  • SHA256: 41c87521dde0beefa6e95c4046d59a4115d522a9a514bb93f77ff0c1410a210f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.95 MB
image-6.png ADDED

Git LFS Details

  • SHA256: 39eacfdb3fa9b3f78c9c03148493b7f6d4639830bb85f09ffa041bce235778d9
  • Pointer size: 132 Bytes
  • Size of remote file: 2.06 MB
image-7.png ADDED

Git LFS Details

  • SHA256: d2f2585cc574bf4597f6bf4309f557d1769f0b9677b875d6ba09c0b57d51d1e8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.97 MB
image-8.png ADDED

Git LFS Details

  • SHA256: 348d97c8e99031aee42cb700d5b29ce765fd2be9f7f5bb25450ddb9068d5552f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.68 MB
image-9.png ADDED

Git LFS Details

  • SHA256: bb895389d7d7abe0938d23b930f8e1a86acd582a4e2838681f0fda0d9e653b1d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.47 MB
logs/dreambooth-lora-sd-xl/1719992519.2263849/events.out.tfevents.1719992519.r-op74185-autotrain-watercolor-illustration-jsny436h-8bdfa-m57r.194.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7854fa062922bc2e36943287e6c87254b3e24dea14eee24b76beea4fa40813ae
3
+ size 3586
logs/dreambooth-lora-sd-xl/1719992519.2277186/hparams.yml ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ adam_beta1: 0.9
2
+ adam_beta2: 0.999
3
+ adam_epsilon: 1.0e-08
4
+ adam_weight_decay: 0.0001
5
+ adam_weight_decay_text_encoder: null
6
+ allow_tf32: false
7
+ cache_dir: null
8
+ cache_latents: true
9
+ caption_column: prompt
10
+ center_crop: false
11
+ checkpointing_steps: 100000
12
+ checkpoints_total_limit: null
13
+ class_data_dir: null
14
+ class_prompt: null
15
+ crops_coords_top_left_h: 0
16
+ crops_coords_top_left_w: 0
17
+ dataloader_num_workers: 0
18
+ dataset_config_name: null
19
+ dataset_name: ./2288633d-b54f-42e3-aefb-be1c332dab54
20
+ enable_xformers_memory_efficient_attention: false
21
+ gradient_accumulation_steps: 1
22
+ gradient_checkpointing: true
23
+ hub_model_id: null
24
+ hub_token: null
25
+ image_column: image
26
+ instance_data_dir: null
27
+ instance_prompt: in the style of <s0><s1>
28
+ learning_rate: 1.0
29
+ local_rank: -1
30
+ logging_dir: logs
31
+ lr_num_cycles: 1
32
+ lr_power: 1.0
33
+ lr_scheduler: constant
34
+ lr_warmup_steps: 0
35
+ max_grad_norm: 1.0
36
+ max_train_steps: 1500
37
+ mixed_precision: bf16
38
+ noise_offset: 0
39
+ num_class_images: 100
40
+ num_new_tokens_per_abstraction: 2
41
+ num_train_epochs: 116
42
+ num_validation_images: 4
43
+ optimizer: prodigy
44
+ output_dir: watercolor-illustration
45
+ pretrained_model_name_or_path: stabilityai/stable-diffusion-xl-base-1.0
46
+ pretrained_vae_model_name_or_path: madebyollin/sdxl-vae-fp16-fix
47
+ prior_generation_precision: null
48
+ prior_loss_weight: 1.0
49
+ prodigy_beta3: null
50
+ prodigy_decouple: true
51
+ prodigy_safeguard_warmup: true
52
+ prodigy_use_bias_correction: true
53
+ push_to_hub: false
54
+ rank: 32
55
+ repeats: 1
56
+ report_to: tensorboard
57
+ resolution: 1024
58
+ resume_from_checkpoint: null
59
+ revision: null
60
+ sample_batch_size: 4
61
+ scale_lr: false
62
+ seed: 42
63
+ snr_gamma: null
64
+ text_encoder_lr: 1.0
65
+ token_abstraction: TOK
66
+ train_batch_size: 2
67
+ train_text_encoder: false
68
+ train_text_encoder_frac: 1.0
69
+ train_text_encoder_ti: true
70
+ train_text_encoder_ti_frac: 0.5
71
+ use_8bit_adam: false
72
+ validation_epochs: 50
73
+ validation_prompt: null
74
+ variant: null
75
+ with_prior_preservation: false
logs/dreambooth-lora-sd-xl/events.out.tfevents.1719992519.r-op74185-autotrain-watercolor-illustration-jsny436h-8bdfa-m57r.194.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a073f0ae313caf938c194b2d3172068fe097f937276a145b9c5e4e1f359ed73
3
+ size 125834
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4a2b2c68529b771b3cf8f339928cc3dac92d3813eb4109dc06c7ed1aec0f55a
3
+ size 185963768
watercolor-illustration.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2ddf5581f0a28fd01de7d3e377acfe615d6a51fd7f4acfed455489ec22bb2a9
3
+ size 186046568
watercolor-illustration_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:973945314caf05b985d8565ee10c57c87783e70bac32e0d4d2fd008be2d4f739
3
+ size 16536