Lune

AAAI2022Top-tier venue

Towards Light-Weight and Real-Time Line Segment Detection

Geonmo Gu, ByungSoo Ko, SeoungHyun Go, Sung-Hyun Lee, Jingeun Lee, Minchul Shin

Abstract

Previous deep learning-based line segment detection (LSD) suffers 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 found in previous methods. To maintain competitive performance with a light-weight network, we present novel training schemes: Segments of Line segment (SoL) augmentation, matching and geometric loss. SoL augmentation splits a line segment into multiple subparts, which are used to provide auxiliary line data during the training process. Moreover, the matching and geometric loss allow a model to capture additional geometric cues. Compared with TP-LSD-Lite, previously the best real-time LSD method, our model (M-LSDtiny) achieves competitive performance with 2.5% of model size and an increase of 130.5% in inference speed on GPU. Furthermore, our model runs at 56.8 FPS and 48.6 FPS on the latest Android and iPhone mobile devices, respectively. To the best of our knowledge, this is the first real-time deep LSD available on mobile devices. Our code is available 1 .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • VisualCloze: A Universal Image Generation Framework via Visual in-Context Learning cites Adding Conditional Control to Text-to-Image Diffusion Models
  • Line Segment Detection Using Transformers Without Edges cites End-to-End Wireframe Parsing
  • Line Segment Detection Using Transformers Without Edges cites Holistically-Attracted Wireframe Parsing
  • Holistically-Attracted Wireframe Parsing cites Line Segment Detection Using Transformers Without Edges
  • LGNN: A Context-aware Line Segment Detector cites End-to-End Wireframe Parsing
  • When ControlNet Meets Inexplicit Masks: A Case Study of ControlNet on its Contour-following Ability cites Adding Conditional Control to Text-to-Image Diffusion Models
  • When ControlNet Meets Inexplicit Masks: A Case Study of ControlNet on its Contour-following Ability cites Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion Models
  • Holistically-Attracted Wireframe Parsing cites End-to-End Wireframe Parsing
  • Holistically-Attracted Wireframe Parsing cites LGNN: A Context-aware Line Segment Detector
  • Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion Models cites Adding Conditional Control to Text-to-Image Diffusion Models
  • SceneLoom: Communicating Data with Scene Context cites Adding Conditional Control to Text-to-Image Diffusion Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Adding Conditional Control to Text-to-Image Diffusion ModelsLvmin Zhang, Anyi Rao, Maneesh AgrawalaICCV 2023 · 6,759 citations
  2. Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion ModelsShihao Zhao, Dongdong Chen, Yen-Chun Chen, Jianmin Bao et al.NeurIPS 2023 · 505 citations
  3. When ControlNet Meets Inexplicit Masks: A Case Study of ControlNet on its Contour-following AbilityWenjie Xuan, Yufei Xu, Shanshan Zhao, Chaoyue Wang et al.ACM MM 2024 · 3 citations
  4. VisualCloze: A Universal Image Generation Framework via Visual in-Context LearningZhong-Yu Li, Ruoyi Du, Juncheng Yan, Le Zhuo et al.ICCV 2025 · 2 citations
  5. SceneLoom: Communicating Data with Scene ContextLin Gao, Leixian Shen, Yuheng Zhao, Jiexiang Lan et al.IEEE VIS 2025 · 1 citation

Builds on4

  1. End-to-End Wireframe ParsingYichao Zhou, Haozhi Qi, Yi MaICCV 2019 · 190 citations
  2. LGNN: A Context-aware Line Segment DetectorQuan Meng, Jiakai Zhang, Qiang Hu, Xuming He et al.ACM MM 2020 · 29 citations
  3. Line Segment Detection Using Transformers Without EdgesYifan Xu, Weijian Xu, David Cheung, Zhuowen TuCVPR 2021
  4. Holistically-Attracted Wireframe ParsingNan Xue, Tianfu Wu, Song Bai, Fudong Wang et al.CVPR 2020

Related papers

  1. ScaleLSD: Scalable Deep Line Segment Detection StreamlinedZeran Ke, Bin Tan, Xianwei Zheng, Yujun Shen et al.CVPR 2025
  2. DeepLSD: Line Segment Detection and Refinement with Deep Image GradientsRémi Pautrat, Daniel Barath, Viktor Larsson, Martin R. Oswald et al.CVPR 2023
  3. SOLD2: Self-Supervised Occlusion-Aware Line Description and DetectionRémi Pautrat, Juan-Ting Lin, Viktor Larsson, Martin R. Oswald et al.CVPR 2021
  4. ELSD: Efficient Line Segment Detector and DescriptorHaotian Zhang, Yicheng Luo, Fangbo Qin, Yijia He et al.ICCV 2021 · 32 citations
  5. SYENet: A Simple Yet Effective Network for Multiple Low-Level Vision Tasks with Real-time Performance on Mobile DeviceWeiran Gou, Ziyao Yi, Yan Xiang, Shaoqing Li et al.ICCV 2023 · 12 citations
Dusk over the sea between two cliffs drawn in fine vertical lines