H2RBox-v2: Incorporating Symmetry for Boosting Horizontal Box Supervised Oriented Object Detection

Yi Yu, Xue Yang, Qingyun Li, Yue Zhou, Feipeng Da, Junchi Yan

Introduction

H2RBox-v2 is a weakly-supervised object detector that learns to predict oriented (rotated) bounding boxes using only standard horizontal box annotations. By leveraging the inherent reflection symmetry of objects like planes and ships through a novel self-supervised consistency branch, it nearly closes the performance gap with fully supervised models that require expensive rotated box labels.

The Challenge of Oriented Object Detection

In fields like remote sensing and autonomous driving, objects rarely align perfectly with the axes of an image. Standard horizontal bounding boxes (HBoxes) often include too much background noise or overlap significantly with neighboring objects. While oriented bounding boxes (RBoxes) provide a much tighter fit, they are significantly more expensive and time-consuming to annotate—often taking up to ten times longer than drawing simple HBoxes.

The authors' previous work, H2RBox, attempted to learn RBoxes from HBox labels by using geometric constraints. However, it suffered from stability issues: it required massive amounts of data, was highly sensitive to the quality of the horizontal labels, and crucially, could not handle standard data augmentations like random rotation during training. H2RBox-v2 aims to solve these stability and data-efficiency issues by looking at the visual content of the objects themselves—specifically, their symmetry.

Methodology: Leveraging Symmetry

Architecture of H2RBox-v2 showing the Self-Supervised and Weakly-Supervised branches.

H2RBox-v2 utilizes a dual-branch architecture built on top of the popular FCOS (Fully Convolutional One-Stage) detector.

1. Self-Supervised (SS) Branch

This branch represents the core innovation of the paper. It exploits the fact that most objects of interest (planes, cars, ships) possess a clear axis of reflection symmetry. The authors introduce two consistency properties to train this branch:

  • Flip Consistency: If an image is flipped vertically, the predicted angle of the object should be mathematically negated.
  • Rotate Consistency: If an image is rotated by an angle $\mathcal{R}$, the predicted orientation should shift by exactly $\mathcal{R}$.

By forcing the network to maintain these consistencies across different augmented views of the same image, the model learns to identify the symmetry axis (which corresponds to the object's orientation) without ever seeing a ground-truth rotation label.

2. Weakly-Supervised (WS) Branch

Operating in tandem with the SS branch, the WS branch learns the object's location, size, and category using the provided, cheaper HBox labels.

3. Technical Refinements

To stabilize training, the authors introduce two specialized loss functions:

  • CircumIoU Loss: A novel loss function that allows the model to calculate the overlap between a predicted RBox and a ground-truth HBox even when the image has been randomly rotated during training. This unlocks the use of rotation augmentation, a major limitation of the original H2RBox.
  • Snap Loss: A specialized loss designed to handle "angular periodicity"—the mathematical headache where $0$ and $\pi$ (180 degrees) represent the exact same orientation, preventing the model from getting confused at boundary angles.

Key Results and Visual Performance

Visual comparison of H2RBox-v2 predictions against other weakly-supervised methods.

The model was evaluated on several large-scale aerial and remote sensing benchmarks, including DOTA (v1.0, v1.5, v2.0), HRSC2016 (a ship dataset), and FAIR1M. The results are striking because H2RBox-v2, using only HBox labels, performs almost identically to Rotated FCOS, which relies on full RBox labels.

  • Near-Supervised Performance: On the standard DOTA-v1.0 benchmark, H2RBox-v2 achieved 72.31% mAP, compared to 72.44% for the fully supervised Rotated FCOS baseline.
  • Superiority on Small Datasets: On the HRSC ship dataset, H2RBox-v2 actually outperformed the supervised baseline (89.66% vs 88.99%). This suggests that the symmetry constraint acts as a powerful regularizer that prevents overfitting on smaller datasets.
  • Inference Efficiency: Because the self-supervised symmetry branch is only utilized during training, the model's inference speed (FPS) is identical to standard oriented detectors, making it highly practical for real-world deployment.

Conclusion and Limitations

H2RBox-v2 proves that symmetry acts as a natural, free label for orientation. Because the network learns from the image pixels rather than just bounding box geometry, it is much more resilient to sloppy horizontal annotations than its predecessor.

However, the method does have limitations. It relies heavily on objects being symmetric; while this covers most man-made vehicles and structures, it may struggle with asymmetric objects or irregular cargo. Furthermore, heavy occlusion can break the visual symmetry of an object, potentially leading to orientation errors. Finally, while highly effective for 2D top-down views, adapting these symmetry constraints to 3D perspective views remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{yu2023h,
  author = {Yi Yu and Xue Yang and Qingyun Li and Yue Zhou and Feipeng Da and Junchi Yan},
  title = {{H2RBox-v2: Incorporating Symmetry for Boosting Horizontal Box Supervised Oriented Object Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=v1VVKaMYbk},
}
Figure