File size: 5,851 Bytes
0a3c2a2
8bdedba
0a3c2a2
 
 
 
 
 
 
 
 
8bdedba
 
 
 
0a3c2a2
 
dfb5404
 
 
 
 
 
0a3c2a2
 
 
 
8bdedba
0a3c2a2
8bdedba
0a3c2a2
8bdedba
0a3c2a2
8bdedba
 
 
0a3c2a2
8bdedba
0a3c2a2
8bdedba
0a3c2a2
8bdedba
0a3c2a2
8bdedba
0a3c2a2
8bdedba
0a3c2a2
8bdedba
0a3c2a2
8bdedba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0a3c2a2
8bdedba
0a3c2a2
8bdedba
0a3c2a2
8bdedba
0a3c2a2
8bdedba
 
 
0a3c2a2
8bdedba
0a3c2a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8bdedba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0a3c2a2
8bdedba
0a3c2a2
8bdedba
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
---
license: apache-2.0
base_model: "black-forest-labs/FLUX.2-klein-base-4B"
tags:
  - flux2
  - flux2-diffusers
  - text-to-image
  - image-to-image
  - diffusers
  - lora
  - standard
  - macos
  - liquid-glass
  - icon-generation
  - apple-design
pipeline_tag: text-to-image
inference: true
widget:
- text: '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'
  parameters:
    negative_prompt: 'ugly, flat, matte, no glass effect, blurry, low quality, old style, skeuomorphic, glossy blob, vista style'
  output:
    url: ./assets/image_0_0.png
---



# LIQGLASS β€” macOS 26 Liquid Glass Icon LoRA

<div align="center">

**A FLUX.2 Klein 4B LoRA fine-tuned to generate macOS Tahoe 26 Liquid Glass style app icons.**

[![Model](https://img.shields.io/badge/Base%20Model-FLUX.2%20Klein%204B-blue)](https://huggingface.co/black-forest-labs/FLUX.2-klein-base-4B)
[![License](https://img.shields.io/badge/License-Apache%202.0-green)](https://www.apache.org/licenses/LICENSE-2.0)
[![Made by](https://img.shields.io/badge/Made%20by-Andy--ML--And--AI-purple)](https://huggingface.co/Andy-ML-And-AI)

</div>

---

## What is this?

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.

The trigger word is `LIQGLASS`.

---

## Training Details

| Parameter | Value |
|-----------|-------|
| Base Model | FLUX.2 Klein 4B Base |
| Training Framework | SimpleTuner |
| Steps | 800 |
| LoRA Rank | 8 |
| LoRA Alpha | 8 |
| Learning Rate | 1e-4 |
| Optimizer | AdamW BF16 |
| Mixed Precision | BF16 |
| Dataset | 542 hand-curated macOS 26 Liquid Glass icons |
| Captioning | Qwen2.5-VL-7B (local, on Kaggle T4 x2) |
| Resolution | 512px |
| Trigger Word | `LIQGLASS` |

---

## Usage

### Recommended: Via app.py 

```python
python app.py
```

### With Diffusers + PEFT

```python
import torch
from diffusers import DiffusionPipeline

model_id = 'black-forest-labs/FLUX.2-klein-base-4B'
adapter_id = 'Andy-ML-And-AI/Andy-ML-And-AI/LIQGLASS-klein-lora'
pipeline = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16) # loading directly in bf16
pipeline.load_lora_weights(adapter_id)

prompt = "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"
negative_prompt = 'ugly, flat, matte, no glass effect, blurry, low quality, old style, skeuomorphic, glossy blob, vista style'

## Optional: quantise the model to save on vram.
## Note: The model was quantised during training, and so it is recommended to do the same during inference time.
from optimum.quanto import quantize, freeze, qint8
quantize(pipeline.transformer, weights=qint8)
freeze(pipeline.transformer)
    
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
model_output = pipeline(
    prompt=prompt,
    negative_prompt=negative_prompt,
    num_inference_steps=20,
    generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(42),
    width=512,
    height=512,
    guidance_scale=None,
).images[0]

model_output.save("output.png", format="PNG")

```

## Prompt Template
LIQGLASS, macOS Liquid Glass style icon, [APP NAME], [SYMBOL DESCRIPTION],
[COLOR] tinted glass, translucent frosted glass squircle shape,
[COLOR] gradient background layer with lighter frosted overlay,
specular highlight on upper left rim, inner glow, light refraction at squircle edges,
soft inter-layer shadow, 2.5D flat glass design,
Apple macOS 26 Tahoe design language, 1024x1024, high detail

### Recommended Parameters

| Parameter | Value |
|-----------|-------|
| Inference Steps | 20–28 |
| Guidance Scale | 3.5–5.0 |
| LoRA Strength | 0.8–1.0 |
| Resolution | 1024x1024 |

---

## Negative Prompt
ugly, flat matte, no glass effect, blurry, low quality, old style, skeuomorphic,
glossy blob, Vista style, Windows Aero, circular shape, two separate floating objects,
hyper realistic CGI, neon glow, particle effects, photographic background,
distorted symbol, warped, morphed, watermark, signature, border, frame

---

## What to Avoid

- ❌ Circular icons β€” must be Apple squircle
- ❌ Vista/Aero style glossy blobs
- ❌ Hyper-realistic 3D CGI rendering
- ❌ Skeuomorphic textures
- ❌ Symbol distortion or warping
- ❌ Two physically separated floating objects
- ❌ Neon glow or particle effects

---

## What Works Well

- βœ… Single clean symbol centered in the squircle
- βœ… One dominant color family per icon
- βœ… Frosted glass layering with subtle depth
- βœ… Apple-style gradients (blue, teal, green, purple, amber)
- βœ… Metallic or white symbols with subtle bevel
- βœ… Soft specular highlights and inner glow

---

## License

This LoRA is released under **Apache 2.0** β€” same as the base FLUX.2 Klein 4B model. Free for personal and commercial use.

---

## Credits

- Base model: [FLUX.2 Klein 4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-base-4B) by Black Forest Labs
- Dataset: 542 macOS 26 Liquid Glass icons curated from [macosicons.com](https://macosicons.com)
- Trained by: [Andy-ML-And-AI](https://huggingface.co/Andy-ML-And-AI)