NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Vehicle Image Generation Going Well with The Surroundings

Jeesoo Kim, Jangho Kim, Jaeyoung Yoo, Daesik Kim, Nojun Kwak

TL;DR

This paper introduces a two-stage generative framework that synthesizes realistic vehicles into real-world scenes using only simple bounding box annotations. By decoupling the generation of shape and texture, the model produces high-fidelity cars that naturally blend with their surroundings, outperforming traditional image inpainting baselines in both visual quality and object detection metrics.

What Problem Does This Paper Address?

Generating specific objects within complex, uncontrolled environments (like a busy city street) is a significant challenge in computer vision. Most existing methods for "image-to-image translation" rely on semantic layouts—pixel-perfect maps that label every part of the scene. While effective, these maps are incredibly expensive and time-consuming to create.

On the other hand, standard image inpainting (filling in missing holes) often struggles with complex objects. If you ask a standard inpainting model to put a car in a blank box, it often produces a blurry, unrecognizable blob because it lacks a strong "prior" of what a car actually looks like. The authors aim to bridge this gap: generating realistic objects using only cheap, rectangular bounding boxes while ensuring the result "goes well" with the existing background.

Methods

The authors propose a modular architecture consisting of two main subnetworks: ShapeNet and TextureNet.

The overall architecture shows the two-stage process: ShapeNet for grayscale structure and TextureNet for color and refinement.
  1. ShapeNet (Snet): This module focuses purely on geometry. It takes the background image and a rectangular mask as input and generates a grayscale version of the vehicle. By stripping away color, the model can focus entirely on pose, perspective, and how the car's silhouette interacts with the road and nearby obstacles. It uses dilated convolutions to capture a wide field of view, allowing the model to "see" the surrounding road to decide which way the car should be facing.
  2. TextureNet (Tnet): This module adds the "skin" to the grayscale skeleton. It is further divided into:
  3. $T_{color}$: A colorization network that predicts the $a$ and $b$ color channels (in CIELab space) for the grayscale patch. It treats colorization as a classification problem across 313 color bins, which is more stable than direct regression.
  4. $T_{refine}$: A final refinement network that blends the colorized car into the original scene, sharpening details like taillights and wheels.
  5. Global-Local Discriminator: To ensure realism, the model is trained adversarially. One discriminator looks at the whole image (global) to check for scene consistency, while another looks specifically at the generated patch (local) to ensure the vehicle itself is high-quality.

Datasets

The model was trained and evaluated on two major autonomous driving datasets:

  • Berkeley Deep Drive (BDD100K): Used as the primary training set. It contains thousands of real-world driving videos with bounding box annotations.
  • Cityscapes: Used to test the model's ability to generalize. Even though the model was trained on U.S. roads (BDD), it successfully generated cars for German road scenes in Cityscapes.

Key Insights and Ideas

  • Divide and Conquer: The most important insight is that generating shape and texture separately is easier than doing both at once. Grayscale generation provides a "sketch" that constrains the colorization process, preventing the model from producing unrealistic "rainbow" artifacts.
  • Context is King: By using dilated convolutions, the model understands that a car in the middle of the road should face forward, while a car near the curb should look parked. It even learns to handle occlusions, drawing parts of a car "behind" existing objects in the scene.
  • Box-Only Supervision: The ability to generate realistic results using only bounding boxes is a major win for data efficiency. It suggests that generative models can learn complex object priors from relatively "weak" labels.

Key Results

The authors compared their method against established inpainting baselines (like Iizuka et al. and Liu et al.).

  • Qualitative Quality: As seen in the comparison below, the proposed method produces much sharper details, such as recognizable wheels and taillights, compared to the blurry outputs of the baselines. Comparison of results: The top rows show the grayscale and colorized intermediate steps, while the bottom rows compare the final output against blurry baselines.
Fig. 2. Results from our method and the baseline [9]. From top to bottom, 1) completed gray-scaled results of Snet, 2) results colorized by Tcolor, 3) final results of Tnet after refinement, and 4, 5) results of the baselines. Compared to the results of the baselines, our model depicts the details better since the refine module of Tnet can produce elab- orate outputs. To present how well our method performs by itself, no post-processing is applied to all results.
  • Object Detection Deception: To test realism, they ran the generated images through a pre-trained SSD (Single Shot Detector). If the detector "sees" the generated car as a real one, the generation is successful. Their method achieved a 73.12% recall at a 0.12 confidence threshold, significantly higher than the 63.35% achieved by the baseline.
  • FID Score: The Frechet Inception Distance (FID) measures how similar the distribution of generated images is to real ones (lower is better). The proposed method achieved an FID of 41.04, vastly outperforming the Iizuka et al. baseline (112.3).
Fig. 3. Generating vehicles on empty roads. Target regions where the vehicles are to be generated are marked by red rectangles in the first row. With proper boxes given, both the baselines and our method draw vehicles inside.

Limitations and Future Work

  • Manual Placement: The model still requires a human (or another algorithm) to provide a "reasonable" bounding box. If you place a box on top of a building, the model will still try to force a car into that space, leading to nonsensical results.
  • Perspective Limits: Very large boxes (representing cars very close to the camera) often fail because the model struggles to fill in such a large area of missing information accurately.
  • Future Direction: The authors suggest that combining this work with a scene-understanding model that automatically suggests valid car locations could lead to a fully automated system for image augmentation, helping to train better self-driving AI.

Summary updated

BibTeX
@inproceedings{kim2021vehicle,
  author = {Jeesoo Kim and Jangho Kim and Jaeyoung Yoo and Daesik Kim and Nojun Kwak},
  title = {{Vehicle Image Generation Going Well with The Surroundings}},
  booktitle = {ICONIP},
  year = {2021},
  doi = {10.1007/978-3-030-92273-3\_6},
}
Figure