bghira commited on
Commit
64c0221
·
verified ·
1 Parent(s): 90a828d

Model card auto-generated by SimpleTuner

Browse files
Files changed (1) hide show
  1. README.md +403 -0
README.md ADDED
@@ -0,0 +1,403 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: "Qwen/Qwen-Image"
4
+ tags:
5
+ - qwen_image
6
+ - qwen_image-diffusers
7
+ - text-to-image
8
+ - image-to-image
9
+ - diffusers
10
+ - simpletuner
11
+ - not-for-all-audiences
12
+ - lora
13
+
14
+ - template:sd-lora
15
+ - standard
16
+ pipeline_tag: text-to-image
17
+ inference: true
18
+ widget:
19
+ - text: 'unconditional (blank prompt)'
20
+ parameters:
21
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
22
+ output:
23
+ url: ./assets/image_0_0.png
24
+ - text: 'Alien planet, strange rock formations, glowing plants, bizarre creatures, surreal atmosphere'
25
+ parameters:
26
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
27
+ output:
28
+ url: ./assets/image_1_0.png
29
+ - text: 'Alien marketplace, bizarre creatures, exotic goods, vibrant colors, otherworldly atmosphere'
30
+ parameters:
31
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
32
+ output:
33
+ url: ./assets/image_2_0.png
34
+ - text: 'Child holding a balloon, happy expression, colorful balloons, sunny day, high detail'
35
+ parameters:
36
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
37
+ output:
38
+ url: ./assets/image_3_0.png
39
+ - text: 'a 4-panel comic strip showing an orange cat saying the words ''HELP'' and ''LASAGNA'''
40
+ parameters:
41
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
42
+ output:
43
+ url: ./assets/image_4_0.png
44
+ - text: 'a hand is holding a comic book with a cover that reads ''The Adventures of Superhero'''
45
+ parameters:
46
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
47
+ output:
48
+ url: ./assets/image_5_0.png
49
+ - text: 'Underground cave filled with crystals, glowing lights, reflective surfaces, fantasy environment, high detail'
50
+ parameters:
51
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
52
+ output:
53
+ url: ./assets/image_6_0.png
54
+ - text: 'Bustling cyberpunk bazaar, vendors, neon signs, advanced tech, crowded, high detail'
55
+ parameters:
56
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
57
+ output:
58
+ url: ./assets/image_7_0.png
59
+ - text: 'Cyberpunk hacker in a dark room, neon glow, multiple screens, intense focus, high detail'
60
+ parameters:
61
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
62
+ output:
63
+ url: ./assets/image_8_0.png
64
+ - text: 'a cybernetic anne of green gables with neural implant and bio mech augmentations'
65
+ parameters:
66
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
67
+ output:
68
+ url: ./assets/image_9_0.png
69
+ - text: 'Post-apocalyptic cityscape, ruined buildings, overgrown vegetation, dark and gritty, high detail'
70
+ parameters:
71
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
72
+ output:
73
+ url: ./assets/image_10_0.png
74
+ - text: 'Magical castle in a lush forest, glowing windows, fantasy architecture, high resolution, detailed textures'
75
+ parameters:
76
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
77
+ output:
78
+ url: ./assets/image_11_0.png
79
+ - text: 'Ruins of an ancient temple in an enchanted forest, glowing runes, mystical creatures, high detail'
80
+ parameters:
81
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
82
+ output:
83
+ url: ./assets/image_12_0.png
84
+ - text: 'Mystical forest, glowing plants, fairies, magical creatures, fantasy art, high detail'
85
+ parameters:
86
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
87
+ output:
88
+ url: ./assets/image_13_0.png
89
+ - text: 'Magical garden with glowing flowers, fairies, serene atmosphere, detailed plants, high resolution'
90
+ parameters:
91
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
92
+ output:
93
+ url: ./assets/image_14_0.png
94
+ - text: 'Whimsical garden filled with fairies, magical plants, sparkling lights, serene atmosphere, high detail'
95
+ parameters:
96
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
97
+ output:
98
+ url: ./assets/image_15_0.png
99
+ - text: 'Majestic dragon soaring through the sky, detailed scales, dynamic pose, fantasy art, high resolution'
100
+ parameters:
101
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
102
+ output:
103
+ url: ./assets/image_16_0.png
104
+ - text: 'Fantasy world, floating islands in the sky, waterfalls, lush vegetation, detailed landscape, high resolution'
105
+ parameters:
106
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
107
+ output:
108
+ url: ./assets/image_17_0.png
109
+ - text: 'Space battle scene, starships fighting, laser beams, explosions, cosmic background'
110
+ parameters:
111
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
112
+ output:
113
+ url: ./assets/image_18_0.png
114
+ - text: 'Abandoned fairground at night, eerie rides, ghostly figures, fog, dark atmosphere, high detail'
115
+ parameters:
116
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
117
+ output:
118
+ url: ./assets/image_19_0.png
119
+ - text: 'Spooky haunted mansion on a hill, dark and eerie, glowing windows, ghostly atmosphere, high detail'
120
+ parameters:
121
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
122
+ output:
123
+ url: ./assets/image_20_0.png
124
+ - text: 'a hardcover physics textbook that is called PHYSICS FOR DUMMIES'
125
+ parameters:
126
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
127
+ output:
128
+ url: ./assets/image_21_0.png
129
+ - text: 'Epic medieval battle, knights in armor, dynamic action, detailed landscape, high resolution'
130
+ parameters:
131
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
132
+ output:
133
+ url: ./assets/image_22_0.png
134
+ - text: 'Bustling medieval market with merchants, knights, and jesters, vibrant colors, detailed'
135
+ parameters:
136
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
137
+ output:
138
+ url: ./assets/image_23_0.png
139
+ - text: 'Cozy medieval tavern, warm firelight, adventurers drinking, detailed interior, rustic atmosphere'
140
+ parameters:
141
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
142
+ output:
143
+ url: ./assets/image_24_0.png
144
+ - text: 'Futuristic city skyline at night, neon lights, cyberpunk style, high contrast, sharp focus'
145
+ parameters:
146
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
147
+ output:
148
+ url: ./assets/image_25_0.png
149
+ - text: 'Forest with neon-lit trees, glowing plants, bioluminescence, surreal atmosphere, high detail'
150
+ parameters:
151
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
152
+ output:
153
+ url: ./assets/image_26_0.png
154
+ - text: 'Bright neon sign in a busy city street, ''Open 24 Hours'', bold typography, glowing lights'
155
+ parameters:
156
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
157
+ output:
158
+ url: ./assets/image_27_0.png
159
+ - text: 'Vibrant neon sign, ''Bar'', bold typography, dark background, glowing lights, detailed design'
160
+ parameters:
161
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
162
+ output:
163
+ url: ./assets/image_28_0.png
164
+ - text: 'Pirate ship on the high seas, stormy weather, detailed sails, dramatic waves, photorealistic'
165
+ parameters:
166
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
167
+ output:
168
+ url: ./assets/image_29_0.png
169
+ - text: 'Pirate discovering a treasure chest, detailed gold coins, tropical island, dramatic lighting'
170
+ parameters:
171
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
172
+ output:
173
+ url: ./assets/image_30_0.png
174
+ - text: 'a photograph of a woman experiencing a psychedelic trip. trippy, 8k, uhd, fractal'
175
+ parameters:
176
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
177
+ output:
178
+ url: ./assets/image_31_0.png
179
+ - text: 'Cozy cafe on a rainy day, people sipping coffee, warm lights, reflections on wet pavement, photorealistic'
180
+ parameters:
181
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
182
+ output:
183
+ url: ./assets/image_32_0.png
184
+ - text: '1980s arcade, neon lights, vintage game machines, kids playing, vibrant colors, nostalgic atmosphere'
185
+ parameters:
186
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
187
+ output:
188
+ url: ./assets/image_33_0.png
189
+ - text: '1980s game room with vintage arcade machines, neon lights, vibrant colors, nostalgic feel'
190
+ parameters:
191
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
192
+ output:
193
+ url: ./assets/image_34_0.png
194
+ - text: 'Robot blacksmith forging metal, sparks flying, detailed workshop, futuristic and medieval blend'
195
+ parameters:
196
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
197
+ output:
198
+ url: ./assets/image_35_0.png
199
+ - text: 'Sleek robot performing a dance, futuristic theater, holographic effects, detailed, high resolution'
200
+ parameters:
201
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
202
+ output:
203
+ url: ./assets/image_36_0.png
204
+ - text: 'High-tech factory where robots are assembled, detailed machinery, futuristic setting, high detail'
205
+ parameters:
206
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
207
+ output:
208
+ url: ./assets/image_37_0.png
209
+ - text: 'Garden tended by robots, mechanical plants, colorful flowers, futuristic setting, high detail'
210
+ parameters:
211
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
212
+ output:
213
+ url: ./assets/image_38_0.png
214
+ - text: 'Cute robotic pet, futuristic home, sleek design, detailed features, friendly and animated'
215
+ parameters:
216
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
217
+ output:
218
+ url: ./assets/image_39_0.png
219
+ - text: 'cctv trail camera night time security picture of a wendigo in the woods'
220
+ parameters:
221
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
222
+ output:
223
+ url: ./assets/image_40_0.png
224
+ - text: 'Astronaut exploring an alien planet, detailed landscape, futuristic suit, cosmic background'
225
+ parameters:
226
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
227
+ output:
228
+ url: ./assets/image_41_0.png
229
+ - text: 'Futuristic space station orbiting a distant exoplanet, sleek design, detailed structures, cosmic backdrop'
230
+ parameters:
231
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
232
+ output:
233
+ url: ./assets/image_42_0.png
234
+ - text: 'a person holding a sign that reads ''SOON'''
235
+ parameters:
236
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
237
+ output:
238
+ url: ./assets/image_43_0.png
239
+ - text: 'Steampunk airship in the sky, intricate design, Victorian aesthetics, dynamic scene, high detail'
240
+ parameters:
241
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
242
+ output:
243
+ url: ./assets/image_44_0.png
244
+ - text: 'Steampunk inventor in a workshop, intricate gadgets, Victorian attire, mechanical arm, goggles'
245
+ parameters:
246
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
247
+ output:
248
+ url: ./assets/image_45_0.png
249
+ - text: 'Stormy ocean with towering waves, dramatic skies, detailed water, intense atmosphere, high resolution'
250
+ parameters:
251
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
252
+ output:
253
+ url: ./assets/image_46_0.png
254
+ - text: 'Dramatic stormy sea, lighthouse in the distance, lightning striking, dark clouds, high detail'
255
+ parameters:
256
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
257
+ output:
258
+ url: ./assets/image_47_0.png
259
+ - text: 'Graffiti artist creating a mural, vibrant colors, urban setting, dynamic action, high resolution'
260
+ parameters:
261
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
262
+ output:
263
+ url: ./assets/image_48_0.png
264
+ - text: 'Urban alleyway filled with vibrant graffiti art, tags and murals, realistic textures'
265
+ parameters:
266
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
267
+ output:
268
+ url: ./assets/image_49_0.png
269
+ - text: 'Urban street sign, ''Main Street'', bold typography, realistic textures, weathered look'
270
+ parameters:
271
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
272
+ output:
273
+ url: ./assets/image_50_0.png
274
+ - text: 'Classic car show with vintage vehicles, vibrant colors, nostalgic atmosphere, high detail'
275
+ parameters:
276
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
277
+ output:
278
+ url: ./assets/image_51_0.png
279
+ - text: 'Retro diner sign, ''Joe''s Diner'', classic 1950s design, neon lights, weathered look'
280
+ parameters:
281
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
282
+ output:
283
+ url: ./assets/image_52_0.png
284
+ - text: 'Vintage store sign with elaborate typography, ''Antique Shop'', hand-painted, weathered look'
285
+ parameters:
286
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
287
+ output:
288
+ url: ./assets/image_53_0.png
289
+ - text: 'An domokun running through a field with flowers all around him.'
290
+ parameters:
291
+ negative_prompt: 'ugly, cropped, blurry, low-quality, mediocre average'
292
+ output:
293
+ url: ./assets/image_54_0.png
294
+ ---
295
+
296
+ # simpletuner-example-qwen_image-peft-lora
297
+
298
+ This is a PEFT LoRA derived from [Qwen/Qwen-Image](https://huggingface.co/Qwen/Qwen-Image).
299
+
300
+ The main validation prompt used during training was:
301
+ ```
302
+ An domokun running through a field with flowers all around him.
303
+ ```
304
+
305
+
306
+ ## Validation settings
307
+ - CFG: `4.0`
308
+ - CFG Rescale: `0.0`
309
+ - Steps: `30`
310
+ - Sampler: `FlowMatchEulerDiscreteScheduler`
311
+ - Seed: `42`
312
+ - Resolution: `1024x1024`
313
+
314
+
315
+ Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
316
+
317
+ You can find some example images in the following gallery:
318
+
319
+
320
+ <Gallery />
321
+
322
+ The text encoder **was not** trained.
323
+ You may reuse the base model text encoder for inference.
324
+
325
+
326
+ ## Training settings
327
+
328
+ - Training epochs: 218
329
+ - Training steps: 1600
330
+ - Learning rate: 0.0001
331
+ - Learning rate schedule: constant
332
+ - Warmup steps: 100
333
+ - Max grad value: 0.01
334
+ - Effective batch size: 1
335
+ - Micro-batch size: 1
336
+ - Gradient accumulation steps: 1
337
+ - Number of GPUs: 1
338
+ - Gradient checkpointing: True
339
+ - Prediction type: flow_matching[]
340
+ - Optimizer: optimi-lion
341
+ - Trainable parameter precision: Pure BF16
342
+ - Base model precision: `int8-quanto`
343
+ - Caption dropout probability: 0.0%
344
+
345
+
346
+ - LoRA Rank: 8
347
+ - LoRA Alpha: 8.0
348
+ - LoRA Dropout: 0.1
349
+ - LoRA initialisation style: default
350
+ - LoRA mode: Standard
351
+
352
+
353
+ ## Datasets
354
+
355
+ ### dreambooth-1024
356
+ - Repeats: 0
357
+ - Total number of images: 26
358
+ - Total number of aspect buckets: 1
359
+ - Resolution: 1.048576 megapixels
360
+ - Cropped: True
361
+ - Crop style: random
362
+ - Crop aspect: square
363
+ - Used for regularisation data: No
364
+
365
+
366
+ ## Inference
367
+
368
+
369
+ ```python
370
+ import torch
371
+ from diffusers import DiffusionPipeline
372
+
373
+ model_id = 'Qwen/Qwen-Image'
374
+ adapter_id = 'bghira/simpletuner-example-qwen_image-peft-lora'
375
+ pipeline = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16) # loading directly in bf16
376
+ pipeline.load_lora_weights(adapter_id)
377
+
378
+ prompt = "An domokun running through a field with flowers all around him."
379
+ negative_prompt = 'ugly, cropped, blurry, low-quality, mediocre average'
380
+
381
+ ## Optional: quantise the model to save on vram.
382
+ ## Note: The model was quantised during training, and so it is recommended to do the same during inference time.
383
+ from optimum.quanto import quantize, freeze, qint8
384
+ quantize(pipeline.transformer, weights=qint8)
385
+ freeze(pipeline.transformer)
386
+
387
+ pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu') # the pipeline is already in its target precision level
388
+ model_output = pipeline(
389
+ prompt=prompt,
390
+ negative_prompt=negative_prompt,
391
+ num_inference_steps=30,
392
+ generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(42),
393
+ width=1024,
394
+ height=1024,
395
+ guidance_scale=4.0,
396
+ ).images[0]
397
+
398
+ model_output.save("output.png", format="PNG")
399
+
400
+ ```
401
+
402
+
403
+