jhiggs commited on
Commit
fad3c70
·
1 Parent(s): 31694b8

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,28 @@ 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-3.png filter=lfs diff=lfs merge=lfs -text
55
+ image-4.png filter=lfs diff=lfs merge=lfs -text
56
+ image-5.png filter=lfs diff=lfs merge=lfs -text
57
+ image-6.png filter=lfs diff=lfs merge=lfs -text
58
+ image-7.png filter=lfs diff=lfs merge=lfs -text
59
+ image-8.png filter=lfs diff=lfs merge=lfs -text
60
+ image-9.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 photo of <s0><s1> itysl a man in a yellow shirt and black jacket
11
+ output:
12
+ url: image-0.png
13
+ - text: A photo of <s0><s1> itysl a man wearing a black jacket
14
+ output:
15
+ url: image-1.png
16
+ - text: A photo of <s0><s1> itysl a man in a red suit and tie is standing in front
17
+ of a colorful background
18
+ output:
19
+ url: image-2.png
20
+ - text: A photo of <s0><s1> itysl a man with a white shirt and a black jacket
21
+ output:
22
+ url: image-3.png
23
+ - text: A photo of <s0><s1> itysl a man in a blue shirt sitting at a desk
24
+ output:
25
+ url: image-4.png
26
+ - text: A photo of <s0><s1> itysl a man with a tie on
27
+ output:
28
+ url: image-5.png
29
+ - text: A photo of <s0><s1> itysl a man with a mustache
30
+ output:
31
+ url: image-6.png
32
+ - text: A photo of <s0><s1> itysl a man in a checkered shirt holding a red ball
33
+ output:
34
+ url: image-7.png
35
+ - text: A photo of <s0><s1> itysl a man holding a box of wine in front of him
36
+ output:
37
+ url: image-8.png
38
+ - text: A photo of <s0><s1> itysl a man sitting at a desk
39
+ output:
40
+ url: image-9.png
41
+ - text: A photo of <s0><s1> itysl a man sitting at a desk
42
+ output:
43
+ url: image-10.png
44
+ - text: A photo of <s0><s1> itysl a man with a blue shirt
45
+ output:
46
+ url: image-11.png
47
+ - text: A photo of <s0><s1> itysl a man wearing a white shirt
48
+ output:
49
+ url: image-12.png
50
+ - text: A photo of <s0><s1> itysl a man with a smile on his face
51
+ output:
52
+ url: image-13.png
53
+ - text: A photo of <s0><s1> itysl a man in a plaid shirt standing in front of a wall
54
+ output:
55
+ url: image-14.png
56
+ - text: A photo of <s0><s1> itysl a man holding his head with both hands
57
+ output:
58
+ url: image-15.png
59
+ - text: A photo of <s0><s1> itysl a man with a sad face looking at something
60
+ output:
61
+ url: image-16.png
62
+ - text: A photo of <s0><s1> itysl a man in a suit and tie making a gesture
63
+ output:
64
+ url: image-17.png
65
+ - text: A photo of <s0><s1> itysl a man in a car
66
+ output:
67
+ url: image-18.png
68
+ - text: A photo of <s0><s1> itysl a man in a black jacket and white shirt standing
69
+ in an office
70
+ output:
71
+ url: image-19.png
72
+ - text: A photo of <s0><s1> itysl a man in a black jacket and blue shirt smiling
73
+ output:
74
+ url: image-20.png
75
+ - text: A photo of <s0><s1> itysl a man in glasses and a polo shirt
76
+ output:
77
+ url: image-21.png
78
+ - text: A photo of <s0><s1> itysl a man in a jacket and a tie
79
+ output:
80
+ url: image-22.png
81
+ - text: A photo of <s0><s1> itysl a man in a suit standing in front of a window
82
+ output:
83
+ url: image-23.png
84
+ - text: A photo of <s0><s1> itysl a man holding a pizza
85
+ output:
86
+ url: image-24.png
87
+ base_model: stabilityai/stable-diffusion-xl-base-1.0
88
+ instance_prompt: A photo of <s0><s1> itysl
89
+ license: openrail++
90
+ ---
91
+
92
+ # SDXL LoRA DreamBooth - jhiggs/tim-robinson
93
+
94
+ <Gallery />
95
+
96
+ ## Model description
97
+
98
+ ### These are jhiggs/tim-robinson LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
99
+
100
+ ## Download model
101
+
102
+ ### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
103
+
104
+ - **LoRA**: download **[`tim-robinson.safetensors` here 💾](/jhiggs/tim-robinson/blob/main/tim-robinson.safetensors)**.
105
+ - Place it on your `models/Lora` folder.
106
+ - On AUTOMATIC1111, load the LoRA by adding `<lora:tim-robinson:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
107
+ - *Embeddings*: download **[`tim-robinson_emb.safetensors` here 💾](/jhiggs/tim-robinson/blob/main/tim-robinson_emb.safetensors)**.
108
+ - Place it on it on your `embeddings` folder
109
+ - Use it by adding `tim-robinson_emb` to your prompt. For example, `A photo of tim-robinson_emb itysl`
110
+ (you need both the LoRA and the embeddings as they were trained together for this LoRA)
111
+
112
+
113
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
114
+
115
+ ```py
116
+ from diffusers import AutoPipelineForText2Image
117
+ import torch
118
+ from huggingface_hub import hf_hub_download
119
+ from safetensors.torch import load_file
120
+
121
+ pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
122
+ pipeline.load_lora_weights('jhiggs/tim-robinson', weight_name='pytorch_lora_weights.safetensors')
123
+ embedding_path = hf_hub_download(repo_id='jhiggs/tim-robinson', filename='tim-robinson_emb.safetensors' repo_type="model")
124
+ state_dict = load_file(embedding_path)
125
+ pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
126
+ pipeline.load_textual_inversion(state_dict["clip_g"], token=["<s0>", "<s1>"], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
127
+
128
+ image = pipeline('A photo of <s0><s1> itysl').images[0]
129
+ ```
130
+
131
+ 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)
132
+
133
+ ## Trigger words
134
+
135
+ To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
136
+
137
+ to trigger concept `TOK` → use `<s0><s1>` in your prompt
138
+
139
+
140
+
141
+ ## Details
142
+ All [Files & versions](/jhiggs/tim-robinson/tree/main).
143
+
144
+ 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).
145
+
146
+ LoRA for the text encoder was enabled. False.
147
+
148
+ Pivotal tuning was enabled: True.
149
+
150
+ Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
151
+
image-0.png ADDED

Git LFS Details

  • SHA256: c51a1644e0a27bc5b3a93cdecd94e0403bcde6d54fee2e843a59adc52442b680
  • Pointer size: 132 Bytes
  • Size of remote file: 1.19 MB
image-1.png ADDED

Git LFS Details

  • SHA256: 7bfda9b8877c16f0e29b0e19cb0bd5c08b19e89b09e774143fa9830182e86bb7
  • Pointer size: 132 Bytes
  • Size of remote file: 1.19 MB
image-10.png ADDED

Git LFS Details

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

Git LFS Details

  • SHA256: 46e66d392d07d9a080ab2ae007ffbf66aa0b0c0af4bfa6f29ec184209c897fac
  • Pointer size: 132 Bytes
  • Size of remote file: 1.14 MB
image-12.png ADDED

Git LFS Details

  • SHA256: 3273eecae4ddcd3a076301d573e5da3450037ab632ce32a1445c97b85bf73c1c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.25 MB
image-13.png ADDED

Git LFS Details

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

Git LFS Details

  • SHA256: 7195e50a343aa2924f40a99b07d01cd88e00d81a155ee0a85f59cb81f9f8dc71
  • Pointer size: 132 Bytes
  • Size of remote file: 1.07 MB
image-15.png ADDED

Git LFS Details

  • SHA256: b65cf8301c0d1124768ac732aaec736c61ac8a14e4ac0ba1d72c6ccdd92d80fb
  • Pointer size: 132 Bytes
  • Size of remote file: 1.09 MB
image-16.png ADDED

Git LFS Details

  • SHA256: ae6bb835436d24ff587832e37a82a58b84866e454c904ebe4f8d69b419ec659a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.18 MB
image-17.png ADDED

Git LFS Details

  • SHA256: 07ca34ee03b902b67396eb9444da4943c6d18d76bfa7764f3f70a363c0e0a0d4
  • Pointer size: 132 Bytes
  • Size of remote file: 1.17 MB
image-18.png ADDED

Git LFS Details

  • SHA256: 1a7d00164df7ace7c098e1513dd2fd5e6204fb06fc0b4c6765e6e13c3b948abf
  • Pointer size: 132 Bytes
  • Size of remote file: 1.19 MB
image-19.png ADDED

Git LFS Details

  • SHA256: b45dd3b526b2e5098e0035e823611fbe6d4a884a1567f52e2f339c8cd4f09a32
  • Pointer size: 132 Bytes
  • Size of remote file: 1.11 MB
image-2.png ADDED

Git LFS Details

  • SHA256: 4612666041a5410f1c20697104aafdab81f69de09e62a2c3198e5d268d3fdf7b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.07 MB
image-20.png ADDED

Git LFS Details

  • SHA256: f9c8c1a7aff154468095f3b160d947f63f2f04b8439e5421c40010f1114f65df
  • Pointer size: 132 Bytes
  • Size of remote file: 1.13 MB
image-21.png ADDED

Git LFS Details

  • SHA256: 4565d6555a8197dc3a89e0731a430e94907ad39a64fe61834aaa58572d003a4d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.11 MB
image-22.png ADDED

Git LFS Details

  • SHA256: 22ac7b452a3f06406a6c88a60b49a047af9e3d318519b49b2669e316be070f1e
  • Pointer size: 132 Bytes
  • Size of remote file: 1.06 MB
image-23.png ADDED

Git LFS Details

  • SHA256: 999013f667cbb7ef23b0dc35c3619a9922d4c892c33bd59430b26a1665bcc952
  • Pointer size: 132 Bytes
  • Size of remote file: 1.06 MB
image-24.png ADDED

Git LFS Details

  • SHA256: 373b90abb4b102f51f10de2ba26bf68690dfda45a8a773b845415c56906a65f7
  • Pointer size: 132 Bytes
  • Size of remote file: 1.24 MB
image-3.png ADDED

Git LFS Details

  • SHA256: 33825d0d43a77f77c092d2d77e14c90768bef843a525dcce13dc981738e6d4f0
  • Pointer size: 132 Bytes
  • Size of remote file: 1.1 MB
image-4.png ADDED

Git LFS Details

  • SHA256: 278cede5b00ebb808d20c110cbf89b5dd4729ca54aa6eb817cc786a2c5fb6638
  • Pointer size: 132 Bytes
  • Size of remote file: 1.09 MB
image-5.png ADDED

Git LFS Details

  • SHA256: 962c27a5a973c5dbde022444e77e413a2662bc4ada2280a520f546894c82d5c4
  • Pointer size: 132 Bytes
  • Size of remote file: 1.28 MB
image-6.png ADDED

Git LFS Details

  • SHA256: 1f1aeae9394c3e29e54182bb03a01bd39bc73bd5d895bab059538e10dcdd4319
  • Pointer size: 132 Bytes
  • Size of remote file: 1.21 MB
image-7.png ADDED

Git LFS Details

  • SHA256: 79e9f2efde35c48366a27d31b1729d900bc470778e9eda59e4786909f5b803cf
  • Pointer size: 132 Bytes
  • Size of remote file: 1.19 MB
image-8.png ADDED

Git LFS Details

  • SHA256: fac46f705da8f79074b88993e989100066de1cdd549820e310e3a46e1be80d1e
  • Pointer size: 132 Bytes
  • Size of remote file: 1.22 MB
image-9.png ADDED

Git LFS Details

  • SHA256: d1bcbd7743a7311caac171dba4931d96c929f3d06af44a4456bc04c3ddc47ffc
  • Pointer size: 132 Bytes
  • Size of remote file: 1.06 MB
logs/dreambooth-lora-sd-xl/1704316266.2757242/events.out.tfevents.1704316266.r-jhiggs-autotrain-tim-robinson-i90f0b9o-973a3-7k6df.214.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:756fa0e5acd4eb1a863fc4ccc4a7b64c35784ac454dea7dfa043f65d51255c6f
3
+ size 3666
logs/dreambooth-lora-sd-xl/1704316266.2782624/hparams.yml ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 235f67b6-e03f-42f4-8568-7e59fb45a24b
14
+ class_prompt: a photo of a person
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: ./b6e4b071-732f-4f15-9a84-92fcb5241075
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: A photo of <s0><s1> itysl
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
+ num_class_images: 150
39
+ num_new_tokens_per_abstraction: 2
40
+ num_train_epochs: 20
41
+ num_validation_images: 4
42
+ optimizer: prodigy
43
+ output_dir: tim-robinson
44
+ pretrained_model_name_or_path: stabilityai/stable-diffusion-xl-base-1.0
45
+ pretrained_vae_model_name_or_path: madebyollin/sdxl-vae-fp16-fix
46
+ prior_generation_precision: null
47
+ prior_loss_weight: 1.0
48
+ prodigy_beta3: null
49
+ prodigy_decouple: true
50
+ prodigy_safeguard_warmup: true
51
+ prodigy_use_bias_correction: true
52
+ push_to_hub: false
53
+ rank: 32
54
+ repeats: 1
55
+ report_to: tensorboard
56
+ resolution: 1024
57
+ resume_from_checkpoint: null
58
+ revision: null
59
+ sample_batch_size: 4
60
+ scale_lr: false
61
+ seed: 42
62
+ snr_gamma: null
63
+ text_encoder_lr: 1.0
64
+ token_abstraction: TOK
65
+ train_batch_size: 2
66
+ train_text_encoder: false
67
+ train_text_encoder_frac: 1.0
68
+ train_text_encoder_ti: true
69
+ train_text_encoder_ti_frac: 0.5
70
+ use_8bit_adam: false
71
+ validation_epochs: 50
72
+ validation_prompt: null
73
+ variant: null
74
+ with_prior_preservation: true
logs/dreambooth-lora-sd-xl/events.out.tfevents.1704316266.r-jhiggs-autotrain-tim-robinson-i90f0b9o-973a3-7k6df.214.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22b4a4fd3c467a76a0a6668845e83c20fcc083f0b322fd241b1ef6cd88e3659e
3
+ size 125834
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55abd75a9120a5283125390055ef72d28b9f8129b866c28c0db6247c8bf1dd6e
3
+ size 185963768
tim-robinson.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c17a73c6acad0b621a91d92dead1e03b73760318b57ed12e6aa905b7bb29ab3
3
+ size 186046568
tim-robinson_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4b6903c7e01ef2894e322ac85bc4c4e371e2cedaacfa1f9d84dc9c3c644bd15
3
+ size 8344