dataautogpt3 commited on
Commit
0563da6
1 Parent(s): cc73b95

Upload folder using huggingface_hub

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

Git LFS Details

  • SHA256: 466eed3f193d5f06879585ae1bd4cdf0c7c445b938e0c80d39c42f757b54c49b
  • Pointer size: 132 Bytes
  • Size of remote file: 2.28 MB
image-1.png ADDED

Git LFS Details

  • SHA256: ccaa88c115241b496fd395bf1f878251eab6562d981a388b6c0887fa45f6c7f4
  • Pointer size: 132 Bytes
  • Size of remote file: 2.38 MB
image-10.png ADDED

Git LFS Details

  • SHA256: 72ed3e60c119744bbefc654b594251e881bdd57f421773c897b49d3651a6a66c
  • Pointer size: 132 Bytes
  • Size of remote file: 2.39 MB
image-11.png ADDED

Git LFS Details

  • SHA256: 3f8659835cf54b91dce2b9cba9a11201877d32a699d4694bfdc298648b5bc0c5
  • Pointer size: 132 Bytes
  • Size of remote file: 2.2 MB
image-12.png ADDED

Git LFS Details

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

Git LFS Details

  • SHA256: 9d3d51f97532f18352315de3321594f9cd9fa647a4fa674fb4811c0ab6e46654
  • Pointer size: 132 Bytes
  • Size of remote file: 2.38 MB
image-14.png ADDED

Git LFS Details

  • SHA256: 5afcda36f1cdcaed2a047516a993e5825537a70b84ab48a9ef80b754ada03ab7
  • Pointer size: 132 Bytes
  • Size of remote file: 2.26 MB
image-15.png ADDED

Git LFS Details

  • SHA256: 067c0f5861a6913486f2d3adab09bd94917e28bb972bff64aaf7733d0affb8a2
  • Pointer size: 132 Bytes
  • Size of remote file: 2.22 MB
image-16.png ADDED

Git LFS Details

  • SHA256: 05a84162677a5f6e7d7caef9214065b48825e9ec3028788f480015d01b7e448a
  • Pointer size: 132 Bytes
  • Size of remote file: 2.25 MB
image-17.png ADDED

Git LFS Details

  • SHA256: 9d6dc5d6409459d75f8780fba722063083192226ec18f2e376786becff4eacf3
  • Pointer size: 132 Bytes
  • Size of remote file: 2.14 MB
image-18.png ADDED

Git LFS Details

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

Git LFS Details

  • SHA256: 71e4fd72256feb7c9fd42d36e7266b6862955b833809618340318a2c27f1b6d0
  • Pointer size: 132 Bytes
  • Size of remote file: 2.24 MB
image-2.png ADDED

Git LFS Details

  • SHA256: dd9cb0af374814e8ef9b2085aa1e9cc43ae13ed4aadf8b33e85b6229d57efc79
  • Pointer size: 132 Bytes
  • Size of remote file: 2.11 MB
image-3.png ADDED

Git LFS Details

  • SHA256: a7a6b4c53f40f34d9531624b1cfefedb18064708b02633f3503314a7bcce6fea
  • Pointer size: 132 Bytes
  • Size of remote file: 2.14 MB
image-4.png ADDED

Git LFS Details

  • SHA256: 243e84b751403ce3495588e7e598958002726afe567594b28a15c3ee097f63d4
  • Pointer size: 132 Bytes
  • Size of remote file: 2.35 MB
image-5.png ADDED

Git LFS Details

  • SHA256: 5c451104e52756a2530b6cf6bf0fdfc7afb5113ee1e7245aaa70697e9a54a58c
  • Pointer size: 132 Bytes
  • Size of remote file: 2.12 MB
image-6.png ADDED

Git LFS Details

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

Git LFS Details

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

Git LFS Details

  • SHA256: 43dd39f801981888769e86d52bc7b4aab87c54113b55c6d1e23dc3656cf551c8
  • Pointer size: 132 Bytes
  • Size of remote file: 2.22 MB
image-9.png ADDED

Git LFS Details

  • SHA256: 966662a416fe6ab492c11333518c6d583bb90d6fa8b489f9926af47ebdc4e8a7
  • Pointer size: 132 Bytes
  • Size of remote file: 2.14 MB
logs/dreambooth-lora-sd-xl/1704498234.9543874/events.out.tfevents.1704498234.r-dataautogpt3-autotrain-synthetic-anime-9sjz6ijz-ae431-gp7kv.214.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fafb0182c915fdcb584e8b24f7528ce32020d08b265f9564f4aba9334e70f102
3
+ size 3533
logs/dreambooth-lora-sd-xl/1704498234.9560366/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: 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: ./adba7a98-039c-4d86-9f16-1657bd77faec
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
+ num_class_images: 100
39
+ num_new_tokens_per_abstraction: 2
40
+ num_train_epochs: 75
41
+ num_validation_images: 4
42
+ optimizer: prodigy
43
+ output_dir: synthetic-anime
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: 2
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: false
logs/dreambooth-lora-sd-xl/events.out.tfevents.1704498234.r-dataautogpt3-autotrain-synthetic-anime-9sjz6ijz-ae431-gp7kv.214.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4008bc9cd54d93943d9b74ebfae085fef2f4750299e0977755faa281c9522ca4
3
+ size 125834
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eba89b74b405ef627b9edc070cbea031dc45adc647be0fca10c5c3b279933254
3
+ size 185963768
synthetic-anime.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e8d9cdf03f08037b3ed36aabba7056a99ab3ac841b200c04d00b15fba5b8dc3
3
+ size 186046568
synthetic-anime_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4b6903c7e01ef2894e322ac85bc4c4e371e2cedaacfa1f9d84dc9c3c644bd15
3
+ size 8344