TL;DR
Text2Light is a novel zero-shot, text-driven framework that generates high-fidelity, 4K+ resolution High Dynamic Range (HDR) panoramas from free-form text descriptions without requiring paired text-image training data. By decoupling the task into text-driven low-dynamic-range (LDR) panorama generation and continuous spherical super-resolution inverse tone mapping, it enables intuitive, high-quality environmental lighting generation for 3D graphics and virtual reality.
What Problem Does This Paper Address?
High Dynamic Range Images (HDRIs), specifically 360-degree panoramas, are essential in computer graphics for creating photorealistic lighting and reflections in 3D scenes. However, physically capturing HDRIs requires specialized equipment and is both expensive and time-consuming.
While generative AI could offer an intuitive way for users to create these environments using text prompts, existing text-to-image models face severe limitations when applied to HDR panoramas:
- Resolution Constraints: Standard generative models struggle to synthesize scene-level content at ultra-high resolutions (4K+) with sufficient fine-grained detail.
- Structural Coherence: Maintaining holistic semantics and structural continuity across a seamless 360-degree spherical view is incredibly difficult.
- Data Scarcity: Paired text-panorama datasets are virtually non-existent, making supervised training impractical.
- Unstable HDR Regression: Directly predicting high-dynamic-range luminance values from text often leads to highly unstable training and poor visual quality.
Methods
To overcome these challenges, Text2Light decomposes the generation process into two distinct stages:
Stage I: Text-Driven LDR Panorama Generation
This stage generates a low-resolution (1024×512) LDR panorama based solely on a text prompt.
- Dual-Codebook Representation: Instead of a single discrete codebook, the authors use a hierarchical approach. A global codebook captures coarse global appearance and scene-level semantics, while a local codebook focuses on fine-grained textures.
- Text-Conditioned Global Sampler: To achieve zero-shot generation without paired text-panorama data, the framework leverages a pre-trained CLIP model. It perturbs image features during training to create pseudo-text features, using K-Nearest Neighbors (KNN) and contrastive learning to align text embeddings with the global codebook.
- Structure-Aware Local Sampler: This module synthesizes the panorama patch-by-patch using a sliding window. It is guided by a novel Spherical Positional Encoding (SPE) that uses Fourier features to bake the 360-degree spherical geometry directly into the model, preventing boundary seams and repetitive patterns.
Stage II: Super-Resolution Inverse Tone Mapping (SR-iTMO)
This stage simultaneously upscales the LDR panorama's spatial resolution and dynamic range.
- Continuous Spherical Representation: The LDR panorama is encoded into patch-wise structured latent codes anchored to a sphere. This allows the model to treat the panorama as a continuous field, enabling it to query HDR values at any arbitrary resolution via area-based interpolation.
- Separated MLPs: Rather than using a heavy fully convolutional network, Stage II employs two tiny, specialized Multi-Layer Perceptrons (MLPs): $f_{sr}$ for spatial super-resolution and $f_{itmo}$ for inverse tone mapping.
Datasets
The authors introduced a new benchmark dataset to facilitate high-quality panorama generation:
- HDR360-UHD: Contains 4,392 high-quality HDR panoramas collected from online resources and existing limited datasets. It features 1,891 outdoor scenes and 2,501 indoor scenes, with resolutions ranging from 4K to 8K.
- Data Augmentation: The dataset was expanded to 48,312 samples by exploiting the horizontal cyclicity of panoramas (rotating them clockwise along the sphere 10 times).
- Text Prompts: The authors also collected 1,901 text descriptions used exclusively for evaluation during inference.
Key Insights and Ideas
- De-coupling Layout from Luminance: Trying to map text directly to high-resolution HDR pixels is an optimization nightmare. Separating the pipeline into semantic layout generation (LDR) and continuous spherical upscaling (HDR) makes the problem highly tractable.
- The Power of Dual Codebooks: A single codebook typically fails to balance global layout and local texture sharpness. The coarse-to-fine dual-codebook architecture ensures the synthesized scene makes sense as a whole while maintaining crisp details when zooming in.
- Geometry as an Inductive Bias: Standard coordinate networks struggle with panoramic boundaries. By mapping pixels to 3D points on a unit sphere and applying Fourier features (SPE), the model naturally respects the cyclical, spherical nature of 360-degree views.
- Continuous Fields for Arbitrary Scaling: Representing the image as a continuous field anchored to a sphere allows the SR-iTMO module to upscale images to arbitrary resolutions (e.g., 8x scaling) without being constrained by a fixed pixel grid.
Key Results
- LDR Generation Quality: Text2Light achieved state-of-the-art performance on LDR panorama generation, scoring the lowest Fréchet Inception Distance (FID of 10.72) and the highest Inception Score (IS of 6.65), beating StyleGAN2, StyleGAN3, and InfinityGAN.
- Zero-Shot Text Alignment: In text-driven synthesis benchmarks, Text2Light significantly outperformed optimization-based methods like StyleCLIP and FuseDream, achieving an FID of 32.01 and vastly superior text consistency scores in user studies.
- Inverse Tone Mapping Accuracy: For the HDR conversion task, the proposed SR-iTMO achieved the lowest Mean Absolute Error (MAE of 0.1442) compared to convolutional alternatives like LANet and ExpandNet.
- Downstream Application: The generated 4K+ HDR panoramas were successfully used as environment maps in rendering engines, producing realistic shadows and specular highlights on 3D assets.
Limitations and Future Work
- Text Bias from CLIP: Because the framework relies entirely on a frozen CLIP model for zero-shot text alignment, it inherits CLIP's semantic biases. For example, the word "silhouette" accidentally forces the model to generate completely black, textureless regions.
- Handling Uncommon Scenery: The model struggles to synthesize scene-level concepts that are rare in the dataset. For instance, given the prompt "tree and aurora rays," the model typically renders the trees but completely ignores the aurora.
- Future Directions: The authors suggest that further exploitation of the joint image-text space within vision-language models could resolve these zero-shot synthesis blind spots.
Summary updated