Norod78 commited on
Commit
99a882b
1 Parent(s): 30754f6

arthurshow-flux-lora

Browse files
1725069952421__000004500_0.jpg ADDED
1725069993317__000004500_1.jpg ADDED
1725070034190__000004500_2.jpg ADDED
1725070075060__000004500_3.jpg ADDED
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
+ widget:
9
+ - text: ArthurShow woman with red hair, playing chess at the park, bomb going off in the background
10
+ output:
11
+ url: 1725069952421__000004500_0.jpg
12
+ - text: a ArthurShow man holding a coffee cup, in a beanie, sitting at a cafe
13
+ output:
14
+ url: 1725069993317__000004500_1.jpg
15
+ - text: Rabbit playing the guitar, on stage, singing a song, laser lights, punk rocker ArthurShow
16
+ output:
17
+ url: 1725070034190__000004500_2.jpg
18
+ base_model: black-forest-labs/FLUX.1-dev
19
+ instance_prompt: ArthurShow
20
+ license: other
21
+ license_name: flux-1-dev-non-commercial-license
22
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
23
+ ---
24
+
25
+ # arthurshow_flux_lora
26
+ Model trained with [AI Toolkit by Ostris](https://github.com/ostris/ai-toolkit)
27
+ <Gallery />
28
+
29
+ ## Trigger words
30
+
31
+ You should use `ArthurShow` to trigger the image generation.
32
+
33
+ ## Download model
34
+
35
+ Weights for this model are available in Safetensors format.
36
+
37
+ [Download](https://huggingface.co/Norod78/arthurshow-flux-lora/tree/main) them in the Files & versions tab.
arthurshow_flux_lora_000004500.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6972f61096dbe7b8b4a749de2337f222a1d1c749288c4700b50894e49687c0cc
3
+ size 171969440
train_lora_flux_24gb.yaml ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ job: extension
3
+ config:
4
+ # this name will be the folder and filename name
5
+ name: "arthurshow_flux_lora"
6
+ process:
7
+ - type: 'sd_trainer'
8
+ # root folder to save training sessions/samples/weights
9
+ training_folder: "output"
10
+ # uncomment to see performance stats in the terminal every N steps
11
+ # performance_log_every: 1000
12
+ device: cuda:0
13
+ # if a trigger word is specified, it will be added to captions of training data if it does not already exist
14
+ # alternatively, in your captions you can add [trigger] and it will be replaced with the trigger word
15
+ trigger_word: "ArthurShow"
16
+ network:
17
+ type: "lora"
18
+ linear: 16
19
+ linear_alpha: 16
20
+ save:
21
+ dtype: float16 # precision to save
22
+ save_every: 250 # save every this many steps
23
+ max_step_saves_to_keep: 2 # how many intermittent saves to keep
24
+ push_to_hub: false #change this to True to push your trained model to Hugging Face.
25
+ # You can either set up a HF_TOKEN env variable or you'll be prompted to log-in
26
+ hf_repo_id: Norod78/arthurshow-flux-lora
27
+ hf_private: true #whether the repo is private or public
28
+ datasets:
29
+ # datasets are a folder of images. captions need to be txt files with the same name as the image
30
+ # for instance image2.jpg and image2.txt. Only jpg, jpeg, and png are supported currently
31
+ # images will automatically be resized and bucketed into the resolution specified
32
+ # on windows, escape back slashes with another backslash so
33
+ # "C:\\path\\to\\images\\folder"
34
+ - folder_path: "/mnt/c/Users/doron/Projects/datasets/ArthurShow_db/img"
35
+ caption_ext: "txt"
36
+ caption_dropout_rate: 0.05 # will drop out the caption 5% of time
37
+ shuffle_tokens: false # shuffle caption order, split by commas
38
+ cache_latents_to_disk: true # leave this true unless you know what you're doing
39
+ resolution: [ 512, 768, 1024] # flux enjoys multiple resolutions
40
+ train:
41
+ batch_size: 1
42
+ steps: 5000 # total number of steps to train 500 - 4000 is a good range
43
+ gradient_accumulation_steps: 1
44
+ train_unet: true
45
+ train_text_encoder: false # probably won't work with flux
46
+ gradient_checkpointing: true # need the on unless you have a ton of vram
47
+ noise_scheduler: "flowmatch" # for training only
48
+ optimizer: "adamw8bit"
49
+ lr: 1e-4
50
+ # uncomment this to skip the pre training sample
51
+ # skip_first_sample: true
52
+ # uncomment to completely disable sampling
53
+ # disable_sampling: true
54
+ # uncomment to use new vell curved weighting. Experimental but may produce better results
55
+ linear_timesteps: true
56
+
57
+ # ema will smooth out learning, but could slow it down. Recommended to leave on.
58
+ ema_config:
59
+ use_ema: true
60
+ ema_decay: 0.99
61
+
62
+ # will probably need this if gpu supports it for flux, other dtypes may not work correctly
63
+ dtype: bf16
64
+ model:
65
+ # huggingface model name or path
66
+ name_or_path: "black-forest-labs/FLUX.1-dev"
67
+ is_flux: true
68
+ quantize: true # run 8bit mixed precision
69
+ # low_vram: true # uncomment this if the GPU is connected to your monitors. It will use less vram to quantize, but is slower.
70
+ sample:
71
+ sampler: "flowmatch" # must match train.noise_scheduler
72
+ sample_every: 250 # sample every this many steps
73
+ width: 1024
74
+ height: 1024
75
+ prompts:
76
+ # you can add [trigger] to the prompts here and it will be replaced with the trigger word
77
+ # - "[trigger] holding a sign that says 'I LOVE PROMPTS!'"\
78
+ - "[trigger] woman with red hair, playing chess at the park, bomb going off in the background"
79
+ - "a [trigger] man holding a coffee cup, in a beanie, sitting at a cafe"
80
+ - "Rabbit playing the guitar, on stage, singing a song, laser lights, punk rocker ArthurShow"
81
+ - "hipster [trigger] with a beard, building a chair, in a [trigger] wood shop"
82
+ neg: "" # not used on flux
83
+ seed: 42
84
+ walk_seed: true
85
+ guidance_scale: 4
86
+ sample_steps: 20
87
+ # you can add any additional meta info here. [name] is replaced with config name at top
88
+ meta:
89
+ name: "[Arthur Show LoRA - Flux.1 DEV]"
90
+ version: '1.0'