Abstract
The performance of modern object detectors drops when the test distribution differs from the training one. Most of the methods that address this focus on object appearance changes caused by, e.g., different illumination conditions, or gaps between synthetic and real images. Here, by contrast, we tackle geometric shifts emerging from variations in the image capture process, or due to the constraints of the environment causing differences in the apparent geometry of the content itself. We introduce a self-training approach that learns a set of geometric transformations to minimize these shifts without leveraging any labeled data in the new domain, nor any information about the cameras. We evaluate our method on two different shifts, i.e., a camera’s field of view (FoV) change and a viewpoint change. Our results evidence that learning geometric transformations helps detectors to perform better in the target domains.
The Challenge of Geometric Shift
Modern object detection systems are highly sensitive to the environment in which they were trained. While significant research has addressed "appearance shifts"—such as changes in lighting, weather, or the transition from synthetic to real-world imagery—"geometric shifts" remain a critical hurdle. These shifts occur when the image capture process changes, such as switching from a standard lens to a wide-angle "fisheye" lens (Field of View shift) or moving a camera from a vehicle's dashboard to a high-angle surveillance mount (Viewpoint shift).
Even when the objects themselves (e.g., cars, pedestrians) are identical, their apparent geometry—scale, perspective, and peripheral distortion—changes drastically. Traditional solutions often require precise camera metadata (focal length, lens parameters) to manually "undistort" images. This paper proposes a camera-agnostic alternative: learning these corrections automatically from unlabeled target data.
Methodology: Learning Camera-Agnostic Transformations
The proposed framework models complex geometric shifts as a combination of multiple perspective transformations, known as homographies.
The system architecture consists of several key components:
- Homography Projections: The input image is simultaneously passed through $N$ trainable homography branches.
- Feature Extractor: These transformed images are processed by a shared feature extractor.
- Inverse Projections: The resulting feature maps are "unwarped" using the inverse of the initial homographies to ensure spatial alignment.
- Aggregator: A novel block learns to intelligently combine these different perspective views into a single, robust representation.
- Mean Teacher Training: To adapt without labels, a "Student" model learns transformations guided by "pseudo-labels" from a "Teacher" model (an exponentially moving average of the student).
This approach allows the model to discover the necessary transformations purely by maximizing detection performance on the target domain, without any prior knowledge of the camera hardware.
Experimental Setup
The method was evaluated across three primary datasets to simulate real-world shifts:
- Cityscapes: The source domain, featuring standard FoV front-facing vehicle cameras.
- KITTI: The target for FoV shifts, characterized by a significantly wider field of view.
- MOT20: The target for viewpoint shifts, featuring high-angle, downward-facing cameras in crowded environments.
Results and Key Insights
The research yielded several significant findings:
- Approximating Complex Distortions: While a single homography represents a flat perspective change, the authors demonstrated that a small set (5 to 9) can effectively approximate non-linear distortions like spherical warping.
- Superior Adaptation: In FoV adaptation (Cityscapes → KITTI), the model achieved 80.4 AP, outperforming standard Mean Teacher baselines (78.3 AP) and rivaling methods that utilize explicit camera metadata (79.7 AP).
- Robust Viewpoint Handling: For the challenging Cityscapes → MOT20 shift, the model reached 65.3 AP, a substantial improvement over the source-only model (43.7 AP).
- Geometry vs. Appearance: The results highlight that standard Unsupervised Domain Adaptation (UDA) techniques focusing on appearance often fail when the primary gap is geometric. Explicitly modeling geometry provides a significant performance boost.
Conclusion and Future Work
By learning to "undistort" images through a set of optimal homographies, this method provides a flexible, camera-agnostic solution for geometric domain adaptation. The primary trade-off is a modest increase in computational cost; for $N=5$ homographies, inference time increased from 0.062s to 0.096s on an A100 GPU.
Future research directions include developing image-conditioned transformations. Instead of learning a global set of transformations for a dataset, the model could adjust its geometric correction on-the-fly for individual images, potentially enabling a single model to handle diverse camera setups in real-time.
Summary updated