Abstract
In this work, we propose a novel approach, WeatherDG, that generates realistic, weather-diverse driving-scene images through the cooperation of two foundation models: Stable Diffusion (SD) and Large Language Models (LLMs). By fine-tuning SD with source data, we align the content and layout of generated samples with real-world driving scenarios. We introduce a procedural prompt generation method based on LLMs to enrich scenario descriptions, helping SD automatically generate diverse, detailed images. Furthermore, a balanced generation strategy encourages the production of high-quality objects from tail classes, such as riders and motorcycles, under various weather conditions. Our segmentation-model-agnostic method significantly improves the generalization ability of existing models. Experiments on three challenging datasets demonstrate that WeatherDG improves segmentation performance on target domains, notably increasing the mIoU of the HRDA baseline by 13.9% in the "Cityscapes to ACDC" setting.
Introduction
Semantic segmentation is a safety-critical task for autonomous driving, requiring the ability to accurately label every pixel in a scene. However, most state-of-the-art models suffer from a significant "domain shift" problem: they are typically trained on clear-weather datasets like Cityscapes but fail when deployed in adverse conditions such as blizzards, heavy rain, or nighttime.
Collecting and manually labeling pixel-perfect data for every possible weather condition is prohibitively expensive. While simulators and image-translation models have been used to bridge this gap, they often lack the realism and diversity required for robust training. Even powerful tools like Stable Diffusion, when used out of the box, tend to produce artistic images or unrealistic camera angles that do not match the specific layout of a dashboard camera. WeatherDG addresses these challenges by combining the creative power of SD with the procedural reasoning of LLMs.
Methodology
The WeatherDG framework consists of a three-step pipeline designed to bridge the gap between artistic AI generation and realistic driving data:
1. Stable Diffusion Fine-tuning
To prevent the diffusion model from hallucinating artistic styles or incorrect perspectives, we fine-tune Stable Diffusion using DreamBooth on a small set of real driving images. This process "anchors" the model to the correct perspective and layout of a car's front-facing camera, ensuring the generated content is usable for training segmentation models.
2. Procedural Prompt Generation
Instead of relying on simple human-written prompts, we utilize a chain of three LLM agents to script complex, detailed scenarios:
- Instance Sampler: Uses a probability-based strategy to select objects, specifically targeting "tail classes" (rare items like motorcycles or riders) often missing in adverse weather data.
- Scene Composer: Adds fundamental weather and time-of-day tags (e.g., "rainy," "nighttime").
- Scene Descriptor: This agent expands the prompt into a rich description, adding environmental nuances like "streetlights casting a warm glow on a reflective, rain-slicked road under a misty sky."
3. Model Training and Balanced Generation
These hyper-realistic synthetic images are used to train standard segmentation models (e.g., DAFormer or HRDA) using Unsupervised Domain Adaptation (UDA). A balanced generation strategy ensures the AI encounters rare instances—such as a motorcycle in a blizzard—which are statistically infrequent but vital for safety.
Experimental Results
Quantitative Performance
WeatherDG sets a new benchmark for domain generalization. In the transition from Cityscapes to the ACDC dataset, WeatherDG improved the Mean Intersection over Union (mIoU) of the HRDA model by 13.9%. Using the MiT-B5 backbone, our method achieved 60.2% mIoU on ACDC, significantly outperforming previous leaders like MIC (50.0%).
Qualitative Analysis
Qualitative results demonstrate that WeatherDG generates intricate details that other methods miss, such as raindrops on a windshield and realistic light scattering from streetlamps at night. These "hard examples" provide the necessary complexity for neural networks to learn robust features.
Conclusion and Future Work
WeatherDG demonstrates that combining LLM-driven procedural reasoning with fine-tuned diffusion models can significantly enhance the robustness of autonomous vision systems. While the method achieves massive gains in fog, rain, and snow, nighttime perception remains a significant challenge, with scores (35.3% mIoU) still lagging behind daytime conditions. Future work will explore more complex scene layouts and temporally consistent video generation to help models better understand motion in adverse weather.
Summary updated