Abstract
Standard image-to-image (i2i) translation models often prioritize global scene structure, frequently failing to capture subtle, localized transformations. This work introduces the concept of "local domains"—spatially defined sub-regions such as lane markings or road textures—to guide patch-based Generative Adversarial Networks (GANs). By leveraging geometric priors, the proposed framework enables the realistic "hallucination" of unseen environments, such as degraded roads or snowy streets, using as few as 15 training images. Experimental results demonstrate significant performance gains in downstream tasks like lane detection and semantic segmentation when trained on these hallucinated datasets.
Introduction
Image-to-image translation models, such as CycleGAN, have achieved remarkable success in global style transfers, such as converting summer scenes to winter or photographs into paintings. However, these models often struggle with "local" transformations that do not alter the overall layout of a scene. For instance, simulating a highway without lane markings for autonomous vehicle testing is challenging for standard GANs; they may alter the color of the asphalt or sky but leave the lines intact because those lines represent a small fraction of the global image pixels.
This limitation is a significant hurdle for safety-critical applications like autonomous driving. Training robust models requires exposure to rare "edge cases"—such as degraded roads or extreme weather—which are difficult and expensive to collect in the real world. This paper addresses this gap by focusing translation on specific local domains within an image.
Methods
The proposed pipeline leverages human knowledge regarding scene geometry to focus the model's attention on relevant sub-regions. The process consists of five key stages:
- Local Domain Identification: Instead of treating the entire image as a single domain, the researchers define "local domains" (e.g., distinguishing "lane markings" from "asphalt").
- Geometrically-Guided Patches: Using simple masks, often derived from existing dataset labels, the system extracts small patches specifically from these identified local domains.
- Patch-based GAN: A GAN is trained specifically on these patches to learn the mapping between local domains, such as transforming a "lane marking" patch into an "asphalt" patch.
- VAE Interpolation: To create a realistic spectrum of effects—such as partially faded lines rather than a binary "on/off" state—a Variational Autoencoder (VAE) is employed. This allows for smooth interpolation between source and target characteristics.
- Hallucination: Finally, these translated patches are stitched back into the original images. This process "hallucinates" a new, unseen domain while preserving the integrity of the rest of the scene.
Experimental Setup and Datasets
The researchers evaluated the framework across three distinct tasks using several industry benchmarks:
- Lane Degradation: Using the TuSimple dataset (clear highway markings) as the source to hallucinate degraded roads, with evaluation performed on the India Driving Dataset (IDD), which features unstructured environments.
- Snow Addition: Utilizing Cityscapes and ACDC (Adverse Driving Conditions) to simulate snow accumulation on roads and sidewalks.
- Deblurring: Using the Oxford 102 Flower dataset to demonstrate sharpening of out-of-focus regions based on a center-vs-corner geometric prior.
Key Insights and Results
The Power of Few-Shot and Source-Only Training
Because the model trains on numerous small patches extracted from a limited set of images, it achieves high diversity with minimal data. Successful models were trained using only 15 images. Furthermore, the model can learn to "remove" lane markings without ever seeing a target image of a road without markings. It achieves this by learning the transition between the "lane" and "asphalt" local domains, both of which are present in the source data.
Performance Gains
The "hallucinated" images effectively bridge the reality gap for transfer learning. Lane detection models (SCNN and RESA) trained on hallucinated data saw substantial performance boosts on the challenging IDD dataset. For the SCNN model, accuracy improved by 11.3%, while false negatives dropped by 16.4%.
In semantic segmentation tasks, adding hallucinated snow to training data improved the Mean Intersection over Union (mIoU) on the ACDC snow dataset. Specifically, the DeepLabv3+ model's performance rose from 45.31 to 47.64 mIoU. Quality metrics also favored this approach, as it outperformed baselines like DLOW in both Fréchet Inception Distance (FID) and Learned Perceptual Image Patch Similarity (LPIPS).
Conclusion and Future Work
While effective, the method currently relies on "geometrical priors" (masks) which, although common in autonomous driving datasets, must be accurate for the method to succeed. Additionally, "local domains" are currently defined manually. Future research could explore the automated discovery of these sub-domains. Finally, while VAE-based interpolation provides flexibility, it adds complexity to the pipeline that may be challenging to scale in highly complex scenes with numerous interacting local domains.
Summary updated