File size: 6,000 Bytes
26febce
46ddddd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26febce
46ddddd
 
 
 
 
 
 
9775fbe
46ddddd
 
9775fbe
 
46ddddd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32a9a8c
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
---
license: other
language:
  - en
library_name: diffusers
pipeline_tag: text-to-image
tags:
  - flux
  - flux2
  - vae
  - hdr
  - ultrahd
  - cinematic
  - high-detail
  - image-enhancement
  - texture-recovery
  - sharpness-enhancement
  - color-enhancement
  - microcontrast
  - raw
  - generative-ai
  - stable-diffusion
  - diffusion
  - latent-space
  - photorealistic
  - neural-compression
  - reconstruction
  - fp16
  - inference
  - image-generation
  - visual-quality
  - machine-learning
  - ai-art
  - flux-compatible
model_type: Variational Autoencoder (VAE)
datasets:
  - internal-evaluation-suite
metrics:
  - lpips
  - gradient-energy
  - unique-colors
  - brightness-bias
  - contrast-gain
  - rgb-channel-shift
inference: true
---

# FLUX.2 UltraHD RAW VAE

## Overview

FLUX.2 UltraHD RAW VAE is a high-fidelity enhancement-focused Variational Autoencoder engineered for the FLUX.2 ecosystem. Unlike reconstruction-pure VAEs optimized exclusively for perceptual similarity, UltraHD RAW VAE is tuned for cinematic rendering, HDR enhancement, sharper edge response, texture recovery, and richer gradient reproduction.

The model is fully compatible with all FLUX.2 variants and other models including:

- FLUX.2
- FLUX.2 Klein 9B & 4B
- Ernie

---

# Scientific Assessment

## Design Objective

The primary design goal of UltraHD RAW VAE is not strict latent reconstruction accuracy, but perceptual enhancement quality.

Key optimization targets include:

- Increased texture fidelity
- Enhanced microcontrast
- Expanded color richness
- Sharper edge gradients
- Improved HDR-style rendering
- Stable luminance preservation
- Dynamic range consistency

---

# Quick Assessment

## Observed Visual Characteristics

### Color Enhancement

UltraHD RAW VAE increases effective color richness through:

- Higher unique color utilization
- Expanded HDR gradient smoothness
- Slight saturation enhancement
- Preserved luminance integrity
- Preserved dynamic range behavior

### Detail Recovery

The VAE demonstrates:

- Stronger edge energy
- Sharper fine detail reconstruction
- Increased perceived texture depth
- Enhanced microcontrast behavior

---

# Training Notes

Although the visual enhancement effect may appear subtler compared to previous enhancement VAEs, the underlying optimization process was substantially more difficult.

More than double-digit failed training attempts were required to achieve:

- Stable HDR enhancement
- Low LPIPS divergence
- Contrast preservation
- Brightness neutrality
- Balanced channel behavior

Achieving an LPIPS value near the already extremely low FLUX.2 baseline proved exceptionally challenging.

---

# Direct Metric Comparison

## Evaluation Setup

- 150-image benchmark comparison
- Tested directly against Base FLUX.2 VAE
- Metrics computed across identical latent reconstruction conditions

---

# LPIPS (Perceptual Similarity)

| Model | LPIPS |
|---|---|
| FLUX Base | 0.0073 |
| UltraHD RAW VAE | 0.0303 |

### Difference

- 4.1× higher than FLUX Base

### Interpretation

The model intentionally trades strict reconstruction fidelity for perceptual enhancement quality.

Despite the increase, both values remain significantly below typical human perceptual thresholds.

---

# Gradient Energy

| Model | Gradient Energy |
|---|---|
| FLUX Base | 405.5 |
| UltraHD RAW VAE | 633.5 |

### Difference

- +56% increase

### Interpretation

Substantially sharper detail rendering and stronger edge definition.

---

# Unique Colors

| Model | Unique Colors |
|---|---|
| FLUX Base | 37,369 |
| UltraHD RAW VAE | 39,184 |

### Difference

- +4.9% increase

### Interpretation

Improved color richness and smoother HDR tonal transitions.

---

# Brightness Bias

| Model | Brightness Bias |
|---|---|
| FLUX Base | 0.0047 |
| UltraHD RAW VAE | 0.0030 |

### Interpretation

Excellent luminance preservation with slightly improved brightness neutrality.

---

# Contrast Gain

| Model | Contrast Gain |
|---|---|
| FLUX Base | 0.984 |
| UltraHD RAW VAE | 0.983 |

### Interpretation

Near-identical dynamic range and HDR tone retention.

---

# RGB Channel Shift Analysis

## Red Shift

| Model | Red Shift |
|---|---|
| FLUX Base | +0.0048 |
| UltraHD RAW VAE | +0.0188 |

Interpretation:

- Slightly warmer red response
- Improved cinematic warmth

---

## Green Shift

| Model | Green Shift |
|---|---|
| FLUX Base | -0.0037 |
| UltraHD RAW VAE | -0.0104 |

Interpretation:

- Minor reduction in green balance
- Helps reduce sterile tonal appearance

---

## Blue Shift

| Model | Blue Shift |
|---|---|
| FLUX Base | +0.0181 |
| UltraHD RAW VAE | +0.0434 |

Interpretation:

- Stronger blue/cyan HDR emphasis
- Enhanced atmospheric rendering

---

# Summary

FLUX.2 UltraHD RAW VAE is an enhancement-oriented VAE optimized for:

- HDR rendering
- Texture recovery
- Cinematic sharpness
- Richer gradients
- Enhanced microcontrast
- Improved perceptual detail

Compared to the base FLUX VAE, UltraHD RAW VAE produces:

- Significantly stronger edge detail
- Improved color richness
- Better texture clarity
- Enhanced HDR-style rendering
- Stable brightness preservation
- Preserved contrast behavior

The model is best suited for users prioritizing perceptual image quality and cinematic rendering over strict pixel-perfect reconstruction fidelity.

---

# Recommended Usage

Recommended for:

- Photorealistic generations
- Cinematic compositions
- HDR workflows
- Texture-heavy scenes
- High-detail portrait rendering
- Atmospheric lighting
- Stylized realism

Less suitable for:

- Pixel-faithful reconstruction tasks
- Scientific image preservation
- Reconstruction benchmarking applications

---

# Compatibility

Compatible with:

- FLUX.2
- FLUX.2 Klein
- Ernie

Precision support:

- FP16
- BF16
- FP32

---

# Disclaimer

This VAE intentionally modifies reconstruction characteristics to improve perceptual aesthetics. Metric increases in LPIPS are expected and are part of the enhancement-oriented design philosophy.
--