Abstract
Text2Light is a novel framework designed to generate high-quality, 4K+ resolution High Dynamic Range (HDR) panoramas from simple text descriptions (e.g., "sunset by the ocean"). By leveraging a dual-codebook discrete representation and a continuous spherical neural field, the model synthesizes globally coherent 360-degree scenes without requiring paired text-image training data. These generated panoramas serve as ready-to-use lighting environments for photorealistic 3D rendering, bridging the gap between natural language and professional-grade graphics assets.
Introduction
High Dynamic Range Images (HDRIs), specifically 360-degree panoramas, are the "gold standard" for lighting 3D scenes in computer graphics and virtual reality. They capture the full range of light in a real-world environment, allowing digital objects to reflect and be illuminated by their surroundings with high fidelity.
Despite their utility, creating these assets is traditionally labor-intensive. Capturing high-quality HDRIs requires specialized 360-degree cameras, multiple exposures, and complex stitching processes. While generative AI has advanced significantly in standard image synthesis, panoramas present three unique challenges:
- Resolution Requirements: While 1K resolution suffices for standard images, it appears blurry in a 360-degree projection; 4K+ is the minimum requirement for professional use.
- Geometric Coherence: Standard generative models often produce artifacts at the poles or visible seams where the 360-degree image wraps around.
- Data Scarcity: There is a lack of large-scale datasets containing paired text descriptions and high-quality HDR panoramas, making traditional supervised learning nearly impossible.
The Text2Light Framework
The authors propose a two-stage pipeline that operates in a "zero-shot" manner, utilizing the pre-trained CLIP model to bridge the gap between text and visual concepts.
Stage I: Text-Driven LDR Generation
The first stage focuses on creating a 1K Low Dynamic Range (LDR) panorama that establishes the scene's composition.
- Dual-Codebook Representation: Rather than using a single monolithic model, Text2Light employs two "codebooks"—visual vocabularies that discretize the image space. A global codebook captures holistic semantics and scene layout, while a local codebook focuses on fine-grained textures.
- Text-Conditioned Global Sampler: Using CLIP, the model processes input text to sample relevant "visual words" from the global codebook, defining the structural foundation of the scene.
- Structure-aware Local Sampler: This module synthesizes the image patch-by-patch. Crucially, it is guided by Spherical Positional Encoding (SPE). SPE provides the model with its exact coordinates on the sphere, ensuring that the "top" consistently represents the sky and the "bottom" represents the ground, maintaining a seamless wrap-around without polar distortion.
Stage II: Super-Resolution Inverse Tone Mapping (SR-iTMO)
The second stage takes the 1K LDR image and simultaneously upscales it to 4K+ resolution while expanding its dynamic range (e.g., making the sun significantly brighter than surrounding white surfaces).
- Continuous Representation: Instead of treating the image as a fixed grid of pixels, the model treats it as a continuous field on a sphere. This allows the system to query color and brightness at any arbitrary coordinate, enabling infinite upscaling.
- MLP-based Upscaling: Two Multi-Layer Perceptrons (MLPs) are utilized: one to handle spatial resolution and another to predict high-fidelity HDR luminance values.
Dataset and Evaluation
To facilitate this research, the authors introduced HDR360-UHD, a high-quality benchmark consisting of 4,393 HDR panoramas (1,891 outdoor and 2,501 indoor) with resolutions ranging from 4K to 8K. To expand the training set, they utilized horizontal rotation—exploiting the cyclicity of panoramas—to generate over 48,000 samples. Additionally, 1,901 scene descriptions were collected for evaluation purposes.
Key Results
Text2Light demonstrates superior performance across both quantitative and qualitative metrics:
- Quantitative Performance: The framework achieved a Fréchet Inception Distance (FID) of 10.72, significantly outperforming established baselines like StyleGAN2 (14.62) and InfinityGAN.
- Qualitative Consistency: User studies indicated a strong preference for Text2Light in terms of perceptual quality and "text consistency" (the degree to which the generated image matches the prompt).
- Practical Utility: Generated HDRIs were successfully integrated into rendering engines like Blender, providing realistic lighting and reflections for 3D assets that are virtually indistinguishable from real-world captures.
Insights and Limitations
A key innovation of Text2Light is the decoupling of resolution and dynamic range. By separating LDR generation from the SR-iTMO process, the model avoids the instability inherent in generating high-frequency HDR details from scratch. Furthermore, the use of CLIP allows the model to associate visual concepts with text without ever seeing a human-written caption for a panorama during training.
However, the model is not without limitations. It inherits the inherent biases of the pre-trained CLIP model; for instance, the prompt "silhouette" may result in an entirely black image due to CLIP's strong association with high-contrast dark regions. Additionally, the model may struggle with extremely rare environments (e.g., "aurora borealis") that are underrepresented in the training data. Future work may involve further exploiting the joint image-text space of CLIP to synthesize more complex, multi-object scenes or extending the framework to dynamic, time-varying HDR environments.
Summary updated