Abstract
INSTA-YOLO is a novel one-stage framework that treats instance segmentation as a contour prediction problem rather than a pixel-wise classification task. By evolving the YOLOv3 architecture to regress 2D Cartesian points of an object's boundary, the model achieves competitive accuracy while running at 56 FPS—roughly double the speed of previous state-of-the-art models.
Introduction
Traditional instance segmentation typically follows a two-stage "detect-then-segment" pipeline, such as Mask R-CNN. These models first identify a bounding box and then perform semantic segmentation within that box. This approach is computationally expensive due to the requirement for heavy up-sampling decoders to produce pixel-level masks.
Furthermore, standard object detectors struggle with "oriented" objects, such as ships in aerial imagery or vehicles viewed from a bird's-eye perspective. Predicting a simple rotation angle often leads to "boundary effects" where minor orientation changes cause significant jumps in the loss function. INSTA-YOLO addresses these speed bottlenecks and orientation challenges by shifting from pixel-level masks to geometric contours.
Methodology
The authors build upon the YOLOv3 architecture, modifying the detection head to predict a set of $N$ vertices defining the object's contour in Cartesian space instead of standard bounding box coordinates ($x, y, w, h$).
Technical Innovations
- Adaptive Step Sampling: During data preparation, an adaptive approach inspired by the Douglas-Peucker algorithm is used to place more vertices on complex curves and fewer on straight lines, ensuring efficient geometric representation.
- Vertex-based Representation: By predicting a fixed number of points rather than a mask of thousands of pixels, the model bypasses expensive decoder layers and up-sampling, which are primary bottlenecks in real-time segmentation.
- Novel Loss Functions: The model utilizes Log Cosh Regression Loss for vertex coordinates to provide robustness against outliers. Additionally, a Cartesian IoU Loss based on the "shoelace formula" allows direct calculation of the predicted polygon's area, optimizing overlap without pixel conversion.
- Loss Scheduling: Training begins with coordinate regression (warm-up) before introducing IoU loss to fine-tune curvature and overlap.
Results
The model was evaluated on the Carvana (car segmentation), Cityscapes (urban driving), and Airbus Ship (aerial imagery) datasets. INSTA-YOLO demonstrates a significant trade-off advantage between speed and accuracy:
- Speed: Achieves 56 FPS on a GTX-1080 GPU, nearly doubling the speed of Polar-Mask (28 FPS) and YOLACT (32 FPS).
- Accuracy: Reached 89% $AP_{50}$ on Cityscapes and 99% $AP_{50}$ on Carvana. On the Airbus Ship dataset, it outperformed specialized models like YOLO3D, achieving 78.16% $AP_{50}$.
Conclusion
INSTA-YOLO proves that contour-based regression is a viable and highly efficient alternative to pixel-wise segmentation for real-time applications. By treating orientation as an inherent property of the predicted polygon, the model avoids the mathematical complexities of angle encoding. While challenges like self-intersecting polygons and fixed vertex counts remain for future work, the current framework provides a robust solution for high-speed, geometrically-aware instance segmentation.
Summary updated