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 |
+
base_model: "black-forest-labs/FLUX.1-dev"
|
4 |
+
tags:
|
5 |
+
- flux
|
6 |
+
- flux-diffusers
|
7 |
+
- text-to-image
|
8 |
+
- diffusers
|
9 |
+
- simpletuner
|
10 |
+
- safe-for-work
|
11 |
+
- lora
|
12 |
+
- template:sd-lora
|
13 |
+
- lycoris
|
14 |
+
inference: true
|
15 |
+
widget:
|
16 |
+
- text: 'unconditional (blank prompt)'
|
17 |
+
parameters:
|
18 |
+
negative_prompt: 'blurry, cropped, ugly'
|
19 |
+
output:
|
20 |
+
url: ./assets/image_0_0.png
|
21 |
+
- text: 'hckl_style, A collection of radiolarians floating in water. Various species with different shapes and structures.'
|
22 |
+
parameters:
|
23 |
+
negative_prompt: 'blurry, cropped, ugly'
|
24 |
+
output:
|
25 |
+
url: ./assets/image_1_0.png
|
26 |
+
- text: 'hckl_style, A large jellyfish with trailing tentacles. Smaller jellyfish surround it in the ocean.'
|
27 |
+
parameters:
|
28 |
+
negative_prompt: 'blurry, cropped, ugly'
|
29 |
+
output:
|
30 |
+
url: ./assets/image_2_0.png
|
31 |
+
- text: 'hckl_style, A diverse coral reef ecosystem. Various types of coral, sea anemones, and small fish.'
|
32 |
+
parameters:
|
33 |
+
negative_prompt: 'blurry, cropped, ugly'
|
34 |
+
output:
|
35 |
+
url: ./assets/image_3_0.png
|
36 |
+
- text: 'hckl_style, An assortment of diatoms. Different species showcasing their unique geometric structures.'
|
37 |
+
parameters:
|
38 |
+
negative_prompt: 'blurry, cropped, ugly'
|
39 |
+
output:
|
40 |
+
url: ./assets/image_4_0.png
|
41 |
+
- text: 'hckl_style, hamster'
|
42 |
+
parameters:
|
43 |
+
negative_prompt: 'blurry, cropped, ugly'
|
44 |
+
output:
|
45 |
+
url: ./assets/image_5_0.png
|
46 |
+
- text: 'hckl_style, a hipster making a chair'
|
47 |
+
parameters:
|
48 |
+
negative_prompt: 'blurry, cropped, ugly'
|
49 |
+
output:
|
50 |
+
url: ./assets/image_6_0.png
|
51 |
+
- text: 'hckl_style, A detailed evolutionary tree diagram showing the relationships between various species.'
|
52 |
+
parameters:
|
53 |
+
negative_prompt: 'blurry, cropped, ugly'
|
54 |
+
output:
|
55 |
+
url: ./assets/image_7_0.png
|
56 |
+
- text: 'hckl_style, A modern microbiology laboratory with researchers using advanced microscopes and equipment.'
|
57 |
+
parameters:
|
58 |
+
negative_prompt: 'blurry, cropped, ugly'
|
59 |
+
output:
|
60 |
+
url: ./assets/image_8_0.png
|
61 |
+
- text: 'hckl_style, A bustling city street with skyscrapers, cars, and pedestrians.'
|
62 |
+
parameters:
|
63 |
+
negative_prompt: 'blurry, cropped, ugly'
|
64 |
+
output:
|
65 |
+
url: ./assets/image_9_0.png
|
66 |
+
- text: 'hckl_style, An orbiting space station with astronauts conducting experiments in zero gravity.'
|
67 |
+
parameters:
|
68 |
+
negative_prompt: 'blurry, cropped, ugly'
|
69 |
+
output:
|
70 |
+
url: ./assets/image_10_0.png
|
71 |
+
- text: 'hckl_style, A person scrolling through a social media feed on a smartphone, surrounded by floating app icons.'
|
72 |
+
parameters:
|
73 |
+
negative_prompt: 'blurry, cropped, ugly'
|
74 |
+
output:
|
75 |
+
url: ./assets/image_11_0.png
|
76 |
+
- text: 'hckl_style, A energetic rock band performing on stage with a large crowd in the foreground.'
|
77 |
+
parameters:
|
78 |
+
negative_prompt: 'blurry, cropped, ugly'
|
79 |
+
output:
|
80 |
+
url: ./assets/image_12_0.png
|
81 |
+
- text: 'hckl_style, A visual representation of artificial intelligence, with interconnected nodes and data streams.'
|
82 |
+
parameters:
|
83 |
+
negative_prompt: 'blurry, cropped, ugly'
|
84 |
+
output:
|
85 |
+
url: ./assets/image_13_0.png
|
86 |
+
- text: 'a hamster, hckl_style'
|
87 |
+
parameters:
|
88 |
+
negative_prompt: 'blurry, cropped, ugly'
|
89 |
+
output:
|
90 |
+
url: ./assets/image_14_0.png
|
91 |
+
---
|
92 |
+
|
93 |
+
# Flux-Ernst-Haeckel-LoKr
|
94 |
+
|
95 |
+
This is a LyCORIS adapter derived from [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev).
|
96 |
+
|
97 |
+
|
98 |
+
The main validation prompt used during training was:
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
+
```
|
103 |
+
a hamster, hckl_style
|
104 |
+
```
|
105 |
+
|
106 |
+
## Validation settings
|
107 |
+
- CFG: `3.0`
|
108 |
+
- CFG Rescale: `0.0`
|
109 |
+
- Steps: `25`
|
110 |
+
- Sampler: `None`
|
111 |
+
- Seed: `42`
|
112 |
+
- Resolution: `1024x1024`
|
113 |
+
|
114 |
+
Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
|
115 |
+
|
116 |
+
You can find some example images in the following gallery:
|
117 |
+
|
118 |
+
|
119 |
+
<Gallery />
|
120 |
+
|
121 |
+
The text encoder **was not** trained.
|
122 |
+
You may reuse the base model text encoder for inference.
|
123 |
+
|
124 |
+
|
125 |
+
## Training settings
|
126 |
+
|
127 |
+
- Training epochs: 0
|
128 |
+
- Training steps: 250
|
129 |
+
- Learning rate: 0.0001
|
130 |
+
- Effective batch size: 1
|
131 |
+
- Micro-batch size: 1
|
132 |
+
- Gradient accumulation steps: 1
|
133 |
+
- Number of GPUs: 1
|
134 |
+
- Prediction type: flow-matching
|
135 |
+
- Rescaled betas zero SNR: False
|
136 |
+
- Optimizer: adamw_bf16
|
137 |
+
- Precision: Pure BF16
|
138 |
+
- Quantised: Yes: int8-quanto
|
139 |
+
- Xformers: Not used
|
140 |
+
- LyCORIS Config:
|
141 |
+
```json
|
142 |
+
{
|
143 |
+
"algo": "lokr",
|
144 |
+
"multiplier": 1.0,
|
145 |
+
"linear_dim": 10000,
|
146 |
+
"linear_alpha": 1,
|
147 |
+
"factor": 16,
|
148 |
+
"apply_preset": {
|
149 |
+
"target_module": [
|
150 |
+
"Attention",
|
151 |
+
"FeedForward"
|
152 |
+
],
|
153 |
+
"module_algo_map": {
|
154 |
+
"Attention": {
|
155 |
+
"factor": 16
|
156 |
+
},
|
157 |
+
"FeedForward": {
|
158 |
+
"factor": 8
|
159 |
+
}
|
160 |
+
}
|
161 |
+
}
|
162 |
+
}
|
163 |
+
```
|
164 |
+
|
165 |
+
## Datasets
|
166 |
+
|
167 |
+
### ernst-haeckel-flux-512
|
168 |
+
- Repeats: 10
|
169 |
+
- Total number of images: 81
|
170 |
+
- Total number of aspect buckets: 1
|
171 |
+
- Resolution: 0.262144 megapixels
|
172 |
+
- Cropped: False
|
173 |
+
- Crop style: None
|
174 |
+
- Crop aspect: None
|
175 |
+
### ernst-haeckel-flux-1024
|
176 |
+
- Repeats: 10
|
177 |
+
- Total number of images: 81
|
178 |
+
- Total number of aspect buckets: 2
|
179 |
+
- Resolution: 1.048576 megapixels
|
180 |
+
- Cropped: False
|
181 |
+
- Crop style: None
|
182 |
+
- Crop aspect: None
|
183 |
+
### ernst-haeckel-flux-512-crop
|
184 |
+
- Repeats: 10
|
185 |
+
- Total number of images: 81
|
186 |
+
- Total number of aspect buckets: 1
|
187 |
+
- Resolution: 0.262144 megapixels
|
188 |
+
- Cropped: True
|
189 |
+
- Crop style: random
|
190 |
+
- Crop aspect: square
|
191 |
+
### ernst-haeckel-flux-1024-crop
|
192 |
+
- Repeats: 10
|
193 |
+
- Total number of images: 81
|
194 |
+
- Total number of aspect buckets: 1
|
195 |
+
- Resolution: 1.048576 megapixels
|
196 |
+
- Cropped: True
|
197 |
+
- Crop style: random
|
198 |
+
- Crop aspect: square
|
199 |
+
|
200 |
+
|
201 |
+
## Inference
|
202 |
+
|
203 |
+
|
204 |
+
```python
|
205 |
+
import torch
|
206 |
+
from diffusers import DiffusionPipeline
|
207 |
+
from lycoris import create_lycoris_from_weights
|
208 |
+
|
209 |
+
model_id = 'black-forest-labs/FLUX.1-dev'
|
210 |
+
adapter_id = 'pytorch_lora_weights.safetensors' # you will have to download this manually
|
211 |
+
lora_scale = 1.0
|
212 |
+
wrapper, _ = create_lycoris_from_weights(lora_scale, adapter_id, pipeline.transformer)
|
213 |
+
wrapper.merge_to()
|
214 |
+
|
215 |
+
prompt = "a hamster, hckl_style"
|
216 |
+
|
217 |
+
pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
|
218 |
+
image = pipeline(
|
219 |
+
prompt=prompt,
|
220 |
+
num_inference_steps=25,
|
221 |
+
generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
|
222 |
+
width=1024,
|
223 |
+
height=1024,
|
224 |
+
guidance_scale=3.0,
|
225 |
+
).images[0]
|
226 |
+
image.save("output.png", format="PNG")
|
227 |
+
```
|
228 |
+
|