Borcherding commited on
Commit
b4d0847
·
verified ·
0 Parent(s):

initial commit

Browse files
Files changed (2) hide show
  1. .gitattributes +55 -0
  2. README.md +151 -0
.gitattributes ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
+ *.model filter=lfs diff=lfs merge=lfs -text
14
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
15
+ *.npy filter=lfs diff=lfs merge=lfs -text
16
+ *.npz filter=lfs diff=lfs merge=lfs -text
17
+ *.onnx filter=lfs diff=lfs merge=lfs -text
18
+ *.ot filter=lfs diff=lfs merge=lfs -text
19
+ *.parquet filter=lfs diff=lfs merge=lfs -text
20
+ *.pb filter=lfs diff=lfs merge=lfs -text
21
+ *.pickle filter=lfs diff=lfs merge=lfs -text
22
+ *.pkl filter=lfs diff=lfs merge=lfs -text
23
+ *.pt filter=lfs diff=lfs merge=lfs -text
24
+ *.pth filter=lfs diff=lfs merge=lfs -text
25
+ *.rar filter=lfs diff=lfs merge=lfs -text
26
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
27
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar filter=lfs diff=lfs merge=lfs -text
30
+ *.tflite filter=lfs diff=lfs merge=lfs -text
31
+ *.tgz filter=lfs diff=lfs merge=lfs -text
32
+ *.wasm filter=lfs diff=lfs merge=lfs -text
33
+ *.xz filter=lfs diff=lfs merge=lfs -text
34
+ *.zip filter=lfs diff=lfs merge=lfs -text
35
+ *.zst filter=lfs diff=lfs merge=lfs -text
36
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
37
+ # Audio files - uncompressed
38
+ *.pcm filter=lfs diff=lfs merge=lfs -text
39
+ *.sam filter=lfs diff=lfs merge=lfs -text
40
+ *.raw filter=lfs diff=lfs merge=lfs -text
41
+ # Audio files - compressed
42
+ *.aac filter=lfs diff=lfs merge=lfs -text
43
+ *.flac filter=lfs diff=lfs merge=lfs -text
44
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
45
+ *.ogg filter=lfs diff=lfs merge=lfs -text
46
+ *.wav filter=lfs diff=lfs merge=lfs -text
47
+ # Image files - uncompressed
48
+ *.bmp filter=lfs diff=lfs merge=lfs -text
49
+ *.gif filter=lfs diff=lfs merge=lfs -text
50
+ *.png filter=lfs diff=lfs merge=lfs -text
51
+ *.tiff filter=lfs diff=lfs merge=lfs -text
52
+ # Image files - compressed
53
+ *.jpg filter=lfs diff=lfs merge=lfs -text
54
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
55
+ *.webp filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - text-to-image
4
+ - lora
5
+ - diffusers
6
+ - template:diffusion-lora
7
+ widget:
8
+ - text: >-
9
+ autumnProxy orange and red tree surrounded by grass and leaves with a double
10
+ rainbow in the sky above the tree
11
+ parameters:
12
+ negative_prompt: cartoon, fake
13
+ output:
14
+ url: images/seasonallandsfluxdev_000100_04_20241227200714.png
15
+ - text: 'autumnProxy red and green maple tree looking up at from underneath '
16
+ parameters:
17
+ negative_prompt: cartoon, fake
18
+ output:
19
+ url: images/seasonallandsflux_001500_03_20241227091256.png
20
+ - text: >-
21
+ autumnProxy orange and red tree surrounded by grass and leaves with a double
22
+ rainbow in the sky above the tree
23
+ parameters:
24
+ negative_prompt: cartoon, fake
25
+ output:
26
+ url: images/seasonallandsfluxdev_000400_04_20241227222430.png
27
+ - text: autumnProxy orange and green maple leaf
28
+ parameters:
29
+ negative_prompt: cartoon, fake
30
+ output:
31
+ url: images/seasonallandsfluxdev_000900_00_20241228020648.png
32
+ - text: autumnProxy red and green leaf
33
+ parameters:
34
+ negative_prompt: cartoon, fake
35
+ output:
36
+ url: images/seasonallandsfluxdev_000400_02_20241227221919.png
37
+ - text: autumnProxy red maple leaf
38
+ parameters:
39
+ negative_prompt: cartoon, fake
40
+ output:
41
+ url: images/seasonallandsfluxdev_000200_02_20241227204642.png
42
+ base_model: black-forest-labs/FLUX.1-dev
43
+ instance_prompt: autumnProxy
44
+ license: apache-2.0
45
+ ---
46
+ # seasonalLandsFluxDev
47
+
48
+ <Gallery />
49
+
50
+ ## Model description
51
+
52
+ # seasonalLandsFluxDev LoRA
53
+
54
+ A LoRA fine-tune for FLUX.1 [dev] that specializes in generating seasonal landscapes with a focus on autumn scenery, foliage, and natural environments.
55
+
56
+ ## Overview
57
+ This LoRA enhances FLUX.1 [dev]&#39;s ability to generate detailed autumn landscapes with rich, vibrant fall colors, detailed trees, and seasonal elements. Use the trigger word &#x60;autumnProxy&#x60; to activate the autumn-specific capabilities.
58
+
59
+ ## Installation
60
+
61
+ First, ensure you have FLUX.1 [dev] installed:
62
+
63
+ &#x60;&#x60;&#x60;python
64
+ pip install -U diffusers
65
+ Usage
66
+ Loading with Diffusers
67
+ Here&#39;s how to apply the LoRA to FLUX.1 [dev]:
68
+
69
+ import torch
70
+ from diffusers import FluxPipeline
71
+
72
+ # Load base model
73
+ pipe &#x3D; FluxPipeline.from_pretrained(&quot;black-forest-labs&#x2F;FLUX.1-dev&quot;, torch_dtype&#x3D;torch.bfloat16)
74
+ pipe.enable_model_cpu_offload()
75
+
76
+ # Load and apply LoRA weights
77
+ pipe.load_lora_weights(&quot;Borcherding&#x2F;seasonalLandsFluxDev-lora&quot;)
78
+
79
+ # Generate image
80
+ prompt &#x3D; &quot;autumnProxy A majestic maple tree with vibrant red and orange leaves, golden afternoon light&quot;
81
+ image &#x3D; pipe(
82
+ prompt,
83
+ height&#x3D;1024,
84
+ width&#x3D;1024,
85
+ guidance_scale&#x3D;3.5,
86
+ num_inference_steps&#x3D;50,
87
+ max_sequence_length&#x3D;512,
88
+ generator&#x3D;torch.Generator(&quot;cpu&quot;).manual_seed(0)
89
+ ).images[0]
90
+ image.save(&quot;autumn-scene.png&quot;)
91
+
92
+ # Unload LoRA weights if needed
93
+ pipe.unload_lora_weights()
94
+ Merging LoRA (Optional)
95
+ To permanently merge the LoRA weights with the base model:
96
+ pythonCopyimport torch
97
+ from diffusers import FluxPipeline
98
+
99
+ # Load base model
100
+ pipe &#x3D; FluxPipeline.from_pretrained(&quot;black-forest-labs&#x2F;FLUX.1-dev&quot;, torch_dtype&#x3D;torch.bfloat16)
101
+
102
+ # Load and merge LoRA weights
103
+ pipe.load_lora_weights(&quot;Borcherding&#x2F;SeasonalLandsFluxDev-lora&quot;)
104
+ pipe.merge_lora_weights()
105
+
106
+ # Save merged model
107
+ pipe.save_pretrained(&quot;seasonal-lands-merged&quot;)
108
+ Trigger Word
109
+ &#x60;&#x60;&#x60;
110
+
111
+ Use autumnProxy in your prompts to activate the seasonal enhancements
112
+ Best results achieved when placing the trigger word at the start of the prompt
113
+
114
+ Prompt Examples
115
+ &quot;autumnProxy A peaceful forest path covered in fallen maple leaves, morning mist rising&quot;
116
+ &quot;autumnProxy Ancient oak trees with twisted branches, leaves turning golden and red&quot;
117
+ &quot;autumnProxy Scenic mountain valley with autumn colors, warm sunset light&quot;
118
+ Specialized Features
119
+
120
+ Enhanced autumn color palette (reds, oranges, yellows, greens)
121
+ Detailed tree and leaf structures
122
+ Natural seasonal lighting effects
123
+ Atmospheric elements like fog and mist
124
+ Realistic ground coverage with fallen leaves
125
+
126
+ # Limitations
127
+
128
+ This is a LoRA for FLUX.1 [dev] and requires the base model to function
129
+ Focus on natural landscapes and seasonal elements
130
+ Inherits base limitations from FLUX.1 [dev]
131
+
132
+ License
133
+ This LoRA falls under the same licensing terms as FLUX.1 [dev]. Please refer to the base model&#39;s license for usage terms.
134
+ Credits
135
+
136
+ Base model: FLUX.1 [dev] by Black Forest Labs
137
+ LoRA training and development: [Borcherding at BorchInk]
138
+
139
+
140
+
141
+
142
+ ## Trigger words
143
+
144
+ You should use `autumnProxy` to trigger the image generation.
145
+
146
+
147
+ ## Download model
148
+
149
+ Weights for this model are available in Safetensors format.
150
+
151
+ [Download](/Borcherding/seasonalLandsFluxDev-lora/tree/main) them in the Files & versions tab.