Upload folder using huggingface_hub
Browse files- .gitattributes +8 -0
- README.md +39 -0
- dataset.toml +14 -0
- new-bree-000004.safetensors +3 -0
- new-bree-000008.safetensors +3 -0
- new-bree-000012.safetensors +3 -0
- new-bree.safetensors +3 -0
- sample/new-bree_000400_00_20250227195458.png +3 -0
- sample/new-bree_000400_01_20250227195501.png +3 -0
- sample/new-bree_000800_00_20250227195902.png +3 -0
- sample/new-bree_000800_01_20250227195905.png +3 -0
- sample/new-bree_001200_00_20250227200307.png +3 -0
- sample/new-bree_001200_01_20250227200310.png +3 -0
- sample/new-bree_001600_00_20250227200711.png +3 -0
- sample/new-bree_001600_01_20250227200714.png +3 -0
- sample_prompts.txt +2 -0
- train.sh +34 -0
.gitattributes
CHANGED
@@ -33,3 +33,11 @@ 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 |
+
sample/new-bree_000400_00_20250227195458.png filter=lfs diff=lfs merge=lfs -text
|
37 |
+
sample/new-bree_000400_01_20250227195501.png filter=lfs diff=lfs merge=lfs -text
|
38 |
+
sample/new-bree_000800_00_20250227195902.png filter=lfs diff=lfs merge=lfs -text
|
39 |
+
sample/new-bree_000800_01_20250227195905.png filter=lfs diff=lfs merge=lfs -text
|
40 |
+
sample/new-bree_001200_00_20250227200307.png filter=lfs diff=lfs merge=lfs -text
|
41 |
+
sample/new-bree_001200_01_20250227200310.png filter=lfs diff=lfs merge=lfs -text
|
42 |
+
sample/new-bree_001600_00_20250227200711.png filter=lfs diff=lfs merge=lfs -text
|
43 |
+
sample/new-bree_001600_01_20250227200714.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- text-to-image
|
4 |
+
- flux
|
5 |
+
- lora
|
6 |
+
- diffusers
|
7 |
+
- template:sd-lora
|
8 |
+
- fluxgym
|
9 |
+
widget:
|
10 |
+
- output:
|
11 |
+
url: sample/new-bree_001600_00_20250227200711.png
|
12 |
+
text: a woman in a green bikini standing in the water with a smile on her face,
|
13 |
+
surrounded by trees and a clear blue sky.
|
14 |
+
- output:
|
15 |
+
url: sample/new-bree_001600_01_20250227200714.png
|
16 |
+
text: a woman standing in a field, smiling and holding a dog in her arms. The
|
17 |
+
background of the image is filled with lush green grass, tall trees, and a
|
18 |
+
bright blue sky.
|
19 |
+
base_model: black-forest-labs/FLUX.1-dev
|
20 |
+
|
21 |
+
license: other
|
22 |
+
license_name: flux-1-dev-non-commercial-license
|
23 |
+
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
24 |
+
---
|
25 |
+
|
26 |
+
# New-Bree
|
27 |
+
|
28 |
+
A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
|
29 |
+
|
30 |
+
<Gallery />
|
31 |
+
|
32 |
+
## Trigger words
|
33 |
+
|
34 |
+
No trigger words defined.
|
35 |
+
|
36 |
+
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
|
37 |
+
|
38 |
+
Weights for this model are available in Safetensors format.
|
39 |
+
|
dataset.toml
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[general]
|
2 |
+
shuffle_caption = false
|
3 |
+
caption_extension = '.txt'
|
4 |
+
keep_tokens = 1
|
5 |
+
|
6 |
+
[[datasets]]
|
7 |
+
resolution = 512
|
8 |
+
batch_size = 1
|
9 |
+
keep_tokens = 1
|
10 |
+
|
11 |
+
[[datasets.subsets]]
|
12 |
+
image_dir = '/workspace/fluxgym/datasets/new-bree'
|
13 |
+
class_tokens = ''
|
14 |
+
num_repeats = 10
|
new-bree-000004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d988702d8b5c18386d19894cf7dcd36421bb9122f1f42a895b4f1d407c2cfe10
|
3 |
+
size 39761072
|
new-bree-000008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:30d3c81e42a4b971d4c47f1cda17f157336df86eab31a28a305bd1a7835605b1
|
3 |
+
size 39761072
|
new-bree-000012.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f04db0c4f57f7414f58e41c25105b23f6e3f2fae0024d39b8a7d6345587c26f6
|
3 |
+
size 39761072
|
new-bree.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a282d874ad892b0c83dbc21813a0d1cc5824e803f195c1b9d9eeb9495704f540
|
3 |
+
size 39761072
|
sample/new-bree_000400_00_20250227195458.png
ADDED
![]() |
Git LFS Details
|
sample/new-bree_000400_01_20250227195501.png
ADDED
![]() |
Git LFS Details
|
sample/new-bree_000800_00_20250227195902.png
ADDED
![]() |
Git LFS Details
|
sample/new-bree_000800_01_20250227195905.png
ADDED
![]() |
Git LFS Details
|
sample/new-bree_001200_00_20250227200307.png
ADDED
![]() |
Git LFS Details
|
sample/new-bree_001200_01_20250227200310.png
ADDED
![]() |
Git LFS Details
|
sample/new-bree_001600_00_20250227200711.png
ADDED
![]() |
Git LFS Details
|
sample/new-bree_001600_01_20250227200714.png
ADDED
![]() |
Git LFS Details
|
sample_prompts.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
a woman in a green bikini standing in the water with a smile on her face, surrounded by trees and a clear blue sky.
|
2 |
+
a woman standing in a field, smiling and holding a dog in her arms. The background of the image is filled with lush green grass, tall trees, and a bright blue sky.
|
train.sh
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
accelerate launch \
|
2 |
+
--mixed_precision bf16 \
|
3 |
+
--num_cpu_threads_per_process 1 \
|
4 |
+
sd-scripts/flux_train_network.py \
|
5 |
+
--pretrained_model_name_or_path "/workspace/fluxgym/models/unet/flux1-dev.sft" \
|
6 |
+
--clip_l "/workspace/fluxgym/models/clip/clip_l.safetensors" \
|
7 |
+
--t5xxl "/workspace/fluxgym/models/clip/t5xxl_fp16.safetensors" \
|
8 |
+
--ae "/workspace/fluxgym/models/vae/ae.sft" \
|
9 |
+
--cache_latents_to_disk \
|
10 |
+
--save_model_as safetensors \
|
11 |
+
--sdpa --persistent_data_loader_workers \
|
12 |
+
--max_data_loader_n_workers 2 \
|
13 |
+
--seed 42 \
|
14 |
+
--gradient_checkpointing \
|
15 |
+
--mixed_precision bf16 \
|
16 |
+
--save_precision bf16 \
|
17 |
+
--network_module networks.lora_flux \
|
18 |
+
--network_dim 4 \
|
19 |
+
--optimizer_type adamw8bit \--sample_prompts="/workspace/fluxgym/outputs/new-bree/sample_prompts.txt" --sample_every_n_steps="400" \
|
20 |
+
--learning_rate 8e-4 \
|
21 |
+
--cache_text_encoder_outputs \
|
22 |
+
--cache_text_encoder_outputs_to_disk \
|
23 |
+
--fp8_base \
|
24 |
+
--highvram \
|
25 |
+
--max_train_epochs 16 \
|
26 |
+
--save_every_n_epochs 4 \
|
27 |
+
--dataset_config "/workspace/fluxgym/outputs/new-bree/dataset.toml" \
|
28 |
+
--output_dir "/workspace/fluxgym/outputs/new-bree" \
|
29 |
+
--output_name new-bree \
|
30 |
+
--timestep_sampling shift \
|
31 |
+
--discrete_flow_shift 3.1582 \
|
32 |
+
--model_prediction_type raw \
|
33 |
+
--guidance_scale 1 \
|
34 |
+
--loss_type l2 \
|