TL;DR
DITMO (Semantic Aware Diffusion Inverse Tone Mapping) is a new framework that uses generative diffusion models to "hallucinate" lost details in overexposed regions of standard images. By guiding the process with a semantic graph, it ensures that reconstructed highlights—like clouds in a sky or their reflections in water—are both visually plausible and physically consistent, effectively turning flat SDR images into rich HDR content.
What Problem Does This Paper Address?
Digital camera sensors have a limited dynamic range. When a scene has very bright areas (like a sunny sky or a glowing lamp), the sensor often "clips" these regions, recording them as pure white pixels. This results in a total loss of texture and detail.
Traditional Inverse Tone Mapping Operators (iTMOs) try to fix this by stretching the dynamic range of a Standard Dynamic Range (SDR) image back into High Dynamic Range (HDR). While they are good at boosting the brightness of clipped areas, they usually can't recover the lost details. You end up with a bright, but flat and featureless, white blob. DITMO addresses this "information gap" by using generative AI to synthesize plausible new details where the original data was lost.
Methods
The DITMO pipeline consists of three main stages:
- Semantic Segmentation & Masking: The system first identifies what is in the image (e.g., sky, water, vegetation) using a segmentation model. It then creates a "saturation mask" to pinpoint exactly which pixels are clipped.
- Ordered Semantic Graph: This is a key innovation. To ensure the generated content is consistent across the whole image, the authors use a Directed Acyclic Graph (DAG). This graph dictates the order of inpainting. For example, it ensures the sky is inpainted first, and then its specific features (like cloud patterns) are used to guide the inpainting of reflections in a lake.
- Diffusion Inpainting & Exposure Lifting: DITMO uses a latent text-to-image diffusion model (like Stable Diffusion or ControlNet) to fill the clipped masks based on semantic prompts (e.g., "cloudy sky").
Crucially, the authors developed a principled formulation to "lift" these generated SDR details into the HDR domain. They treat the inpainting process as a form of virtual bracketing, predicting the specific exposure value at which the hallucinated content would have been captured by a real camera, then merging it with the original image using standard HDR techniques.
Datasets
The authors evaluated DITMO using two primary datasets:
- Fairchild Dataset: Used for reference-based comparisons against ground-truth HDR images.
- MIT-5K Dataset: A large collection of real-world images used for no-reference quality metrics and subjective user studies.
Key Insights and Ideas
- Inpainting as Virtual Bracketing: Instead of just trying to "guess" HDR values directly, DITMO generates plausible SDR content and then mathematically calculates how to scale it into the HDR space. This mirrors the physical process of merging multiple exposures.
- Semantic Consistency Matters: Without the Ordered Semantic Graph, a generative model might put a clear blue sky in the background but a cloudy reflection in the water. The graph enforces a logical flow of information to keep the scene coherent.
- Perceptual Fidelity vs. Ground Truth: The authors acknowledge that generative methods might not perfectly recreate the exact clouds that were there in reality (which is impossible once data is clipped). However, they argue—and prove through testing—that a plausible hallucination is far more visually satisfying than a flat white patch.
Key Results
DITMO was compared against several state-of-the-art iTMOs, including Eilertsen et al. and Santos et al.
-
Qualitative Superiority: As seen in the comparison below, while other methods leave the sky as a greyish void, DITMO inpaints realistic clouds and textures. Comparison showing DITMO reconstructing a plausible sky and clouds where other methods fail.
-
Subjective Preference: In a user study (N=20), participants significantly preferred DITMO's results over existing methods, citing higher visual quality and realism.
- Efficiency: DITMO is significantly faster than other generative approaches like GlowGAN, performing inference in about 45 seconds per image compared to GlowGAN's 14 minutes.
Limitations and Future Work
The primary limitation is the reliance on the segmentation model. If the model misidentifies a region (e.g., calling a white wall a "sky"), the diffusion model will inpaint incorrect details. The quality also depends on the prompt dictionary; if the prompts aren't expressive enough, the results might lack variety.
For future work, the authors plan to extend this approach to HDR video, which will require maintaining temporal consistency so that hallucinated details don't "flicker" between frames. They also aim to investigate automated ways to generate more descriptive prompts for the inpainting stage.
Summary updated