Upload folder using huggingface_hub
Browse files- README.md +29 -0
- dataset.toml +14 -0
- sample_prompts.txt +1 -0
- test-flux-schnell-000004.safetensors +3 -0
- test-flux-schnell-000008.safetensors +3 -0
- test-flux-schnell-000012.safetensors +3 -0
- test-flux-schnell-000016.safetensors +3 -0
- test-flux-schnell-000020.safetensors +3 -0
- test-flux-schnell-000024.safetensors +3 -0
- test-flux-schnell-000028.safetensors +3 -0
- test-flux-schnell-000032.safetensors +3 -0
- test-flux-schnell-000036.safetensors +3 -0
- test-flux-schnell.safetensors +3 -0
- train.sh +37 -0
README.md
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- text-to-image
|
4 |
+
- flux
|
5 |
+
- lora
|
6 |
+
- diffusers
|
7 |
+
- template:sd-lora
|
8 |
+
- fluxgym
|
9 |
+
|
10 |
+
|
11 |
+
base_model: black-forest-labs/FLUX.1-schnell
|
12 |
+
instance_prompt: GOX
|
13 |
+
license: apache-2.0
|
14 |
+
---
|
15 |
+
|
16 |
+
# Test_flux_schnell
|
17 |
+
|
18 |
+
A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
|
19 |
+
|
20 |
+
<Gallery />
|
21 |
+
|
22 |
+
## Trigger words
|
23 |
+
|
24 |
+
You should use `GOX` to trigger the image generation.
|
25 |
+
|
26 |
+
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
|
27 |
+
|
28 |
+
Weights for this model are available in Safetensors format.
|
29 |
+
|
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 = '/app/fluxgym/datasets/test-flux-schnell'
|
13 |
+
class_tokens = 'GOX'
|
14 |
+
num_repeats = 15
|
sample_prompts.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
GOX
|
test-flux-schnell-000004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5c8e5eb8609f935bda5bf6e05bb48ba80aef8bc8c2ceb7250e0076c9617b1972
|
3 |
+
size 39763648
|
test-flux-schnell-000008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:13adef270311f43ddde8d335da9e6543151ca5038ca26fca2f05d2bde87bdb8f
|
3 |
+
size 39763640
|
test-flux-schnell-000012.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a62970c3fc2d6c9bd7fd07e90e25a22f33d76871157c6b740d95adac1f6150d8
|
3 |
+
size 39763648
|
test-flux-schnell-000016.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e64a9c5c5fdb5fb19134335fcc1d6473cafee8135af14f2418c94cb2817ea10e
|
3 |
+
size 39763648
|
test-flux-schnell-000020.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:94d0e9e5b0e33d28083439b5ffe47652b71d54e955a267f8a1b4443688c3109e
|
3 |
+
size 39763648
|
test-flux-schnell-000024.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6c53f8516e69913ffa16f3019194d61742d57d3b5e308a80ee53407834557bac
|
3 |
+
size 39763648
|
test-flux-schnell-000028.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:07eef1a65323105b306be1e53daedaa8ed4a7119d0f865214a6875aea1b8bdbf
|
3 |
+
size 39763648
|
test-flux-schnell-000032.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:87e4e12041fe8ccaa7ad711acb146a4390bb9f0dc2c7fcf7fd4966908f9e4e92
|
3 |
+
size 39763648
|
test-flux-schnell-000036.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca018d39a62944bcdcd95c96284739d9fa258963e20986cd833f0dd658e3ce8d
|
3 |
+
size 39763648
|
test-flux-schnell.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:313b522c53cc3f834d2ff967b7f9e26bcf24f0a119e62f28d82b81f90214b374
|
3 |
+
size 39763648
|
train.sh
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 "/app/fluxgym/models/unet/flux1-schnell.safetensors" \
|
6 |
+
--clip_l "/app/fluxgym/models/clip/clip_l.safetensors" \
|
7 |
+
--t5xxl "/app/fluxgym/models/clip/t5xxl_fp16.safetensors" \
|
8 |
+
--ae "/app/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 3 \
|
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 \
|
20 |
+
--learning_rate 9e-05 \
|
21 |
+
--cache_text_encoder_outputs \
|
22 |
+
--cache_text_encoder_outputs_to_disk \
|
23 |
+
--fp8_base \
|
24 |
+
--highvram \
|
25 |
+
--max_train_epochs 40 \
|
26 |
+
--save_every_n_epochs 4 \
|
27 |
+
--dataset_config "/app/fluxgym/outputs/test-flux-schnell/dataset.toml" \
|
28 |
+
--output_dir "/app/fluxgym/outputs/test-flux-schnell" \
|
29 |
+
--output_name test-flux-schnell \
|
30 |
+
--timestep_sampling shift \
|
31 |
+
--discrete_flow_shift 3.1582 \
|
32 |
+
--model_prediction_type raw \
|
33 |
+
--guidance_scale 2 \
|
34 |
+
--loss_type l2 \
|
35 |
+
--cache_latents \
|
36 |
+
--dataset_repeats 2 \
|
37 |
+
--v2
|