cmahima commited on
Commit
45ecc0f
·
verified ·
1 Parent(s): 73a490e

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,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: black-forest-labs/FLUX.1-dev
3
+ library_name: diffusers
4
+ license: other
5
+ tags:
6
+ - text-to-image
7
+ - diffusers-training
8
+ - diffusers
9
+ - lora
10
+ - flux
11
+ - flux-diffusers
12
+ - template:sd-lora
13
+ instance_prompt: a photo of sks dog
14
+ widget:
15
+ - text: A photo of sks dog in a bucket
16
+ output:
17
+ url: image_0.png
18
+ - text: A photo of sks dog in a bucket
19
+ output:
20
+ url: image_1.png
21
+ - text: A photo of sks dog in a bucket
22
+ output:
23
+ url: image_2.png
24
+ - text: A photo of sks dog in a bucket
25
+ output:
26
+ url: image_3.png
27
+ ---
28
+
29
+ <!-- This model card has been generated automatically according to the information the training script had access to. You
30
+ should probably proofread and complete it, then remove this comment. -->
31
+
32
+
33
+ # Flux DreamBooth LoRA - cmahima/trained-flux-lora
34
+
35
+ <Gallery />
36
+
37
+ ## Model description
38
+
39
+ These are cmahima/trained-flux-lora DreamBooth LoRA weights for black-forest-labs/FLUX.1-dev.
40
+
41
+ The weights were trained using [DreamBooth](https://dreambooth.github.io/) with the [Flux diffusers trainer](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/README_flux.md).
42
+
43
+ Was LoRA for the text encoder enabled? False.
44
+
45
+ ## Trigger words
46
+
47
+ You should use `a photo of sks dog` to trigger the image generation.
48
+
49
+ ## Download model
50
+
51
+ [Download the *.safetensors LoRA](cmahima/trained-flux-lora/tree/main) in the Files & versions tab.
52
+
53
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
54
+
55
+ ```py
56
+ from diffusers import AutoPipelineForText2Image
57
+ import torch
58
+ pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to('cuda')
59
+ pipeline.load_lora_weights('cmahima/trained-flux-lora', weight_name='pytorch_lora_weights.safetensors')
60
+ image = pipeline('A photo of sks dog in a bucket').images[0]
61
+ ```
62
+
63
+ 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)
64
+
65
+ ## License
66
+
67
+ Please adhere to the licensing terms as described [here](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md).
68
+
69
+
70
+ ## Intended uses & limitations
71
+
72
+ #### How to use
73
+
74
+ ```python
75
+ # TODO: add an example code snippet for running this diffusion pipeline
76
+ ```
77
+
78
+ #### Limitations and bias
79
+
80
+ [TODO: provide examples of latent issues and potential remediations]
81
+
82
+ ## Training details
83
+
84
+ [TODO: describe the data used to train the model]
image_0.png ADDED

Git LFS Details

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

Git LFS Details

  • SHA256: 711416a243e9c9a4ebbdf5e49fa34df4397eb6ce633feb7107095fed396fdc8c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.38 MB
image_2.png ADDED

Git LFS Details

  • SHA256: 199236bdd6119627cc186dd2c9c0c55f85fd441704d53ffd838c5dc735302029
  • Pointer size: 132 Bytes
  • Size of remote file: 1.18 MB
image_3.png ADDED

Git LFS Details

  • SHA256: ad7b3587df301112a159c8149c1b6d56b72c68280eb39215b68e2b9d1824a91f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.33 MB
