Introduction
Conditional image synthesis, the task of generating realistic images from semantic label maps, has seen significant progress with the advent of models like SPADE. However, a persistent challenge remains: "example-guided" synthesis, where a reference image dictates the style of the output. Existing methods often require the exemplar to be spatially aligned with the target layout (e.g., a face photo for a face sketch). In real-world scenarios, such as applying the aesthetic of a coastal sunset to a mountain range layout, the semantic and geometric structures are inherently unaligned. This paper introduces a framework designed for unaligned, unstructured scene synthesis using a novel attention mechanism and a self-supervised training strategy.
Methodology
The proposed architecture addresses the alignment gap through three primary components: feature extraction, alignment via attention, and synthesis.
Masked Spatial-Channel Attention (MSCA)
The core innovation is the MSCA module, which decouples style extraction from style application. It employs a two-stage process:
- Spatial Attention: Identifies $K$ independent regional styles within the exemplar (e.g., sky textures, foliage colors).
- Channel Attention: Determines how to broadcast these regional styles onto the target semantic map.
- Feature Masking: A gating mechanism filters out features from the exemplar that are irrelevant to the target layout (e.g., ignoring a car in the reference if the target has none).
Patch-Based Self-Supervision
Training for unaligned synthesis is difficult due to the lack of ground-truth pairs (different images of the same scene in the same style). To overcome this, the authors propose a patch-based self-supervision trick. By extracting two different patches from the same image, the model can be trained to reconstruct one patch using the other as a style guide, leveraging the inherent stylistic consistency within a single photograph.
Experimental Results
The model was evaluated on the COCO-stuff dataset, specifically focusing on complex outdoor landscapes. The framework was tested across three scenarios: self-reconstruction, mirroring, and retrieval-based synthesis.
Quantitative and Qualitative Performance
The proposed model significantly outperformed the SPADE-VAE baseline. On the mirroring task, it achieved a PSNR of 16.95 and an FID of 83.20 (compared to SPADE-VAE's 15.72 PSNR and 89.58 FID). Qualitatively, the model demonstrates superior "style-structure swapping" capabilities, successfully blending disparate layouts and aesthetics into plausible composite scenes.
Interpretability and Flexibility
A key advantage of the MSCA module is its interpretability; the resulting attention maps reveal exactly which parts of the reference image inform specific regions of the output. Furthermore, the model supports advanced applications such as style interpolation—smoothly transitioning between different reference styles—and scene extrapolation.
Conclusion
This work presents a robust solution for example-guided scene synthesis that does not rely on aligned data. By combining Masked Spatial-Channel Attention with patch-based self-supervision, the model achieves state-of-the-art performance in generating realistic, stylistically consistent images from unaligned references. Future work will focus on improving retrieval-based synthesis and extending the framework to more granular, interactive content manipulation.
Summary updated