MLSD Line Detection

  • M-LSD

byNAVER / LINE Vision

Isolate clean architectural wireframes, perspective grids, and straight-line structural guides with single-shot precision

Architectural staircase wireframe extracted with MLSD Line Detection.

How MLSD Line Detection works

Transform photographic references and 3D renders into minimalist line-segment wireframes in three straightforward actions.

Actual Fuser canvas connecting a staircase photograph to MLSD Line Detection.

Supply Reference Image

Provide an architectural photo, interior design capture, or 3D render containing clear linear geometry.

MLSD Line Detection in Fuser showing score and distance thresholds.

Tune Detection Thresholds

Calibrate score and distance thresholds to balance fine wireframe fidelity against noise suppression.

Completed structural wireframe output from MLSD Line Detection in Fuser.

Export Wireframe Map

Receive a high-contrast black-and-white structural line map ready to guide perspective-locked generation.

What MLSD Line Detection is good at

Extract pristine geometric scaffolding and perspective baselines to guide generative composition without transferring image noise.

MLSD straight-line map of an atrium with converging structural grids.

Perspective Grid Extraction

Isolate precise perspective grids and building planes, stripping away distracting shadows and surface textures to produce clean white structural vectors on solid black.

Reading-room line map extracted with MLSD score threshold 0.3.

Score Confidence Control

Tune the score threshold from 0.0 to 1.0 to eliminate faint texture noise or capture delicate structural lines across complex interior environments.

Facade window line map extracted with MLSD distance threshold 5.

Distance Segment Merging

Adjust the distance threshold between 0.0 and 20.0 to resolve closely spaced window mullions and facade lattices without merging adjacent geometry.

MLSD structural map of a museum corridor for downstream ControlNet guidance.

ControlNet Structural Guidance

Generate ultra-lightweight structural scaffolding that locks camera perspective and room proportions into downstream ControlNet workflows.

Made with MLSD Line Detection

Explore how stark structural line maps anchor complex architectural perspectives, vehicle profiles, and editorial environments.

Fashion editorial rendered with SDXL ControlNet using a dedicated MLSD architectural line map.

High-fashion editorial perspective framing

Constructivist geometric artwork rendered with SDXL ControlNet using a dedicated MLSD line map.

Constructivist album sleeve artwork

Archival-style urban perspective rendered with SDXL ControlNet using a dedicated MLSD street line map.

Archival documentary urban perspective

Minimalist gallery interior rendered with SDXL ControlNet using a dedicated MLSD structural line map.

Minimalist interior gallery perspective

What people build with MLSD Line Detection

From architectural visualization to industrial product design, discover how creators enforce rigid geometric structure across workflows.

Interior Architecture Transformation

01

Extract crisp perspective grids and room dimensions from photo references to re-texture or re-furnish spaces while preserving exact wall placements.

Industrial Hardware Design

02

Maintain strict straight-line chassis contours and aerodynamic body planes when generating stylistic variations of vehicle and hardware designs.

E-Commerce Product Staging

03

Lock down the geometric boundaries of podiums, display stands, and shelving units to restyle commercial sets reliably.

Fashion Set Construction

04

Anchor models within stark architectural sets and runway structures to achieve rigorous editorial balance and perspective consistency.

Cinematic Storyboard Scaffolding

05

Capture vanishing points and architectural backdrops from location scouting photos to construct consistent cinematic storyboards.

MLSD Line Detection specs

Plans and credits
Inputs
Image
Output
image
Cost
5 credits per run

Frequently Asked Questions

Yes, MLSD stands for Mobile Line Segment Detection (M-LSD), developed by NAVER and LINE Vision. It is widely referenced as M-LSD in academic research and as the MLSD preprocessor in generative diffusion workflows.

MLSD is purpose-built for straight geometric geometry: interior room layouts, architectural building facades, street perspectives, furniture framing, and structural grids. It extracts crisp vector-like wireframes while stripping away surface textures, shadows, and color noise.

Avoid using MLSD for organic silhouettes, human figures, animals, curved sculptures, vegetation, and soft drapery. Because the detector exclusively tracks straight segments, organic forms will either be ignored or rendered as fragmented visual artifacts. For organic shapes, reach for edge or depth preprocessors instead.

Score Threshold sets the confidence cutoff between 0 and 1 (defaulting to 0.1) to eliminate noisy or faint line detections in busy textures. Distance Threshold spans from 0 to 20 (defaulting to 0.1) and controls line merging—lower values preserve fine parallel architectural details like window mullions, while higher values consolidate overlapping segments into simplified guides.

NAVER and LINE Vision introduced M-LSD at AAAI 2022. The model uses a streamlined MobileNetV2 backbone with roughly 25,000 parameters and a tri-points formulation to deliver real-time single-shot line detection on resource-constrained hardware.

Try MLSD Line Detection on Fuser

Isolate clean architectural wireframes, perspective grids, and straight-line structural guides with single-shot precision