Andy-ML-And-AI commited on
Commit
8bdedba
Β·
verified Β·
1 Parent(s): dfb5404

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +99 -61
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- license: other
3
  base_model: "black-forest-labs/FLUX.2-klein-base-4B"
4
  tags:
5
  - flux2
@@ -7,12 +7,12 @@ tags:
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:
@@ -23,79 +23,58 @@ widget:
23
  url: ./assets/image_0_0.png
24
  ---
25
 
26
- # Andy-ML-And-AI/LIQGLASS-klein-lora
27
-
28
- This is a PEFT LoRA derived from [black-forest-labs/FLUX.2-klein-base-4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-base-4B).
29
-
30
- The main validation prompt used during training was:
31
- ```
32
- LIQGLASS, macOS Liquid Glass style icon, translucent frosted glass squircle shape, Safari browser app, compass symbol, blue tinted glass, specular highlight, inner glow, light refraction at edges, depth layering, soft shadow, Apple macOS design language, high detail
33
- ```
34
-
35
 
36
- ## Validation settings
37
- - CFG: `None`
38
- - CFG Rescale: `0.0`
39
- - Steps: `20`
40
- - Sampler: `FlowMatchEulerDiscreteScheduler`
41
- - Seed: `42`
42
- - Resolution: `512x512`
43
 
 
44
 
