Abstract
We present a novel domain adaptation framework that uses morphologic segmentation to translate images from arbitrary input domains (real and synthetic) into a uniform output domain. Our framework is based on an established image-to-image translation pipeline that allows us to first transform the input image into a generalized representation that encodes morphology and semantics—the edge-plus-segmentation map (EPS)—which is then transformed into an output domain. Images transformed into the output domain are photo-realistic and free of artifacts that are commonly present across different real (e.g., lens flare, motion blur, etc.) and synthetic (e.g., unrealistic textures, simplified geometry, etc.) datasets. Our goal is to establish a preprocessing step that unifies data from multiple sources into a common representation that facilitates training downstream tasks in computer vision.
Introduction
Deep learning models for autonomous driving and urban scene understanding require vast amounts of high-quality labeled data. While synthetic data from simulators like CARLA is easily generated with perfect labels, it often fails to generalize to real-world scenarios due to the "sim-to-real" gap. Conversely, real-world datasets like KITTI or Cityscapes are often limited by specific sensor characteristics, lighting conditions, or environmental artifacts.
Existing domain adaptation methods typically attempt to map synthetic images directly to a specific real-world target domain. However, this often results in the preservation or introduction of domain-specific artifacts. We propose a different approach: translating all input data—regardless of source—into a unified, "neutral" photo-realistic domain.
The Morphologic Segmentation Pipeline
The core of our framework is a two-step pipeline that abstracts scene information into an intermediate representation called the Edge-Plus-Segmentation (EPS) map.
- EPS Map Generation: The input image is processed by two parallel networks. A DeepLabv3+ model performs semantic segmentation to identify object categories, while a DexiNed-f network performs edge detection to capture the fine-grained structure and boundaries of objects. These outputs are merged into the EPS map, which preserves the morphology and semantics of the scene while discarding textures and lighting artifacts.
- Image Synthesis: A GAN (specifically pix2pixHD) is trained to "re-render" these EPS maps into a high-quality output domain. To ensure the model generates a generalized representation rather than overfitting to a specific dataset, we trained it on approximately 45 hours of diverse urban footage from YouTube.
Key Advantages of the EPS Representation
The EPS representation offers several critical advantages for domain adaptation:
- Preservation of Fine Details: Unlike standard semantic maps, the inclusion of edges provides the synthesis network with structural guidance, allowing it to reconstruct complex geometries like fences or vehicle contours.
- Artifact Reduction: By reducing real images to their morphologic essentials, we effectively strip away "noise" such as motion blur, lens flares, and sensor artifacts.
- Style Agnosticism: Because the GAN only receives the EPS map, it treats synthetic and real inputs identically, producing a consistent visual style across all data sources.
Experimental Evaluation
We evaluated our framework across four diverse datasets: CARLA and FCAV (synthetic), and Cityscapes and KITTI (real).
Quantitative Performance: We measured the consistency of our translation by comparing the semantic segmentation of the synthesized output back to the original input. We achieved Mean Intersection-over-Union (mIoU) scores ranging from 0.380 on CARLA to 0.557 on Cityscapes, indicating high structural fidelity.
Domain Unification: Using t-SNE visualizations, we demonstrated that while raw images from different datasets form distinct clusters, images processed through our EPS pipeline are much more uniformly distributed. This confirms that our method successfully minimizes the domain shift between disparate data sources.
Conclusion
Our morphologic segmentation framework provides a robust preprocessing step for computer vision tasks. By unifying diverse datasets into a single, artifact-free representation, we enable models to be trained on a wider variety of data with reduced risk of overfitting to specific domain characteristics. Future work will focus on improving temporal consistency for video applications and further refining the underlying segmentation and edge detection components.
Summary updated