[Paper Review] Towards Real-time and Light-weight Line Segment Detection
This paper proposes Mobile LSD (M-LSD), a real-time, lightweight line segment detector for resource-constrained environments. By minimizing the backbone network and introducing SoL augmentation and a geometric learning scheme, M-LSD achieves 2.5% of TP-LSD-Lite's model size and 130.5% faster inference on GPU, while running at 56.8 FPS on Android and 48.6 FPS on iPhone—making it the first real-time deep LSD method on mobile devices.
Previous deep learning-based line segment detection (LSD) suffer from the immense model size and high computational cost for line prediction. This constrains them from real-time inference on computationally restricted environments. In this paper, we propose a real-time and light-weight line segment detector for resource-constrained environments named Mobile LSD (M-LSD). We design an extremely efficient LSD architecture by minimizing the backbone network and removing the typical multi-module process for line prediction in previous methods. To maintain competitive performance with such a light-weight network, we present novel training schemes: Segments of Line segment (SoL) augmentation and geometric learning scheme. SoL augmentation splits a line segment into multiple subparts, which are used to provide auxiliary line data during the training process. Moreover, the geometric learning scheme allows a model to capture additional geometry cues from matching loss, junction and line segmentation, length and degree regression. Compared with TP-LSD-Lite, previously the best real-time LSD method, our model (M-LSD-tiny) achieves competitive performance with 2.5% of model size and an increase of 130.5% in inference speed on GPU when evaluated with Wireframe and YorkUrban datasets. Furthermore, our model runs at 56.8 FPS and 48.6 FPS on Android and iPhone mobile devices, respectively. To the best of our knowledge, this is the first real-time deep LSD method available on mobile devices.
Motivation & Objective
- Address the high computational cost and large model size of existing deep learning-based line segment detection (LSD) methods, which hinder real-time inference on resource-constrained devices.
- Design a lightweight architecture by minimizing the backbone network and eliminating multi-module processing for line prediction.
- Maintain competitive detection performance despite extreme model compression through novel training strategies.
- Enable real-time inference on mobile platforms, including Android and iPhone, by optimizing for low latency and small footprint.
Proposed method
- Propose an extremely efficient backbone architecture by removing redundant components and simplifying the network structure to reduce model size and FLOPs.
- Introduce Segment of Line (SoL) augmentation, which splits line segments into subparts to generate auxiliary training data and improve generalization.
- Develop a geometric learning scheme that jointly optimizes for matching loss, junction detection, line segmentation, and regression of line length and degree.
- Train the model using multi-task supervision that integrates geometric cues from multiple supervisory signals to enhance structural understanding.
- Optimize inference speed through model compression and efficient layer design, enabling deployment on mobile devices.
Experimental results
Research questions
- RQ1Can a significantly reduced deep learning model achieve competitive line segment detection performance while enabling real-time inference on mobile devices?
- RQ2How effective is SoL augmentation in improving detection accuracy for lightweight line segment detectors?
- RQ3To what extent does the geometric learning scheme enhance model performance by integrating multiple geometric supervisory signals?
- RQ4What is the trade-off between model size, inference speed, and accuracy in real-time line segment detection?
Key findings
- M-LSD-tiny achieves 2.5% of the model size of TP-LSD-Lite while maintaining competitive detection performance on Wireframe and YorkUrban datasets.
- On GPU, M-LSD-tiny achieves 130.5% higher inference speed than TP-LSD-Lite, demonstrating substantial efficiency gains.
- The model runs at 56.8 FPS on Android and 48.6 FPS on iPhone, confirming real-time inference capability on mobile platforms.
- The combination of SoL augmentation and geometric learning significantly improves detection accuracy despite model compression.
- To the best of the authors' knowledge, M-LSD is the first deep learning-based line segment detector that achieves real-time performance on mobile devices.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.