45
- Note: The validation settings are not necessarily the same as the [training settings](#training-settings).
46
 
47
- You can find some example images in the following gallery:
48
 
 
 
 
49
 
50
- <Gallery />
51
-
52
- The text encoder **was not** trained.
53
- You may reuse the base model text encoder for inference.
54
 
 
55
 
56
- ## Training settings
57
 
58
- - Training epochs: 1
59
- - Training steps: 800
60
- - Learning rate: 0.0001
61
- - Learning rate schedule: constant
62
- - Warmup steps: 0
63
- - Max grad value: 2.0
64
- - Effective batch size: 1
65
- - Micro-batch size: 1
66
- - Gradient accumulation steps: 1
67
- - Number of GPUs: 1
68
- - Gradient checkpointing: True
69
- - Prediction type: flow_matching[]
70
- - Optimizer: adamw_bf16
71
- - Trainable parameter precision: Pure BF16
72
- - Base model precision: `int8-quanto`
73
- - Caption dropout probability: 0.1%
74
 
 
75
 
 
76
 
77
- - LoRA Rank: 8
78
- - LoRA Alpha: 8.0
79
- - LoRA Dropout: 0.1
80
- - LoRA initialisation style: default
81
- - LoRA mode: Standard
82
-
 
 
 
 
 
 
 
 
 
 
83
 
84
- ## Datasets
85
 
86
- ### liqglass-dataset
87
- - Repeats: 0
88
- - Total number of images: 542
89
- - Total number of aspect buckets: 1
90
- - Resolution: 0.262144 megapixels
91
- - Cropped: True
92
- - Crop style: center
93
- - Crop aspect: square
94
- - Used for regularisation data: No
95
 
 
96
 
97
- ## Inference
 
 
98
 
 
99
 
100
  ```python
101
  import torch
@@ -130,5 +109,64 @@ model_output.save("output.png", format="PNG")
130
 
131
  ```
132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
 
 
134
 
 
 
 
 
1
  ---
2
+ license: apache-2.0
3
  base_model: "black-forest-labs/FLUX.2-klein-base-4B"
4
  tags:
5
  - flux2
 
7
  - text-to-image
8
  - image-to-image
9
  - diffusers
 
 
10
  - lora
 
 
11
  - standard
12
+ - macos
13
+ - liquid-glass
14
+ - icon-generation
15
+ - apple-design
16
  pipeline_tag: text-to-image
17
  inference: true
18
  widget:
 
23
  url: ./assets/image_0_0.png
24
  ---
25
 
 
 
 
 
 
 
 
 
 
26
 
 
 
 
 
 
 
 
27
 
28
+ # LIQGLASS β€” macOS 26 Liquid Glass Icon LoRA
29
 
30
+ <div align="center">
31
 
32
+ **A FLUX.2 Klein 4B LoRA fine-tuned to generate macOS Tahoe 26 Liquid Glass style app icons.**
33
 
34
+ [![Model](https://img.shields.io/badge/Base%20Model-FLUX.2%20Klein%204B-blue)](https://huggingface.co/black-forest-labs/FLUX.2-klein-base-4B)
35
+ [![License](https://img.shields.io/badge/License-Apache%202.0-green)](https://www.apache.org/licenses/LICENSE-2.0)
36
+ [![Made by](https://img.shields.io/badge/Made%20by-Andy--ML--And--AI-purple)](https://huggingface.co/Andy-ML-And-AI)
37
 
38
+ </div>
 
 
 
39
 
40
+ ---
41
 
42
+ ## What is this?
43
 
44
+ LIQGLASS is a LoRA adapter for FLUX.2 Klein 4B, trained on 542 hand-curated macOS 26 Tahoe Liquid Glass icons scraped and filtered from the community. It generates app icons that follow Apple's macOS 26 Liquid Glass design language β€” translucent frosted glass squircle shapes, specular highlights, layered depth, and clean minimal symbols.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
+ The trigger word is `LIQGLASS`.
47
 
48
+ ---
49
 
50
+ ## Training Details
51
+
52
+ | Parameter | Value |
53
+ |-----------|-------|
54
+ | Base Model | FLUX.2 Klein 4B Base |
55
+ | Training Framework | SimpleTuner |
56
+ | Steps | 800 |
57
+ | LoRA Rank | 8 |
58
+ | LoRA Alpha | 8 |
59
+ | Learning Rate | 1e-4 |
60
+ | Optimizer | AdamW BF16 |
61
+ | Mixed Precision | BF16 |
62
+ | Dataset | 542 hand-curated macOS 26 Liquid Glass icons |
63
+ | Captioning | Qwen2.5-VL-7B (local, on Kaggle T4 x2) |
64
+ | Resolution | 512px |
65
+ | Trigger Word | `LIQGLASS` |
66
 
67
+ ---
68
 
69
+ ## Usage
 
 
 
 
 
 
 
 
70
 
71
+ ### Recommended: Via app.py
72
 
73
+ ```python
74
+ python app.py
75
+ ```
76
 
77
+ ### With Diffusers + PEFT
78
 
79
  ```python
80
  import torch
 
109
 
110
  ```
111
 
112
+ ## Prompt Template
113
+ LIQGLASS, macOS Liquid Glass style icon, [APP NAME], [SYMBOL DESCRIPTION],
114
+ [COLOR] tinted glass, translucent frosted glass squircle shape,
115
+ [COLOR] gradient background layer with lighter frosted overlay,
116
+ specular highlight on upper left rim, inner glow, light refraction at squircle edges,
117
+ soft inter-layer shadow, 2.5D flat glass design,
118
+ Apple macOS 26 Tahoe design language, 1024x1024, high detail
119
+
120
+ ### Recommended Parameters
121
+
122
+ | Parameter | Value |
123
+ |-----------|-------|
124
+ | Inference Steps | 20–28 |
125
+ | Guidance Scale | 3.5–5.0 |
126
+ | LoRA Strength | 0.8–1.0 |
127
+ | Resolution | 1024x1024 |
128
+
129
+ ---
130
+
131
+ ## Negative Prompt
132
+ ugly, flat matte, no glass effect, blurry, low quality, old style, skeuomorphic,
133
+ glossy blob, Vista style, Windows Aero, circular shape, two separate floating objects,
134
+ hyper realistic CGI, neon glow, particle effects, photographic background,
135
+ distorted symbol, warped, morphed, watermark, signature, border, frame
136
+
137
+ ---
138
+
139
+ ## What to Avoid
140
+
141
+ - ❌ Circular icons β€” must be Apple squircle
142
+ - ❌ Vista/Aero style glossy blobs
143
+ - ❌ Hyper-realistic 3D CGI rendering
144
+ - ❌ Skeuomorphic textures
145
+ - ❌ Symbol distortion or warping
146
+ - ❌ Two physically separated floating objects
147
+ - ❌ Neon glow or particle effects
148
+
149
+ ---
150
+
151
+ ## What Works Well
152
+
153
+ - βœ… Single clean symbol centered in the squircle
154
+ - βœ… One dominant color family per icon
155
+ - βœ… Frosted glass layering with subtle depth
156
+ - βœ… Apple-style gradients (blue, teal, green, purple, amber)
157
+ - βœ… Metallic or white symbols with subtle bevel
158
+ - βœ… Soft specular highlights and inner glow
159
+
160
+ ---
161
+
162
+ ## License
163
+
164
+ This LoRA is released under **Apache 2.0** β€” same as the base FLUX.2 Klein 4B model. Free for personal and commercial use.
165
+
166
+ ---
167
 
168
+ ## Credits
169
 
170
+ - Base model: [FLUX.2 Klein 4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-base-4B) by Black Forest Labs
171
+ - Dataset: 542 macOS 26 Liquid Glass icons curated from [macosicons.com](https://macosicons.com)
172
+ - Trained by: [Andy-ML-And-AI](https://huggingface.co/Andy-ML-And-AI)