Upload folder using huggingface_hub
Browse files- README.md +51 -0
- dataset.toml +14 -0
- fusionleg-000004.safetensors +3 -0
- fusionleg-000008.safetensors +3 -0
- fusionleg-000012.safetensors +3 -0
- fusionleg.safetensors +3 -0
- sample/fusionleg_001000_00_20241211170542.png +0 -0
- sample/fusionleg_001000_01_20241211170547.png +0 -0
- sample/fusionleg_001000_02_20241211170553.png +0 -0
- sample/fusionleg_002000_00_20241211172201.png +0 -0
- sample/fusionleg_002000_01_20241211172207.png +0 -0
- sample/fusionleg_002000_02_20241211172212.png +0 -0
- sample/fusionleg_003000_00_20241211173820.png +0 -0
- sample/fusionleg_003000_01_20241211173826.png +0 -0
- sample/fusionleg_003000_02_20241211173831.png +0 -0
- sample/fusionleg_004000_00_20241211175439.png +0 -0
- sample/fusionleg_004000_01_20241211175445.png +0 -0
- sample/fusionleg_004000_02_20241211175450.png +0 -0
- sample_prompts.txt +3 -0
- train.sh +34 -0
README.md
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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/fusionleg_004000_00_20241211175439.png
|
12 |
+
text: FUSIONLEG leggings
|
13 |
+
- output:
|
14 |
+
url: sample/fusionleg_004000_01_20241211175445.png
|
15 |
+
text: In this image, a woman with medium-length brown hair is captured in a profile
|
16 |
+
view as she stands with her hand placed on a piece of exercise equipment.
|
17 |
+
She is wearing a pair of FUSIONLEG leggings that are predominantly black with
|
18 |
+
pink and black accents running along the sides. The leggings fit snugly, highlighting
|
19 |
+
her athletic physique. The background is a textured white surface, providing
|
20 |
+
a stark contrast to the dark tones of her attire, and her sneakers are white,
|
21 |
+
complementing the leggings. Her posture exudes strength and confidence.
|
22 |
+
- output:
|
23 |
+
url: sample/fusionleg_004000_02_20241211175450.png
|
24 |
+
text: The image features a woman in a kneeling position, showcasing her profile
|
25 |
+
with her hand elegantly placed on her head. She sports FUSIONLEG leggings
|
26 |
+
with red and white color blocks that are accentuated by black panels, highlighting
|
27 |
+
a dynamic and athletic design. The backdrop is a plain, brightly lit space,
|
28 |
+
complemented by a potted plant and a stool, which adds a touch of natural
|
29 |
+
ambiance to the composition. Her posture is graceful and exhibits a blend
|
30 |
+
of strength and flexibility.
|
31 |
+
base_model: black-forest-labs/FLUX.1-dev
|
32 |
+
instance_prompt: FUSIONLEG
|
33 |
+
license: other
|
34 |
+
license_name: flux-1-dev-non-commercial-license
|
35 |
+
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
36 |
+
---
|
37 |
+
|
38 |
+
# FUSIONLEG
|
39 |
+
|
40 |
+
A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
|
41 |
+
|
42 |
+
<Gallery />
|
43 |
+
|
44 |
+
## Trigger words
|
45 |
+
|
46 |
+
You should use `FUSIONLEG` to trigger the image generation.
|
47 |
+
|
48 |
+
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
|
49 |
+
|
50 |
+
Weights for this model are available in Safetensors format.
|
51 |
+
|
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/fusionleg'
|
13 |
+
class_tokens = 'FUSIONLEG'
|
14 |
+
num_repeats = 10
|
fusionleg-000004.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b56618341ea563ba9800b3fe020c9413ce1caf47919608d4b596ed8599fed449
|
3 |
+
size 39784624
|
fusionleg-000008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6d01cfa73504393a1bfba16a9396f37daa65fefe14a2ec18d419e74ea17642c3
|
3 |
+
size 39784624
|
fusionleg-000012.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:315d475e88bad414577f324a534e2986565a779b9a7b3861445ccda227e44f1c
|
3 |
+
size 39784624
|
fusionleg.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9fb5e318a113c60eaa890b78184fe5c33fb9975817e6567fda9749e1fc37b9a3
|
3 |
+
size 39784624
|
sample/fusionleg_001000_00_20241211170542.png
ADDED
sample/fusionleg_001000_01_20241211170547.png
ADDED
sample/fusionleg_001000_02_20241211170553.png
ADDED
sample/fusionleg_002000_00_20241211172201.png
ADDED
sample/fusionleg_002000_01_20241211172207.png
ADDED
sample/fusionleg_002000_02_20241211172212.png
ADDED
sample/fusionleg_003000_00_20241211173820.png
ADDED
sample/fusionleg_003000_01_20241211173826.png
ADDED
sample/fusionleg_003000_02_20241211173831.png
ADDED
sample/fusionleg_004000_00_20241211175439.png
ADDED
sample/fusionleg_004000_01_20241211175445.png
ADDED
sample/fusionleg_004000_02_20241211175450.png
ADDED
sample_prompts.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
FUSIONLEG leggings
|
2 |
+
In this image, a woman with medium-length brown hair is captured in a profile view as she stands with her hand placed on a piece of exercise equipment. She is wearing a pair of FUSIONLEG leggings that are predominantly black with pink and black accents running along the sides. The leggings fit snugly, highlighting her athletic physique. The background is a textured white surface, providing a stark contrast to the dark tones of her attire, and her sneakers are white, complementing the leggings. Her posture exudes strength and confidence.
|
3 |
+
The image features a woman in a kneeling position, showcasing her profile with her hand elegantly placed on her head. She sports FUSIONLEG leggings with red and white color blocks that are accentuated by black panels, highlighting a dynamic and athletic design. The backdrop is a plain, brightly lit space, complemented by a potted plant and a stool, which adds a touch of natural ambiance to the composition. Her posture is graceful and exhibits a blend of strength and flexibility.
|
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 "/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 4 \
|
19 |
+
--optimizer_type adamw8bit \--sample_prompts="/app/fluxgym/outputs/fusionleg/sample_prompts.txt" --sample_every_n_steps="1000" \
|
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 "/app/fluxgym/outputs/fusionleg/dataset.toml" \
|
28 |
+
--output_dir "/app/fluxgym/outputs/fusionleg" \
|
29 |
+
--output_name fusionleg \
|
30 |
+
--timestep_sampling shift \
|
31 |
+
--discrete_flow_shift 3.1582 \
|
32 |
+
--model_prediction_type raw \
|
33 |
+
--guidance_scale 1 \
|
34 |
+
--loss_type l2 \
|