cwhuh commited on
Commit
5f6f9cd
·
verified ·
1 Parent(s): dd54da9

End of training

Browse files
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: black-forest-labs/FLUX.1-dev
3
+ library_name: diffusers
4
+ license: other
5
+ instance_prompt: photo of <s0><s1><s2> plush bird
6
+ widget: []
7
+ tags:
8
+ - text-to-image
9
+ - diffusers-training
10
+ - diffusers
11
+ - lora
12
+ - flux
13
+ - flux-diffusers
14
+ - template:sd-lora
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
+ # Flux DreamBooth LoRA - cwhuh/ponix-generator
22
+
23
+ <Gallery />
24
+
25
+ ## Model description
26
+
27
+ These are cwhuh/ponix-generator DreamBooth LoRA weights for black-forest-labs/FLUX.1-dev.
28
+
29
+ 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).
30
+
31
+ Was LoRA for the text encoder enabled? False.
32
+
33
+ Pivotal tuning was enabled: True.
34
+
35
+ ## Trigger words
36
+
37
+ To trigger image generation of trained concept(or concepts) replace each concept identifier in you prompt with the new inserted tokens:
38
+
39
+ to trigger concept `ponix` → use `<s0><s1><s2>` in your prompt
40
+
41
+
42
+
43
+ ## Download model
44
+
45
+ [Download the *.safetensors LoRA](cwhuh/ponix-generator/tree/main) in the Files & versions tab.
46
+
47
+ ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
48
+
49
+ ```py
50
+ from diffusers import AutoPipelineForText2Image
51
+ import torch
52
+ from huggingface_hub import hf_hub_download
53
+ from safetensors.torch import load_file
54
+
55
+ pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to('cuda')
56
+ pipeline.load_lora_weights('cwhuh/ponix-generator', weight_name='pytorch_lora_weights.safetensors')
57
+ embedding_path = hf_hub_download(repo_id='cwhuh/ponix-generator', filename='./ckpt/ponix-generator_emb.safetensors', repo_type="model")
58
+ state_dict = load_file(embedding_path)
59
+ pipeline.load_textual_inversion(state_dict["clip_l"], token=["<s0>", "<s1>", "<s2>"], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
60
+
61
+ image = pipeline('photo of <s0><s1><s2> plush bird').images[0]
62
+ ```
63
+
64
+ 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)
65
+
66
+ ## License
67
+
68
+ Please adhere to the licensing terms as described [here](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md).
69
+
70
+
71
+ ## Intended uses & limitations
72
+
73
+ #### How to use
74
+
75
+ ```python
76
+ # TODO: add an example code snippet for running this diffusion pipeline
77
+ ```
78
+
79
+ #### Limitations and bias
80
+
81
+ [TODO: provide examples of latent issues and potential remediations]
82
+
83
+ ## Training details
84
+
85
+ [TODO: describe the data used to train the model]
checkpoint-1000/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db73caca3bde8a887dfe8895a96a6d2847b708f7c2b832bc7eb694b48fd87b4a
3
+ size 738345542
checkpoint-1000/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28ad9b6259056741062d7028961ed51e3b38d3219ee57d1bac6a0e69e0ec5e7b
3
+ size 37406344
checkpoint-1000/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72e9b59f7e4a25a129507b5f30e794f0886f951de75d2d0b458c3da4b05dda10
3
+ size 14344
checkpoint-1000/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02c1875712672363efa2b38e5618a6dbdca576b421269b59a3333e86755f0b21
3
+ size 1064
checkpoint-500/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0782097cab3b139ae47912ce045cdc195f3281f6db662791bf5e5655675e0e35
3
+ size 738345542
checkpoint-500/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95223199beb2c9dee65a0c689a37414d61756c607794d27e6b7995110d89f2b4
3
+ size 37406344
checkpoint-500/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dea532c610bb4140a9180711c9460713ecf79280654b432370b69c793ce83567
3
+ size 14344
checkpoint-500/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72ef7361eb3ca738d82f6b0ce999ee77ee2bbe2c79a64c85a993f2a2eea063c5
3
+ size 1064
logs/dreambooth-flux-dev-lora-advanced/1741496211.6550972/events.out.tfevents.1741496211.81a08c12101c.5433.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91de5de452dd9abfb460bc59d4e4abc25871089195b172091f1653be7b2f64d7
3
+ size 3805
logs/dreambooth-flux-dev-lora-advanced/1741496211.667142/hparams.yml ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: /workspace/ponix-generator/model
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
+ enable_t5_ti: false
19
+ gradient_accumulation_steps: 1
20
+ gradient_checkpointing: true
21
+ guidance_scale: 1.0
22
+ hub_model_id: null
23
+ hub_token: null
24
+ image_column: image
25
+ initializer_concept: red plush bird
26
+ instance_data_dir: ./data/instance
27
+ instance_prompt: photo of <s0><s1><s2> plush bird
28
+ learning_rate: 1.0
29
+ local_rank: -1
30
+ logging_dir: logs
31
+ logit_mean: 0.0
32
+ logit_std: 1.0
33
+ lora_layers: attn.to_k,attn.to_q,attn.to_v,attn.to_out.0
34
+ lr_num_cycles: 1
35
+ lr_power: 1.0
36
+ lr_scheduler: constant
37
+ lr_warmup_steps: 500
38
+ max_grad_norm: 1.0
39
+ max_sequence_length: 512
40
+ max_train_steps: 1000
41
+ mixed_precision: bf16
42
+ mode_scale: 1.29
43
+ num_class_images: 1000
44
+ num_new_tokens_per_abstraction: null
45
+ num_train_epochs: 167
46
+ num_validation_images: 4
47
+ optimizer: prodigy
48
+ output_dir: ./ckpt/ponix-generator
49
+ pretrained_model_name_or_path: black-forest-labs/FLUX.1-dev
50
+ prior_generation_precision: null
51
+ prior_loss_weight: 1.0
52
+ prodigy_beta3: null
53
+ prodigy_decouple: true
54
+ prodigy_safeguard_warmup: true
55
+ prodigy_use_bias_correction: true
56
+ push_to_hub: true
57
+ random_flip: false
58
+ rank: 16
59
+ repeats: 1
60
+ report_to: tensorboard
61
+ resolution: 768
62
+ resume_from_checkpoint: latest
63
+ revision: null
64
+ sample_batch_size: 4
65
+ scale_lr: false
66
+ seed: null
67
+ text_encoder_lr: 5.0e-06
68
+ token_abstraction: ponix
69
+ train_batch_size: 1
70
+ train_text_encoder: false
71
+ train_text_encoder_frac: 1.0
72
+ train_text_encoder_ti: true
73
+ train_text_encoder_ti_frac: 0.25
74
+ train_transformer_frac: 1.0
75
+ use_8bit_adam: false
76
+ validation_epochs: 50
77
+ validation_prompt: null
78
+ variant: null
79
+ weighting_scheme: none
80
+ with_prior_preservation: false
logs/dreambooth-flux-dev-lora-advanced/events.out.tfevents.1741496211.81a08c12101c.5433.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dad0cc3b9e736720212ad2026c1ef163040ce6333085b93ddacdc80f368fcafa
3
+ size 83834
ponix-generator_emb.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0c2de2afb51ea627ab311a1cb0702279f8da73dc9658b723cf37dca828754a8
3
+ size 9296
pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28ad9b6259056741062d7028961ed51e3b38d3219ee57d1bac6a0e69e0ec5e7b
3
+ size 37406344