Introduction
Semantic image synthesis is the process of generating photo-realistic images from user-provided label maps—essentially "painting-by-numbers" for AI. While existing models have achieved impressive results, they often struggle with the fine-grained internal structures of objects. For instance, a model might correctly place a "car" in a scene but fail to render sharp wheels, headlights, or windows. This paper introduces a novel framework that leverages the geometric shape of an object to infer its internal part-level layout, leading to significantly more detailed and structurally coherent image generation.
The Challenge: Beyond Coarse Semantic Labels
Traditional semantic synthesis models, such as SPADE, primarily rely on object-level layouts. The fundamental problem is that a single label like "car" or "building" is too coarse to guide the generation of intricate details. A "car" label tells the generator where the vehicle is, but it does not specify where the tires or the windshield should be located.
Humans naturally understand that an object's external boundary implies its internal structure; if we see the silhouette of a car, we know where the wheels must reside. Current models lack this "part-level" awareness, often resulting in "mushy" textures or structural artifacts. The authors propose that an object's shape implicitly contains the blueprint for its parts, and they introduce two key components to capture this relationship: the Shape-aware Position Descriptor (SPD) and the Semantic-shape Adaptive Feature Modulation (SAFM) block.
Methodology
Shape-aware Position Descriptor (SPD)
Inspired by classical computer vision techniques like "Shape Contexts," the SPD characterizes every pixel within an object based on its spatial relationship to the object's contour. For any given pixel, the model calculates the distribution of contour points in a log-polar coordinate space, measuring both distance and angle.
This creates a unique "fingerprint" for every position. For example, a pixel near the bottom-left of a car's boundary will have a distinct SPD compared to a pixel in the center-top. By using log-polar bins, the model becomes more sensitive to nearby contour points than distant ones, mimicking how local geometry typically dictates local part structure.
Semantic-shape Adaptive Feature Modulation (SAFM)
While the SPD provides the "where," the model still needs to know the "what." The SAFM block fuses the semantic map (class information) with the SPD (shape-relative position). It utilizes conditional convolutions, where the network predicts specific kernels based on the semantic class. This allows the generator to apply textures and structures adaptively. For instance, if the shape is a rectangle and the label is "washing machine," the SAFM block ensures the model generates buttons and a circular door; if the same shape is labeled "painting," it generates a canvas texture instead.
Experiments and Results
Quantitative Performance
The model was evaluated on three high-complexity benchmarks: Cityscapes (urban scenes), ADE20K (diverse indoor/outdoor scenes), and COCO-Stuff (complex real-world scenes). The proposed method achieved state-of-the-art (SOTA) results across several metrics:
- Cityscapes: Reached a mean Intersection-over-Union (mIoU) of 70.4, significantly outperforming SPADE (62.3) and OASIS (69.3).
- ADE20K: Demonstrated superior performance with an mIoU of 50.1.
Qualitative Analysis and User Study
Visual comparisons highlight a stark improvement in detail. While competing models often produce blurry blobs for complex parts like car wheels or furniture legs, this method generates sharp, recognizable features that align with the object's perspective. In a blind user study, human participants preferred the images generated by this method over established baselines like SPADE and CC-FPSE more than 60-70% of the time.
Discussion and Limitations
Despite its success, the model has certain limitations. Its ability to infer internal structure is dependent on the training data; if an object class is rare or possesses an extremely unusual shape not seen during training, the model may struggle to predict the correct layout. Additionally, non-rigid bodies—such as humans in complex, uncommon poses—remain a challenge because their internal part-level layouts vary much more significantly than rigid objects like vehicles or buildings.
Conclusion
By introducing shape-awareness into the semantic synthesis pipeline, this research bridges the gap between coarse labels and fine-grained details. The combination of the Shape-aware Position Descriptor and Semantic-shape Adaptive Feature Modulation allows generators to "understand" the relationship between an object's boundary and its internal parts. Future work may involve extending this logic to video synthesis to maintain shape consistency over time or integrating these modules with transformer-based architectures.
Summary updated