meimmo commited on
Commit
c003643
·
verified ·
1 Parent(s): 37a6717

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-schnell
3
+ library_name: diffusers
4
+ license: other
5
+ instance_prompt: a photo of sks dog
6
+ widget:
7
+ - text: A photo of sks dog in a bucket
8
+ output:
9
+ url: image_0.png
10
+ - text: A photo of sks dog in a bucket
11
+ output:
12
+ url: image_1.png
13
+ - text: A photo of sks dog in a bucket
14
+ output:
15
+ url: image_2.png
16
+ - text: A photo of sks dog in a bucket
17
+ output:
18
+ url: image_3.png
19
+ tags:
20
+ - text-to-image
21
+ - diffusers-training
22
+ - diffusers
23
+ - lora
24
+ - flux
25
+ - flux-diffusers
26
+ - template:sd-lora
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 - meimmo/trained-flux-lora
34
+
35
+ <Gallery />
36
+
37
+ ## Model description
38
+
39
+ These are meimmo/trained-flux-lora DreamBooth LoRA weights for black-forest-labs/FLUX.1-schnell.
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](meimmo/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('meimmo/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]
checkpoint-500/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79c67f3bf151ac43e5b5f029c197bf3bdb9d076645fd14540db79fc41193d0e4
3
+ size 79235795
checkpoint-500/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cb027a1e8eef16f19f42228fcf307af084c564ff3aeca2814592d34a8eee66c
3
+ size 22504080
checkpoint-500/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0520b62398248bd9147948a240ebfc95c20b1ec225500ec29e6ad7b00ad2aca1
3
+ size 14953
checkpoint-500/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:834e56f57c52dc0b4e8a0512df6f75974564f0c3d76c603616dc264f841b2563
3
+ size 1401
image_0.png ADDED

Git LFS Details

  • SHA256: 7014f54ee81d33c64f4769c5c609063876fa991120142de658785ff71cb1c86f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.54 MB
image_1.png ADDED

Git LFS Details

  • SHA256: b1a8649290fc684ae5c032aceb088304c23c5e82051f16b27a6d56e65cd11043
  • Pointer size: 132 Bytes
  • Size of remote file: 1.34 MB
image_2.png ADDED

Git LFS Details

  • SHA256: 3f2b2971ad3e79f9bbee1a076b30f5b566a6546be01654295f68218c9d3c82a9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.46 MB
image_3.png ADDED

Git LFS Details

  • SHA256: d36798a39e24ba482b7aa5e302bd768bc1b63f712b85534982cceec26b42889b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.35 MB
logs/dreambooth-flux-dev-lora/1747893526.6274233/events.out.tfevents.1747893526.RS720A-E12-RS12.3000188.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1191c0c6096b29b1ec9b23888158f3a5c245bf5183fdf29b7e6727ecad4c5bf0
3
+ size 3447
logs/dreambooth-flux-dev-lora/1747893526.6289802/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: 0.001
6
+ allow_tf32: false
7
+ cache_dir: /home/mdm/.cache/huggingface
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: /home/mdm/multi_modality/diffusers/dog
25
+ instance_prompt: a photo of sks dog
26
+ learning_rate: 1.0
27
+ local_rank: 0
28
+ logging_dir: logs
29
+ logit_mean: 0.0
30
+ logit_std: 1.0
31
+ lora_dropout: 0.0
32
+ lora_layers: null
33
+ lr_num_cycles: 1
34
+ lr_power: 1.0
35
+ lr_scheduler: constant
36
+ lr_warmup_steps: 0
37
+ max_grad_norm: 1.0
38
+ max_sequence_length: 512
39
+ max_train_steps: 500
40
+ mixed_precision: bf16
41
+ mode_scale: 1.29
42
+ num_class_images: 100
43
+ num_train_epochs: 500
44
+ num_validation_images: 4
45
+ optimizer: prodigy
46
+ output_dir: trained-flux-lora
47
+ pretrained_model_name_or_path: black-forest-labs/FLUX.1-schnell
48
+ prior_generation_precision: null
49
+ prior_loss_weight: 1.0
50
+ prodigy_beta3: null
51
+ prodigy_decouple: true
52
+ prodigy_safeguard_warmup: true
53
+ prodigy_use_bias_correction: true
54
+ push_to_hub: true
55
+ random_flip: false
56
+ rank: 4
57
+ repeats: 1
58
+ report_to: tensorboard
59
+ resolution: 1024
60
+ resume_from_checkpoint: null
61
+ revision: null
62
+ sample_batch_size: 4
63
+ scale_lr: false
64
+ seed: 0
65
+ text_encoder_lr: 5.0e-06
66
+ train_batch_size: 1
67
+ train_text_encoder: false
68
+ upcast_before_saving: false
69
+ use_8bit_adam: false
70
+ validation_epochs: 25
71
+ validation_prompt: A photo of sks dog in a bucket
72
+ variant: null
73
+ weighting_scheme: none
74
+ with_prior_preservation: false
logs/dreambooth-flux-dev-lora/events.out.tfevents.1747893526.RS720A-E12-RS12.3000188.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bec3cb4b3a9a0485c2dda3f776791b302e170125d41a3ca9d851708adc306182
3
+ size 126319859
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cb027a1e8eef16f19f42228fcf307af084c564ff3aeca2814592d34a8eee66c
3
+ size 22504080