Kvisten commited on
Commit
dabc357
·
verified ·
1 Parent(s): 42a4776

End of training

Browse files
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: stabilityai/stable-diffusion-3-medium-diffusers
3
+ library_name: diffusers
4
+ license: openrail++
5
+ tags:
6
+ - text-to-image
7
+ - diffusers-training
8
+ - diffusers
9
+ - lora
10
+ - sd3
11
+ - sd3-diffusers
12
+ - template:sd-lora
13
+ instance_prompt: a photo of sks dog
14
+ widget: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the training script had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+
21
+ # SD3 DreamBooth LoRA - Kvisten/trained-sd3-lora
22
+
23
+ <Gallery />
24
+
25
+ ## Model description
26
+
27
+ These are Kvisten/trained-sd3-lora DreamBooth LoRA weights for stabilityai/stable-diffusion-3-medium-diffusers.
28
+
29
+ The weights were trained using [DreamBooth](https://dreambooth.github.io/) with the [SD3 diffusers trainer](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/README_sd3.md).
30
+
31
+ Was LoRA for the text encoder enabled? False.
32
+
33
+ ## Trigger words
34
+
35
+ You should use `a photo of sks dog` to trigger the image generation.
36
+
37
+ ## Download model
38
+
39
+ [Download the *.safetensors LoRA](Kvisten/trained-sd3-lora/tree/main) in the Files & versions tab.
40
+
41
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
42
+
43
+ ```py
44
+ from diffusers import AutoPipelineForText2Image
45
+ import torch
46
+ pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-3-medium-diffusers', torch_dtype=torch.float16).to('cuda')
47
+ pipeline.load_lora_weights('Kvisten/trained-sd3-lora', weight_name='pytorch_lora_weights.safetensors')
48
+ image = pipeline('a photo of sks dog').images[0]
49
+ ```
50
+
51
+ ### Use it with UIs such as AUTOMATIC1111, Comfy UI, SD.Next, Invoke
52
+
53
+ - **LoRA**: download **[`diffusers_lora_weights.safetensors` here 💾](/Kvisten/trained-sd3-lora/blob/main/diffusers_lora_weights.safetensors)**.
54
+ - Rename it and place it on your `models/Lora` folder.
55
+ - On AUTOMATIC1111, load the LoRA by adding `<lora:your_new_name:1>` to your prompt. On ComfyUI just [load it as a regular LoRA](https://comfyanonymous.github.io/ComfyUI_examples/lora/).
56
+
57
+ 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)
58
+
59
+ ## License
60
+
61
+ Please adhere to the licensing terms as described [here](https://huggingface.co/stabilityai/stable-diffusion-3-medium/blob/main/LICENSE).
62
+
63
+
64
+ ## Intended uses & limitations
65
+
66
+ #### How to use
67
+
68
+ ```python
69
+ # TODO: add an example code snippet for running this diffusion pipeline
70
+ ```
71
+
72
+ #### Limitations and bias
73
+
74
+ [TODO: provide examples of latent issues and potential remediations]
75
+
76
+ ## Training details
77
+
78
+ [TODO: describe the data used to train the model]
checkpoint-500/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8c839ad5b3c890e2963788c9a0a7e8d2fbfa1ca439a0f0bedf7e39a0716922b
3
+ size 2584570
checkpoint-500/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:691f2bce8842d8f13486e08cc89f8d1986fe272cad136becf14d598c4ca4e850
3
+ size 4742848
checkpoint-500/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:523b3ae9351859f20df3f431c6ebbe4757b85d4793afd5f324de9853a134aa73
3
+ size 14344
checkpoint-500/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18b984273ea2d45b7ffb1d047bb359d93111e41fcad70d16a1b453fd38f72636
3
+ size 988
checkpoint-500/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68d7b85c46d195e3cd6e587d94878d77f315e0a073acfab811251f39fbe891fc
3
+ size 1000
logs/dreambooth-sd3-lora/1726644229.0038464/events.out.tfevents.1726644229.c420eaad9ee9.1251.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6760831101ad496aba40a1dfeb889fee613e763271ed85b1b018bfd3a24fbbf3
3
+ size 3153
logs/dreambooth-sd3-lora/1726644229.0057886/hparams.yml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 0.001
6
+ allow_tf32: false
7
+ cache_dir: null
8
+ caption_column: null
9
+ center_crop: false
10
+ checkpointing_steps: 500
11
+ checkpoints_total_limit: null
12
+ class_data_dir: null
13
+ class_prompt: null
14
+ dataloader_num_workers: 0
15
+ dataset_config_name: null
16
+ dataset_name: null
17
+ gradient_accumulation_steps: 4
18
+ gradient_checkpointing: false
19
+ hub_model_id: null
20
+ hub_token: null
21
+ image_column: image
22
+ instance_data_dir: dog
23
+ instance_prompt: a photo of sks dog
24
+ learning_rate: 1.0e-05
25
+ local_rank: -1
26
+ logging_dir: logs
27
+ logit_mean: 0.0
28
+ logit_std: 1.0
29
+ lr_num_cycles: 1
30
+ lr_power: 1.0
31
+ lr_scheduler: constant
32
+ lr_warmup_steps: 0
33
+ max_grad_norm: 1.0
34
+ max_sequence_length: 77
35
+ max_train_steps: 500
36
+ mixed_precision: fp16
37
+ mode_scale: 1.29
38
+ num_class_images: 100
39
+ num_train_epochs: 250
40
+ num_validation_images: 4
41
+ optimizer: AdamW
42
+ output_dir: trained-sd3-lora
43
+ precondition_outputs: 1
44
+ pretrained_model_name_or_path: stabilityai/stable-diffusion-3-medium-diffusers
45
+ prior_generation_precision: null
46
+ prior_loss_weight: 1.0
47
+ prodigy_beta3: null
48
+ prodigy_decouple: true
49
+ prodigy_safeguard_warmup: true
50
+ prodigy_use_bias_correction: true
51
+ push_to_hub: true
52
+ random_flip: false
53
+ rank: 4
54
+ repeats: 1
55
+ report_to: tensorboard
56
+ resolution: 512
57
+ resume_from_checkpoint: null
58
+ revision: null
59
+ sample_batch_size: 4
60
+ scale_lr: false
61
+ seed: 0
62
+ text_encoder_lr: 5.0e-06
63
+ train_batch_size: 1
64
+ train_text_encoder: false
65
+ use_8bit_adam: true
66
+ validation_epochs: 50
67
+ validation_prompt: null
68
+ variant: null
69
+ weighting_scheme: logit_normal
70
+ with_prior_preservation: false
logs/dreambooth-sd3-lora/events.out.tfevents.1726644228.c420eaad9ee9.1251.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:852ed3e0c27067b967833cb4ea3440b4d8faa028496bf3a3098ce2a1022c9cbc
3
+ size 104438
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:691f2bce8842d8f13486e08cc89f8d1986fe272cad136becf14d598c4ca4e850
3
+ size 4742848