Abstract
Architectural photography is defined by the precise interaction between static structures and the dynamic lighting conditions of the "magic hours." Standard neural style transfer (NST) and image-to-image (I2I) translation methods often struggle with this domain, as they frequently introduce geometric distortions and color-bleeding artifacts. This paper presents a specialized framework that disentangles foreground architecture from the background sky, utilizing a two-branch network and novel geometry-preserving losses. The approach achieves superior photorealism and structural integrity compared to state-of-the-art methods.
Introduction
Capturing a building at the perfect moment—such as the golden hour, blue hour, or night—is a cornerstone of architectural photography. While computational photography has made strides in general style transfer, architectural scenes present unique challenges. Buildings are characterized by rigid geometric lines and specific light-reflection properties. Traditional translation models often treat the image as a monolithic entity, leading to "ghosting" artifacts where sky colors leak onto building facades or sharp edges become blurred. To address this, we propose a method that respects the structural rigidity of man-made objects while realistically re-lighting them to match a target time of day.
Methodology
The proposed framework is built upon three core modules designed to maintain high-fidelity results while allowing for dramatic stylistic shifts.
1. Semantic Disentanglement
The system first employs semantic segmentation to separate the image into two distinct components: the foreground (buildings and static structures) and the background (the sky). This separation is critical because the "fluid" nature of the sky requires different translation logic than the "solid" nature of the architecture.
2. Two-Branch Translation Network
Instead of a single generator, the framework utilizes two specialized branches:
- Foreground Branch: Optimized to preserve geometry and ensure lighting consistency across the building's surface.
- Background Branch: Focused on transferring the textures and colors of the sky, such as cloud formations or celestial bodies.
To maintain the structural integrity of the architecture, two novel loss functions are introduced:
- Image Gradient Loss: This ensures that the sharp edges and fine details of the building remain crisp during the translation process.
- Spatial Luminance KL-divergence Loss: By constraining the spatial distribution of luminance, the model learns to alter the color of the light without distorting the underlying shadows that define the building's form.
3. High-Resolution Blending Optimization
After translation, the foreground and background are re-integrated using a Poisson-based blending optimization. This step restores high-frequency details from the original source image, ensuring the final output is high-resolution and free of boundary artifacts. This optimization is highly efficient, performing roughly five times faster than existing high-fidelity techniques like Deep Image Blending (DIB).
The Time-lapse Architectural Dataset
To train and evaluate the model, a new benchmark was established: the Time-lapse Architectural Dataset. This dataset includes:
- Training Set: 21,291 high-resolution images, comprising 16,908 unpaired landmark photos and 4,383 frames from 110 outdoor time-lapse videos.
- Evaluation Set: 1,003 manually labeled photos categorized into four classes: day, golden hour, blue hour, and night.
Unlike previous datasets that focus on natural landscapes, this collection is tailored to the specific compositional requirements of architectural photography.
Experimental Results
The framework was evaluated against several baseline models, including CycleGAN, DRIT++, and AdaIN.
Quantitative Analysis
The proposed method achieved the highest scores in edge-conditioned Structural Similarity (e-SSIM) and Inception Score (IS). In "Day to Golden Hour" translations, the model reached an e-SSIM of 0.6359, significantly outperforming baseline models which typically scored between 0.47 and 0.52. This indicates a much higher level of structural preservation.
Qualitative Analysis and Efficiency
In user studies, participants consistently preferred the results of this method for both photorealism and style consistency. Furthermore, the blending process is computationally efficient, requiring only 0.27 seconds per image, making it suitable for practical applications.
Discussion and Future Work
While the framework produces state-of-the-art results, it remains dependent on the quality of the initial semantic segmentation. Errors in the mask, such as failing to identify thin spires or antennas, can lead to localized artifacts. Future research will explore end-to-end training where the segmentation and translation modules are optimized jointly, potentially allowing the model to correct imperfect masks during the style transfer process. Additionally, the principles of geometry-preserving loss could be extended to other domains, such as portrait photography or complex natural landscapes.
Summary updated