Oriented R-CNN for Object Detection

Xingxing Xie, Gong Cheng, Jiabao Wang, Xiwen Yao, Junwei Han

TL;DR

Oriented R-CNN is a simple and efficient two-stage detector that solves the computational bottleneck of generating oriented object proposals. By introducing a lightweight Oriented RPN that uses a novel midpoint offset representation, it achieves state-of-the-art accuracy on aerial imagery benchmarks (75.87% mAP on DOTA) while running at a practical 15.1 FPS.

What Problem Does This Paper Address?

In fields like aerial surveillance or scene text recognition, objects rarely align with the horizontal and vertical axes of an image. Standard object detectors use horizontal bounding boxes, which are a poor fit for tilted objects like ships, planes, or long vehicles. These horizontal boxes often include excessive background noise or overlap multiple nearby objects, leading to poor localization and classification.

Existing solutions for "oriented" detection are often computationally heavy. Some methods, like Rotated RPN, place dozens of anchors at different angles at every single pixel, leading to a massive memory footprint. Others, like the RoI Transformer, use complex sub-networks to "learn" how to rotate boxes. The authors of this paper identified that the proposal generation stage is the primary speed bottleneck and sought a "nearly cost-free" way to generate high-quality oriented proposals.

Methods

The authors propose a two-stage framework called Oriented R-CNN.

  1. Oriented RPN (Stage 1): Instead of using thousands of rotated anchors, this network uses just three standard horizontal anchors per location. It predicts six parameters to define an oriented proposal: $(x, y, w, h, \Delta\alpha, \Delta\beta)$.
  2. $(x, y, w, h)$ define the external horizontal bounding box.
  3. $(\Delta\alpha, \Delta\beta)$ are midpoint offsets that describe how the corners of the oriented box deviate from the midpoints of the horizontal box's sides.

    This approach is incredibly efficient. As shown in the comparison below, the Oriented RPN has significantly fewer parameters than previous methods.

Figure 1: Comparisons of different schemes for generating oriented proposals. (a) Rotated RPN densely places rotated anchors with different scales, ratios, and angles. (b) RoI Transformer+ learns oriented proposal from horizontal RoI. It involvs RPN, RoI Alignment, and regression. (c) Our proposed oriented RPN generates high-quality proposals in a nearly cost-free manner. The number of parameters of oriented RPN is about 1/3000 of RoI Transformer+ and 1/15 of rotated RPN.
  1. Oriented R-CNN Head (Stage 2): This stage takes the proposals from the first stage and uses Rotated RoIAlign to extract features. It then performs final classification and further refines the bounding box coordinates.
Figure 2: Overall framework of oriented R-CNN, which is a two-stage detector built on FPN. The first stage generates oriented proposals by oriented RPN and the second stage is oriented R-CNN head to classify proposals and refine their spatial locations. For clear illustration, we do not show the FPN as well as the classification branch in oriented RPN.

Datasets

The model was evaluated on two major benchmarks for oriented object detection:

  • DOTA: A large-scale dataset for aerial object detection containing 15 categories (e.g., Plane, Ship, Bridge, Small Vehicle) and nearly 190,000 instances.
  • HRSC2016: A dataset specifically focused on detecting ships with arbitrary orientations in sea scenes.

Key Insights and Ideas

  • Efficiency through Representation: The "aha moment" is that you don't need rotated anchors to get oriented proposals. By cleverly parameterizing the regression (using midpoint offsets), a standard horizontal anchor can be transformed into a high-quality oriented proposal with almost no extra math.
  • Drastic Parameter Reduction: The Oriented RPN uses about 1/3000th the parameters of the RoI Transformer's proposal stage and 1/15th the parameters of a traditional Rotated RPN.
  • Breaking the Bottleneck: By simplifying the first stage, the authors prove that two-stage detectors (traditionally seen as slow) can achieve speeds comparable to one-stage detectors while maintaining superior accuracy.

Key Results

Oriented R-CNN sets a new standard for both accuracy and efficiency:

  • Accuracy: On the DOTA dataset, it achieved 75.87% mAP (mean Average Precision) using a ResNet50 backbone, outperforming more complex models like RoI Transformer (74.61% mAP).
  • Speed: It runs at 15.1 FPS on a single RTX 2080Ti for $1024 \times 1024$ images. This is nearly as fast as one-stage detectors like RetinaNet-O (16.1 FPS) but with a massive ~7.4% lead in accuracy.
  • Ship Detection: On HRSC2016, it reached an impressive 96.50% mAP.

Limitations and Future Work

While the paper demonstrates excellent results, it primarily focuses on the architectural design of the RPN. The authors note that their method serves as a strong baseline, but there is still room to explore more advanced backbones or integration with "anchor-free" detection philosophies. Additionally, while 15 FPS is fast for a two-stage detector, it may still fall short of the requirements for ultra-high-speed real-time applications (e.g., 30+ FPS) on edge hardware.

Summary updated

BibTeX
@misc{xie2021oriented,
  author = {Xingxing Xie and Gong Cheng and Jiabao Wang and Xiwen Yao and Junwei Han},
  title = {{Oriented R-CNN for Object Detection}},
  year = {2021},
  eprint = {2108.05699},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.05699},
}
Figure