Upload folder using huggingface_hub
Browse files- README.md +52 -0
- dataset.toml +14 -0
- modelgen-v2-4-000004.safetensors +3 -0
- modelgen-v2-4-000008.safetensors +3 -0
- modelgen-v2-4-000012.safetensors +3 -0
- modelgen-v2-4.safetensors +3 -0
- sample/modelgen-v2-4_000640_00_20250103072559.png +0 -0
- sample/modelgen-v2-4_000640_01_20250103072559.png +0 -0
- sample/modelgen-v2-4_000640_02_20250103072605.png +0 -0
- sample/modelgen-v2-4_000640_03_20250103072605.png +0 -0
- sample/modelgen-v2-4_001280_00_20250103073757.png +0 -0
- sample/modelgen-v2-4_001280_01_20250103073757.png +0 -0
- sample/modelgen-v2-4_001280_02_20250103073803.png +0 -0
- sample/modelgen-v2-4_001280_03_20250103073803.png +0 -0
- sample_prompts.txt +4 -0
- train.sh +34 -0
README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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/modelgen-v2-4_001280_00_20250103073757.png
|
| 12 |
+
text: apprimdlgen2
|
| 13 |
+
- output:
|
| 14 |
+
url: sample/modelgen-v2-4_001280_01_20250103073757.png
|
| 15 |
+
text: apprimdlgen2, mogn2 cultural women, elegant and poised woman with curly
|
| 16 |
+
hair, wearing a sleek black off-shoulder dress and gold hoop earrings. She
|
| 17 |
+
holds a delicate bouquet of baby's breath flowers, standing on a dimly lit
|
| 18 |
+
cobblestone street with a historic building as the backdrop, creating a sophisticated
|
| 19 |
+
and enchanting evening scene.
|
| 20 |
+
- output:
|
| 21 |
+
url: sample/modelgen-v2-4_001280_02_20250103073803.png
|
| 22 |
+
text: apprimdlgen2, mogn2 cultural women, confident and stylish woman with long
|
| 23 |
+
flowing hair, wearing a red checkered sleeveless crop top and black jeans.
|
| 24 |
+
She poses with a hand on her hip near a serene lakeside setting, exuding a
|
| 25 |
+
bold and contemporary vibe under natural daylight.
|
| 26 |
+
- output:
|
| 27 |
+
url: sample/modelgen-v2-4_001280_03_20250103073803.png
|
| 28 |
+
text: apprimdlgen2, mogn2 cultural women, confident and stylish woman with voluminous
|
| 29 |
+
dark hair, wearing a sleek black leather dress. She stands in a brightly lit
|
| 30 |
+
hallway with her hands casually in her pockets, exuding modern elegance and
|
| 31 |
+
charm.
|
| 32 |
+
base_model: black-forest-labs/FLUX.1-dev
|
| 33 |
+
instance_prompt: apprimdlgen2
|
| 34 |
+
license: other
|
| 35 |
+
license_name: flux-1-dev-non-commercial-license
|
| 36 |
+
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
# modelgen-v2-4
|
| 40 |
+
|
| 41 |
+
A Flux LoRA trained on a local computer with [Fluxgym](https://github.com/cocktailpeanut/fluxgym)
|
| 42 |
+
|
| 43 |
+
<Gallery />
|
| 44 |
+
|
| 45 |
+
## Trigger words
|
| 46 |
+
|
| 47 |
+
You should use `apprimdlgen2` to trigger the image generation.
|
| 48 |
+
|
| 49 |
+
## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Forge, etc.
|
| 50 |
+
|
| 51 |
+
Weights for this model are available in Safetensors format.
|
| 52 |
+
|
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/modelgen-v2-4'
|
| 13 |
+
class_tokens = 'apprimdlgen2'
|
| 14 |
+
num_repeats = 10
|
modelgen-v2-4-000004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a26b3e0d968091e548d253f618bea0a272d6ac2f17ab2239ac8adacaa5deeb50
|
| 3 |
+
size 39766536
|
modelgen-v2-4-000008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6f832d12b767ec04760931c3370227c964c2eaca71f5b75d6a1d8b89d5b9066
|
| 3 |
+
size 39766536
|
modelgen-v2-4-000012.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0b1234b4bef7bd1fe99bfc6abb9e9f8c39ed060d0c48072d4c9d4b9b5f88222
|
| 3 |
+
size 39766544
|
modelgen-v2-4.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53bd605d3cb0702a3ce3f425f6ba42d891bec67ca516035885e9035c6d83210e
|
| 3 |
+
size 39766544
|
sample/modelgen-v2-4_000640_00_20250103072559.png
ADDED
|
sample/modelgen-v2-4_000640_01_20250103072559.png
ADDED
|
sample/modelgen-v2-4_000640_02_20250103072605.png
ADDED
|
sample/modelgen-v2-4_000640_03_20250103072605.png
ADDED
|
sample/modelgen-v2-4_001280_00_20250103073757.png
ADDED
|
sample/modelgen-v2-4_001280_01_20250103073757.png
ADDED
|
sample/modelgen-v2-4_001280_02_20250103073803.png
ADDED
|
sample/modelgen-v2-4_001280_03_20250103073803.png
ADDED
|
sample_prompts.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
apprimdlgen2
|
| 2 |
+
apprimdlgen2, mogn2 cultural women, elegant and poised woman with curly hair, wearing a sleek black off-shoulder dress and gold hoop earrings. She holds a delicate bouquet of baby's breath flowers, standing on a dimly lit cobblestone street with a historic building as the backdrop, creating a sophisticated and enchanting evening scene.
|
| 3 |
+
apprimdlgen2, mogn2 cultural women, confident and stylish woman with long flowing hair, wearing a red checkered sleeveless crop top and black jeans. She poses with a hand on her hip near a serene lakeside setting, exuding a bold and contemporary vibe under natural daylight.
|
| 4 |
+
apprimdlgen2, mogn2 cultural women, confident and stylish woman with voluminous dark hair, wearing a sleek black leather dress. She stands in a brightly lit hallway with her hands casually in her pockets, exuding modern elegance and charm.
|
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/modelgen-v2-4/sample_prompts.txt" --sample_every_n_steps="640" \
|
| 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/modelgen-v2-4/dataset.toml" \
|
| 28 |
+
--output_dir "/app/fluxgym/outputs/modelgen-v2-4" \
|
| 29 |
+
--output_name modelgen-v2-4 \
|
| 30 |
+
--timestep_sampling shift \
|
| 31 |
+
--discrete_flow_shift 3.1582 \
|
| 32 |
+
--model_prediction_type raw \
|
| 33 |
+
--guidance_scale 1 \
|
| 34 |
+
--loss_type l2 \
|