LuciAl commited on
Commit
cd3af15
·
verified ·
1 Parent(s): 6436a2f

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,13 @@ 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/lora_000480_00_20250215015233.png filter=lfs diff=lfs merge=lfs -text
37
+ sample/lora_000960_00_20250215020108.png filter=lfs diff=lfs merge=lfs -text
38
+ sample/lora_001440_00_20250215020939.png filter=lfs diff=lfs merge=lfs -text
39
+ sample/lora_001920_00_20250215021812.png filter=lfs diff=lfs merge=lfs -text
40
+ sample/lora_002400_00_20250215022649.png filter=lfs diff=lfs merge=lfs -text
41
+ sample/lora_002880_00_20250215023525.png filter=lfs diff=lfs merge=lfs -text
42
+ sample/lora_003360_00_20250215024401.png filter=lfs diff=lfs merge=lfs -text
43
+ sample/lora_003840_00_20250215025236.png filter=lfs diff=lfs merge=lfs -text
44
+ sample/lora_004320_00_20250215030115.png filter=lfs diff=lfs merge=lfs -text
45
+ sample/lora_004800_00_20250215031006.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/lora_004800_00_20250215031006.png
12
+ text: lora woman in a bikini on a beach
13
+ base_model: black-forest-labs/FLUX.1-dev
14
+ instance_prompt: lora
15
+ license: other
16
+ license_name: flux-1-dev-non-commercial-license
17
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
18
+ ---
19
+
20
+ # lora
21
+
22
+ A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
23
+
24
+ <Gallery />
25
+
26
+ ## Trigger words
27
+
28
+ You should use `lora` to trigger the image generation.
29
+
30
+ ## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
31
+
32
+ Weights for this model are available in Safetensors format.
33
+
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/lora'
13
+ class_tokens = 'lora'
14
+ num_repeats = 10
lora-000004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ab93a90456b06b221c59015724069cca17ef0a91e824e1b1d3d5efa6440d240
3
+ size 39767784
lora-000008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c18f4d0ddd086ba63e84770a38fe3f0ed391f292a4fe32daef44920a6a3d7873
3
+ size 39767776
lora-000012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ca24f359709e639914f523c868dc5b41cd817e75a65a5c3ef1a84999eeff5a9
3
+ size 39767784
lora.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:095a2c2db08163b489940de58ce6ec0cabccaa8b15a6147a045c491dd22155a6
3
+ size 39767784
sample/lora_000480_00_20250215015233.png ADDED

Git LFS Details

  • SHA256: f089a9f65309a5550da81a84f7bba10aa87ac7b48fbb088099480887d04aed18
  • Pointer size: 131 Bytes
  • Size of remote file: 258 kB
sample/lora_000960_00_20250215020108.png ADDED

Git LFS Details

  • SHA256: b4a0a557ed621c67e4427e4025ce66c605f2b88ca4a9f636556885fe2a849a0b
  • Pointer size: 131 Bytes
  • Size of remote file: 293 kB
sample/lora_001440_00_20250215020939.png ADDED

Git LFS Details

  • SHA256: fa1b6126745d9a7682b9d19f7b5da3626499100125d93764bc811d21055aad88
  • Pointer size: 131 Bytes
  • Size of remote file: 305 kB
sample/lora_001920_00_20250215021812.png ADDED

Git LFS Details

  • SHA256: 368dc3e7eccfe518773ed5776b842591bb8cf62159e180cc6bce224593b7d623
  • Pointer size: 131 Bytes
  • Size of remote file: 324 kB
sample/lora_002400_00_20250215022649.png ADDED

Git LFS Details

  • SHA256: 6d747484551d577d983dd6b329e6821e9caf802ac0cddaed2f32b752af9f22b3
  • Pointer size: 131 Bytes
  • Size of remote file: 301 kB
sample/lora_002880_00_20250215023525.png ADDED

Git LFS Details

  • SHA256: 0ed09926940ea8ecd8f4bf50130d8b026bd27eb9b93c3e6342c8b4beb8a92299
  • Pointer size: 131 Bytes
  • Size of remote file: 290 kB
sample/lora_003360_00_20250215024401.png ADDED

Git LFS Details

  • SHA256: 4cb44a395e4aa1a16374831c6e4441bcfea8b81e978617343af7e4fec1b33e34
  • Pointer size: 131 Bytes
  • Size of remote file: 323 kB
sample/lora_003840_00_20250215025236.png ADDED

Git LFS Details

  • SHA256: 77a907c0c8005ec69d5ab9ab999a39b288b2644b4111e2f3666f5ef6331a6683
  • Pointer size: 131 Bytes
  • Size of remote file: 314 kB
sample/lora_004320_00_20250215030115.png ADDED

Git LFS Details

  • SHA256: 988e00d15ee1bd70cfa95c0b58daa9288f9271ae3002cdd0a38091601887f300
  • Pointer size: 131 Bytes
  • Size of remote file: 305 kB
sample/lora_004800_00_20250215031006.png ADDED

Git LFS Details

  • SHA256: 04e912eb084598203f8ee7437d2617c02dc7ffc2f805f1d0c7764fafef3e6599
  • Pointer size: 131 Bytes
  • Size of remote file: 296 kB
sample_prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ lora woman in a bikini on a beach
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/lora/sample_prompts.txt" --sample_every_n_steps="480" \
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/lora/dataset.toml" \
28
+ --output_dir "/app/fluxgym/outputs/lora" \
29
+ --output_name lora \
30
+ --timestep_sampling shift \
31
+ --discrete_flow_shift 3.1582 \
32
+ --model_prediction_type raw \
33
+ --guidance_scale 1 \
34
+ --loss_type l2 \