Abstract
Vision-centric autonomous driving systems require diverse data for robust training and evaluation, which can be augmented by manipulating object positions and appearances within existing scene captures. While recent advancements in diffusion models have shown promise in video editing, their application to object manipulation in driving scenarios remains challenging due to imprecise positional control and difficulties in preserving high-fidelity object appearances. To address these challenges in position and appearance control, we introduce DriveEditor, a diffusion-based framework for object editing in driving videos. DriveEditor offers a unified framework for comprehensive object editing operations, including repositioning, replacement, deletion, and insertion. These diverse manipulations are all achieved through a shared set of varying inputs, processed by identical position control and appearance maintenance modules. The position control module projects the given 3D bounding box while preserving depth information and hierarchically injects it into the diffusion process, enabling precise control over object position and orientation. The appearance maintenance module preserves consistent attributes with a single reference image by employing a three-tiered approach: low-level detail preservation, high-level semantic maintenance, and the integration of 3D priors from a novel view synthesis model. Extensive qualitative and quantitative evaluations on the nuScenes dataset demonstrate DriveEditor's exceptional fidelity and controllability in generating diverse driving scene edits, as well as its remarkable ability to facilitate downstream tasks.
Introduction
Training robust autonomous driving systems requires massive amounts of diverse data, particularly for "long-tail" scenarios—rare events like sudden lane changes or unexpected obstacles. While generative AI models like Stable Diffusion can create new scenes, existing video editing methods often struggle with the rigors of driving contexts. Specifically, text-to-video models are often too imprecise with spatial control, and 2D-based editing tools fail to maintain the 3D structure of a vehicle as it moves or as the camera viewpoint shifts. DriveEditor addresses this gap by providing a tool that can manipulate objects with centimeter-level precision while keeping their appearance consistent across frames.
Methodology
DriveEditor treats object editing as a unified task governed by two core modules designed to handle spatial and visual consistency.
Position Control Module
Instead of relying on standard 2D masks, DriveEditor projects the faces of a 3D bounding box onto the image plane to create a "depth-aware pose image." This image encodes the object's 3D orientation and distance. These features are injected into the video diffusion model (based on Stable Video Diffusion) via specialized adapters, ensuring the generated object sits exactly where it should in 3D space.
Appearance Maintenance Module
To ensure a vehicle maintains a consistent identity, the framework uses a three-tiered approach:
- Low-level: A cut-and-paste of the reference object into the initial masked frame.
- High-level: CLIP semantic features guide the general category and style of the object.
- 3D Priors: The framework integrates features from SV3D, a model designed for 3D novel view synthesis. Since a single reference image only shows one side of a vehicle, SV3D "imagines" the other angles. These multi-view features are fused into the video model, allowing the object to look realistic even as it rotates or moves relative to the camera.
Experimental Results
The authors utilized the nuScenes dataset to construct an editing subset of over 10,000 video clips. To test generalization, they also performed zero-shot evaluations on the Waymo Open Dataset.
Quantitative Performance
DriveEditor significantly outperforms existing baselines in both fidelity and precision:
- Fidelity: In object replacement tasks, DriveEditor achieved an FID of 11.83 and an FVD of 39, vastly outperforming baselines like Tune-A-Video (FID 14.22, FVD 151).
- Precision: Evaluation with a pre-trained 3D detector showed an average translation error (mATE) of just 0.27 meters relative to the detector's baseline, indicating high positional accuracy.
Qualitative Comparison
As shown in the comparison below, DriveEditor maintains superior temporal consistency and structural integrity compared to existing baselines like ProPainter or Text2Video-Zero, especially during complex operations like repositioning and insertion.
Downstream Impact
The framework's utility as a "data engine" was proven by augmenting a 50% subset of nuScenes with DriveEditor-generated data. This augmentation improved the NuScenes Detection Score (NDS) of a state-of-the-art 3D detector (StreamPETR) from 0.569 to 0.581.
Conclusion
DriveEditor demonstrates that 3D-guided information is superior to 2D masks for controlling driving scene edits. By leveraging SV3D as a spatial knowledge base, the model gains an inherent understanding of 3D geometry without needing explicit reconstruction. Future work will focus on improving lighting integration to better adapt objects to extreme environmental mismatches, such as night-to-day transitions.
Summary updated