Image-to-Image
Diffusers
Safetensors
English
sdxl
vae
hdr
image-generation
photorealistic
color-enhancement
Instructions to use Felldude/SDXL-HDR-VAE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Felldude/SDXL-HDR-VAE with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Felldude/SDXL-HDR-VAE", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
File size: 4,847 Bytes
c24653b ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 c24653b ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 ebf1d7d 5715e87 | 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 | ---
license: apache-2.0
language:
- en
tags:
- sdxl
- vae
- hdr
- image-generation
- photorealistic
- color-enhancement
pipeline_tag: image-to-image
library_name: diffusers
base_model:
- stabilityai/sdxl-vae
- stabilityai/stable-diffusion-xl-base-1.0
---
# HDR VAE v3
HDR VAE v3 is the most capable release in the HDR VAE series to date, delivering substantial improvements in perceived image quality while maintaining strong reconstruction fidelity.
Compared to the standard SDXL VAE, HDR VAE v3 focuses on preserving detail, expanding color reproduction, and increasing visual impact. The result is sharper images, richer colors, improved edge retention, and a noticeably larger effective color gamut.
These gains are visible in standard workflows and become even more pronounced when working in high bit-depth pipelines.
---
## Highlights
✨ Sharper details and textures
🎨 Expanded color volume and color diversity
🌈 Richer saturation without excessive clipping
📈 Improved edge preservation
🔍 Better retention of fine image structure
⚡ Slightly increased dynamic range and contrast
---
## At a Glance
| Category | Winner |
|-----------|----------|
| Reconstruction Accuracy | SDXL Base VAE |
| Sharpness | HDR VAE v3 |
| Edge Preservation | HDR VAE v3 |
| Color Gamut | HDR VAE v3 |
| Color Diversity | HDR VAE v3 |
| Saturation | HDR VAE v3 |
| Visual Impact | HDR VAE v3 |
| Scientific Fidelity | SDXL Base VAE |
The base SDXL VAE remains slightly stronger for pure reconstruction metrics, while HDR VAE v3 produces significantly more visually compelling outputs.
---
# Evaluation Results
## Reconstruction Fidelity
HDR VAE v3 remains very close to the original SDXL VAE in structural accuracy.
| Model | SSIM |
|---------|---------|
| SDXL Base VAE | **0.8555** |
| HDR VAE v3 | 0.8481 |
A small SSIM reduction is expected for enhancement-oriented VAEs. In exchange, HDR VAE v3 delivers substantial gains in perceived image quality.
---
## Detail Preservation
One of the largest improvements in HDR VAE v3 is the retention of fine detail.
### Sharpness (Laplacian Variance)
| Model | Value |
|---------|---------|
| Ground Truth | 172.68 |
| SDXL Base VAE | 102.12 |
| HDR VAE v3 | **165.55** |
HDR VAE v3 remains remarkably close to the source image while avoiding the softening commonly seen with the default SDXL VAE.
### Edge Density
| Model | Difference from Ground Truth |
|---------|---------|
| SDXL Base VAE | -24.8% |
| HDR VAE v3 | **-7.3%** |
The improvement in edge retention helps preserve texture, architectural detail, hair, fabric, and other fine structures.
---
## Color Performance
Color reproduction is where HDR VAE v3 shows its largest gains.
### LAB Color Volume
| Model | Value |
|---------|---------|
| Ground Truth | 1.387M |
| SDXL Base VAE | 1.297M |
| HDR VAE v3 | **1.822M** |
This represents roughly a **38% increase** in color volume over the source image.
### Saturation
| Model | Value |
|---------|---------|
| Ground Truth | 118.96 |
| SDXL Base VAE | 118.27 |
| HDR VAE v3 | **139.81** |
Colors appear more vibrant, richer, and more expressive while maintaining overall image coherence.
### Color Diversity
| Metric | SDXL Base VAE | HDR VAE v3 |
|----------|----------|----------|
| Quantized Colors | -10.1% | **+16.6%** |
| Unique Colors | +1.4K | **+17.0K** |
HDR VAE v3 consistently produces a wider variety of distinguishable colors throughout the image.
---
## Dynamic Range & Contrast
HDR VAE v3 introduces modest but measurable improvements in image depth and contrast.
| Metric | Ground Truth | SDXL Base VAE | HDR VAE v3 |
|----------|----------|----------|----------|
| Brightness | 68.645 | 68.928 | **69.740** |
| Contrast | 56.36 | 55.56 | **56.62** |
| Dynamic Range | 244.3 | 243.0 | **246.3** |
These changes contribute to a stronger HDR-like appearance without dramatically altering image balance.
---
# Recommended Usage
## Choose SDXL Base VAE if you need
- Maximum reconstruction fidelity
- Scientific or medical imaging
- Archival preservation workflows
- Exact reference matching
- Conservative image processing
## Choose HDR VAE v3 if you need
- A better default VAE for image generation
- Stronger photorealism
- Sharper textures and facial details
- Richer color reproduction
- Improved environmental and architectural renders
- More visually striking outputs
- Enhanced presentation quality
---
# Conclusion
HDR VAE v3 intentionally trades a small amount of reconstruction accuracy for substantial gains in perceived image quality.
While the SDXL Base VAE remains the better choice for strict numerical fidelity, HDR VAE v3 delivers superior sharpness, edge retention, color reproduction, and overall visual impact, making it the recommended choice for most generative image workflows. |