End of training
Browse files- .gitattributes +4 -0
- README.md +84 -0
- checkpoint-1000/optimizer.bin +3 -0
- checkpoint-1000/pytorch_lora_weights.safetensors +3 -0
- checkpoint-1000/random_states_0.pkl +3 -0
- checkpoint-1000/scheduler.bin +3 -0
- checkpoint-500/optimizer.bin +3 -0
- checkpoint-500/pytorch_lora_weights.safetensors +3 -0
- checkpoint-500/random_states_0.pkl +3 -0
- checkpoint-500/scheduler.bin +3 -0
- image_0.png +3 -0
- image_1.png +3 -0
- image_2.png +3 -0
- image_3.png +3 -0
- logs/dreambooth-flux-kontext-lora/1753307948.3109381/events.out.tfevents.1753307948.2da1033492af.291.1 +3 -0
- logs/dreambooth-flux-kontext-lora/1753307948.4397495/hparams.yml +79 -0
- logs/dreambooth-flux-kontext-lora/events.out.tfevents.1753307948.2da1033492af.291.0 +3 -0
- pytorch_lora_weights.safetensors +3 -0
.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-Kontext-dev
|
| 3 |
+
library_name: diffusers
|
| 4 |
+
license: other
|
| 5 |
+
instance_prompt: in OnePiece style
|
| 6 |
+
widget:
|
| 7 |
+
- text: a person in fighting mode in OnePiece style
|
| 8 |
+
output:
|
| 9 |
+
url: image_0.png
|
| 10 |
+
- text: a person in fighting mode in OnePiece style
|
| 11 |
+
output:
|
| 12 |
+
url: image_1.png
|
| 13 |
+
- text: a person in fighting mode in OnePiece style
|
| 14 |
+
output:
|
| 15 |
+
url: image_2.png
|
| 16 |
+
- text: a person in fighting mode in OnePiece style
|
| 17 |
+
output:
|
| 18 |
+
url: image_3.png
|
| 19 |
+
tags:
|
| 20 |
+
- text-to-image
|
| 21 |
+
- diffusers-training
|
| 22 |
+
- diffusers
|
| 23 |
+
- lora
|
| 24 |
+
- flux
|
| 25 |
+
- flux-kontextflux-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 Kontext DreamBooth LoRA - Kdn0110/kontext-OnePiece
|
| 34 |
+
|
| 35 |
+
<Gallery />
|
| 36 |
+
|
| 37 |
+
## Model description
|
| 38 |
+
|
| 39 |
+
These are Kdn0110/kontext-OnePiece DreamBooth LoRA weights for black-forest-labs/FLUX.1-Kontext-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? True.
|
| 44 |
+
|
| 45 |
+
## Trigger words
|
| 46 |
+
|
| 47 |
+
You should use `in OnePiece style` to trigger the image generation.
|
| 48 |
+
|
| 49 |
+
## Download model
|
| 50 |
+
|
| 51 |
+
[Download the *.safetensors LoRA](Kdn0110/kontext-OnePiece/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 FluxKontextPipeline
|
| 57 |
+
import torch
|
| 58 |
+
pipeline = FluxKontextPipeline.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev", torch_dtype=torch.bfloat16).to('cuda')
|
| 59 |
+
pipeline.load_lora_weights('Kdn0110/kontext-OnePiece', weight_name='pytorch_lora_weights.safetensors')
|
| 60 |
+
image = pipeline('a person in fighting mode in OnePiece style').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-1000/optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1245121ab0bb4b76061579f0dbf7c4cc5f713b7967280106df325e50e715496d
|
| 3 |
+
size 164920397
|
checkpoint-1000/pytorch_lora_weights.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5cc5c1f025a4796da01bf5cc34e40290e36274a22cf6b2adaada4601f38359c4
|
| 3 |
+
size 161705104
|
checkpoint-1000/random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0504903c6eeaa9fc1471fd2d33fc3d94a3c20f240dbc0e798eb21ab3e20f242f
|
| 3 |
+
size 14757
|
checkpoint-1000/scheduler.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:909875d0ef2b81c7c737558255b4f8fce82438ca941e4ec06b9fb8d13052e179
|
| 3 |
+
size 1465
|
checkpoint-500/optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:211864fb3e505a8fc4ab5980a788f4835b61ef41202b45e83ed120917cd14786
|
| 3 |
+
size 164920397
|
checkpoint-500/pytorch_lora_weights.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2ae7091fdddbb5f0c3d9bf9711983783a7e5eb607da5be1b3ae3205f8c0a890
|
| 3 |
+
size 161705104
|
checkpoint-500/random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:beeccee729b8887b4336f803d701719ab7b6b760a522b680abc7e4d0388b2cc4
|
| 3 |
+
size 14757
|
checkpoint-500/scheduler.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30d881e401739ecf29a85df7ed8c77fb1f9c9407f830583e6ec0f8b28d850806
|
| 3 |
+
size 1465
|
image_0.png
ADDED
|
Git LFS Details
|
image_1.png
ADDED
|
Git LFS Details
|
image_2.png
ADDED
|
Git LFS Details
|
image_3.png
ADDED
|
Git LFS Details
|
logs/dreambooth-flux-kontext-lora/1753307948.3109381/events.out.tfevents.1753307948.2da1033492af.291.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f21e0790f271b2ad521d8811d327a8ee77f5ac2bbc1af73c94dca38f89ca2663
|
| 3 |
+
size 3642
|
logs/dreambooth-flux-kontext-lora/1753307948.4397495/hparams.yml
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
aspect_ratio_buckets: null
|
| 8 |
+
cache_dir: null
|
| 9 |
+
cache_latents: true
|
| 10 |
+
caption_column: text
|
| 11 |
+
center_crop: false
|
| 12 |
+
checkpointing_steps: 500
|
| 13 |
+
checkpoints_total_limit: null
|
| 14 |
+
class_data_dir: null
|
| 15 |
+
class_prompt: null
|
| 16 |
+
cond_image_column: null
|
| 17 |
+
dataloader_num_workers: 0
|
| 18 |
+
dataset_config_name: null
|
| 19 |
+
dataset_name: polytechXhf/onepiece-dataset
|
| 20 |
+
gradient_accumulation_steps: 1
|
| 21 |
+
gradient_checkpointing: true
|
| 22 |
+
guidance_scale: 1.0
|
| 23 |
+
hub_model_id: null
|
| 24 |
+
hub_token: null
|
| 25 |
+
image_column: image
|
| 26 |
+
instance_data_dir: null
|
| 27 |
+
instance_prompt: in OnePiece style
|
| 28 |
+
learning_rate: 0.0001
|
| 29 |
+
local_rank: -1
|
| 30 |
+
logging_dir: logs
|
| 31 |
+
logit_mean: 0.0
|
| 32 |
+
logit_std: 1.0
|
| 33 |
+
lora_alpha: 32
|
| 34 |
+
lora_dropout: 0.0
|
| 35 |
+
lora_layers: attn.to_k,attn.to_q,attn.to_v,attn.to_out.0,attn.to_add_out,ff.net.0.proj,ff.net.2,proj_mlp
|
| 36 |
+
lr_num_cycles: 1
|
| 37 |
+
lr_power: 1.0
|
| 38 |
+
lr_scheduler: constant
|
| 39 |
+
lr_warmup_steps: 0
|
| 40 |
+
max_grad_norm: 1.0
|
| 41 |
+
max_sequence_length: 512
|
| 42 |
+
max_train_steps: 1000
|
| 43 |
+
mixed_precision: bf16
|
| 44 |
+
mode_scale: 1.29
|
| 45 |
+
num_class_images: 100
|
| 46 |
+
num_train_epochs: 2
|
| 47 |
+
num_validation_images: 4
|
| 48 |
+
optimizer: adamw
|
| 49 |
+
output_dir: kontext-OnePiece
|
| 50 |
+
pretrained_model_name_or_path: black-forest-labs/FLUX.1-Kontext-dev
|
| 51 |
+
prior_generation_precision: null
|
| 52 |
+
prior_loss_weight: 1.0
|
| 53 |
+
prodigy_beta3: null
|
| 54 |
+
prodigy_decouple: true
|
| 55 |
+
prodigy_safeguard_warmup: true
|
| 56 |
+
prodigy_use_bias_correction: true
|
| 57 |
+
push_to_hub: true
|
| 58 |
+
random_flip: false
|
| 59 |
+
rank: 32
|
| 60 |
+
repeats: 1
|
| 61 |
+
report_to: tensorboard
|
| 62 |
+
resolution: 1024
|
| 63 |
+
resume_from_checkpoint: null
|
| 64 |
+
revision: null
|
| 65 |
+
sample_batch_size: 4
|
| 66 |
+
scale_lr: false
|
| 67 |
+
seed: 0
|
| 68 |
+
text_encoder_lr: 5.0e-06
|
| 69 |
+
train_batch_size: 1
|
| 70 |
+
train_text_encoder: true
|
| 71 |
+
upcast_before_saving: false
|
| 72 |
+
use_8bit_adam: true
|
| 73 |
+
vae_encode_mode: mode
|
| 74 |
+
validation_epochs: 50
|
| 75 |
+
validation_image: null
|
| 76 |
+
validation_prompt: a person in fighting mode in OnePiece style
|
| 77 |
+
variant: null
|
| 78 |
+
weighting_scheme: none
|
| 79 |
+
with_prior_preservation: false
|
logs/dreambooth-flux-kontext-lora/events.out.tfevents.1753307948.2da1033492af.291.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33827df4b23520ed181184b5cac79d8756f93a41004e539d291bd28e157dc9da
|
| 3 |
+
size 10066342
|
pytorch_lora_weights.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3413e466811b793cbaaa17f1303f1c7253a91179cfc7b9d11369d0726d69f5b
|
| 3 |
+
size 166423696
|