exploer commited on
Commit
63d5d61
·
verified ·
1 Parent(s): 96ddb0b

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/tomasbily_000675_00_20241020180402.png
12
+ text: tomasbily is standing in nature by the river wearing a nike t-shirt and
13
+ jeans.
14
+ - output:
15
+ url: sample/tomasbily_000675_01_20241020180415.png
16
+ text: tomasbily stands in nature by the river wearing shirts and a coat and jeans.
17
+ base_model: black-forest-labs/FLUX.1-dev
18
+ instance_prompt: tomasbily
19
+ license: other
20
+ license_name: flux-1-dev-non-commercial-license
21
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
22
+ ---
23
+
24
+ # TomasBily
25
+
26
+ A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
27
+
28
+ <Gallery />
29
+
30
+ ## Trigger words
31
+
32
+ You should use `tomasbily` to trigger the image generation.
33
+
34
+ ## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
35
+
36
+ Weights for this model are available in Safetensors format.
37
+
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/tomasbily'
13
+ class_tokens = 'tomasbily'
14
+ num_repeats = 10
sample/tomasbily_000075_00_20241020173724.png ADDED
sample/tomasbily_000075_01_20241020173737.png ADDED
sample/tomasbily_000150_00_20241020174043.png ADDED
sample/tomasbily_000150_01_20241020174057.png ADDED
sample/tomasbily_000225_00_20241020174403.png ADDED
sample/tomasbily_000225_01_20241020174416.png ADDED
sample/tomasbily_000300_00_20241020174724.png ADDED
sample/tomasbily_000300_01_20241020174737.png ADDED
sample/tomasbily_000375_00_20241020175043.png ADDED
sample/tomasbily_000375_01_20241020175057.png ADDED
sample/tomasbily_000450_00_20241020175403.png ADDED
sample/tomasbily_000450_01_20241020175416.png ADDED
sample/tomasbily_000525_00_20241020175723.png ADDED
sample/tomasbily_000525_01_20241020175737.png ADDED
sample/tomasbily_000600_00_20241020180043.png ADDED
sample/tomasbily_000600_01_20241020180056.png ADDED
sample/tomasbily_000675_00_20241020180402.png ADDED
sample/tomasbily_000675_01_20241020180415.png ADDED
sample_prompts.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ tomasbily is standing in nature by the river wearing a nike t-shirt and jeans.
2
+
3
+ tomasbily stands in nature by the river wearing shirts and a coat and jeans.
tomasbily-000001.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9aa32ee407ea84a42e26f309b894113bb2799852a53374fc221fa57a9d0b9b36
3
+ size 317077864
tomasbily-000002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:699e2b41a4d51b26fc0c6c7a1b5e32c867fd4b8f0726b94c9d8021be49412fc2
3
+ size 317077864
tomasbily.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08369cb0b7b1168702d30e580789c05a3b34236a018e79647350aa347a85a726
3
+ size 317077864
train.sh ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-dev.sft" \
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 2 \
13
+ --seed 42 \
14
+ --gradient_checkpointing \
15
+ --mixed_precision bf16 \
16
+ --save_precision bf16 \
17
+ --network_module networks.lora_flux \
18
+ --network_dim 32 \
19
+ --optimizer_type adamw8bit \--sample_prompts="/app/fluxgym/outputs/tomasbily/sample_prompts.txt" --sample_every_n_steps="75" \
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 3 \
26
+ --save_every_n_epochs 1 \
27
+ --dataset_config "/app/fluxgym/outputs/tomasbily/dataset.toml" \
28
+ --output_dir "/app/fluxgym/outputs/tomasbily" \
29
+ --output_name tomasbily \
30
+ --timestep_sampling shift \
31
+ --discrete_flow_shift 3.1582 \
32
+ --model_prediction_type raw \
33
+ --guidance_scale 1 \
34
+ --loss_type l2 \
35
+ --max_train_steps 1150