logs/dreambooth-flux-dev-lora/1727058169.1903262/events.out.tfevents.1727058169.209-20-156-157.4794.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17f614954c8e9f020baca42bc6ab1dbba61a9eb80f6f5dcc5fe80c0c6472dbb2
3
+ size 3323
logs/dreambooth-flux-dev-lora/1727058169.2194762/hparams.yml ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ cache_latents: false
9
+ caption_column: null
10
+ center_crop: false
11
+ checkpointing_steps: 500
12
+ checkpoints_total_limit: null
13
+ class_data_dir: null
14
+ class_prompt: null
15
+ dataloader_num_workers: 0
16
+ dataset_config_name: null
17
+ dataset_name: null
18
+ gradient_accumulation_steps: 4
19
+ gradient_checkpointing: false
20
+ guidance_scale: 1.0
21
+ hub_model_id: null
22
+ hub_token: null
23
+ image_column: image
24
+ instance_data_dir: examples/dreambooth/dog
25
+ instance_prompt: a photo of sks dog
26
+ learning_rate: 1.0
27
+ local_rank: -1
28
+ logging_dir: logs
29
+ logit_mean: 0.0
30
+ logit_std: 1.0
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_sequence_length: 512
37
+ max_train_steps: 500
38
+ mixed_precision: bf16
39
+ mode_scale: 1.29
40
+ num_class_images: 100
41
+ num_train_epochs: 250
42
+ num_validation_images: 4
43
+ optimizer: prodigy
44
+ output_dir: trained-flux-lora
45
+ pretrained_model_name_or_path: black-forest-labs/FLUX.1-dev
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: true
53
+ random_flip: false
54
+ rank: 4
55
+ repeats: 1
56
+ report_to: tensorboard
57
+ resolution: 512
58
+ resume_from_checkpoint: null
59
+ revision: null
60
+ sample_batch_size: 4
61
+ scale_lr: false
62
+ seed: 0
63
+ text_encoder_lr: 5.0e-06
64
+ train_batch_size: 1
65
+ train_text_encoder: false
66
+ upcast_before_saving: false
67
+ use_8bit_adam: false
68
+ validation_epochs: 25
69
+ validation_prompt: A photo of sks dog in a bucket
70
+ variant: null
71
+ weighting_scheme: none
72
+ with_prior_preservation: false
logs/dreambooth-flux-dev-lora/1727058548.9052308/events.out.tfevents.1727058548.209-20-156-157.6558.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e87fe660f8fe78ab25d6963383575f2687b29bc06c92c0a5dd8436ea6c401d64
3
+ size 3323
logs/dreambooth-flux-dev-lora/1727058548.9376936/hparams.yml ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ cache_latents: false
9
+ caption_column: null
10
+ center_crop: false
11
+ checkpointing_steps: 500
12
+ checkpoints_total_limit: null
13
+ class_data_dir: null
14
+ class_prompt: null
15
+ dataloader_num_workers: 0
16
+ dataset_config_name: null
17
+ dataset_name: null
18
+ gradient_accumulation_steps: 4
19
+ gradient_checkpointing: false
20
+ guidance_scale: 1.0
21
+ hub_model_id: null
22
+ hub_token: null
23
+ image_column: image
24
+ instance_data_dir: examples/dreambooth/dog
25
+ instance_prompt: a photo of sks dog
26
+ learning_rate: 1.0
27
+ local_rank: -1
28
+ logging_dir: logs
29
+ logit_mean: 0.0
30
+ logit_std: 1.0
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_sequence_length: 512
37
+ max_train_steps: 500
38
+ mixed_precision: bf16
39
+ mode_scale: 1.29
40
+ num_class_images: 100
41
+ num_train_epochs: 250
42
+ num_validation_images: 4
43
+ optimizer: prodigy
44
+ output_dir: trained-flux-lora
45
+ pretrained_model_name_or_path: black-forest-labs/FLUX.1-dev
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: true
53
+ random_flip: false
54
+ rank: 4
55
+ repeats: 1
56
+ report_to: tensorboard
57
+ resolution: 512
58
+ resume_from_checkpoint: null
59
+ revision: null
60
+ sample_batch_size: 4
61
+ scale_lr: false
62
+ seed: 0
63
+ text_encoder_lr: 5.0e-06
64
+ train_batch_size: 1
65
+ train_text_encoder: false
66
+ upcast_before_saving: false
67
+ use_8bit_adam: false
68
+ validation_epochs: 25
69
+ validation_prompt: A photo of sks dog in a bucket
70
+ variant: null
71
+ weighting_scheme: none
72
+ with_prior_preservation: false
logs/dreambooth-flux-dev-lora/1727059399.3458583/events.out.tfevents.1727059399.209-20-156-157.9494.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf07aa56a7123da6ec575e555f69c9d94db2810e3b45456ec9f6166a650f3061
3
+ size 3323
logs/dreambooth-flux-dev-lora/1727059399.37658/hparams.yml ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ cache_latents: false
9
+ caption_column: null
10
+ center_crop: false
11
+ checkpointing_steps: 500
12
+ checkpoints_total_limit: null
13
+ class_data_dir: null
14
+ class_prompt: null
15
+ dataloader_num_workers: 0
16
+ dataset_config_name: null
17
+ dataset_name: null
18
+ gradient_accumulation_steps: 4
19
+ gradient_checkpointing: false
20
+ guidance_scale: 1.0
21
+ hub_model_id: null
22
+ hub_token: null
23
+ image_column: image
24
+ instance_data_dir: examples/dreambooth/dog
25
+ instance_prompt: a photo of sks dog
26
+ learning_rate: 1.0
27
+ local_rank: -1
28
+ logging_dir: logs
29
+ logit_mean: 0.0
30
+ logit_std: 1.0
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_sequence_length: 512
37
+ max_train_steps: 2
38
+ mixed_precision: bf16
39
+ mode_scale: 1.29
40
+ num_class_images: 100
41
+ num_train_epochs: 1
42
+ num_validation_images: 4
43
+ optimizer: prodigy
44
+ output_dir: trained-flux-lora
45
+ pretrained_model_name_or_path: black-forest-labs/FLUX.1-dev
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: true
53
+ random_flip: false
54
+ rank: 4
55
+ repeats: 1
56
+ report_to: tensorboard
57
+ resolution: 512
58
+ resume_from_checkpoint: null
59
+ revision: null
60
+ sample_batch_size: 4
61
+ scale_lr: false
62
+ seed: 0
63
+ text_encoder_lr: 5.0e-06
64
+ train_batch_size: 1
65
+ train_text_encoder: false
66
+ upcast_before_saving: false
67
+ use_8bit_adam: false
68
+ validation_epochs: 2
69
+ validation_prompt: A photo of sks dog in a bucket
70
+ variant: null
71
+ weighting_scheme: none
72
+ with_prior_preservation: false
logs/dreambooth-flux-dev-lora/events.out.tfevents.1727058169.209-20-156-157.4794.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f60530bce83b450e110877466353f28487dff2d55e4d0c00af82018d6c3dd58
3
+ size 486
logs/dreambooth-flux-dev-lora/events.out.tfevents.1727058548.209-20-156-157.6558.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ac7cb0c7cd1e7bef216d14562a2e25f8af33bdc328ad6d593af967759a4365e
3
+ size 136668
logs/dreambooth-flux-dev-lora/events.out.tfevents.1727059399.209-20-156-157.9494.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a541d53d8cbce6bd128e62fbf13ca8299f8868804d247c96cd6207c89e21eb51
3
+ size 5122483
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b52f3cbf8e682193ef7808073e030d485f1754b0d6dd04303b15e1af96ce5c8a
3
+ size 9388696