All models

LSTR (Lane Shape Transformer)

An end-to-end lane detector that predicts lane shape parameters with a CNN backbone and a transformer.

Detection and tracking · 382 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (20 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
LSTR
Parameters
765.8K
Operations
382
Framework
PyTorch
Recurrent
No
Published
WACV 2021
Cited by
353 (as of 28 October 2026)
Authors
Ruijin Liu, Zejian Yuan, Tie Liu, Zhiliang Xiong
License
BSD-3-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17826
Graph hash
a29e71b9c49fc5589913d32035cf13d458c7a4e61e0f473e287272990e0bd92b
Skeleton hash
bdcd67bbb66b5b4a7949351a60dee595f408308eba08c918389ca11ad798c55f
Architecture hash
83653c78934057bb7fb161aeaebaac99004e86e64339b2972a52dfe2413ce7e3
Diagram SHA-256
5b5849ebc448e04d68b89f8afb20042da8201390d52a161ae4602a2bf5ce324d
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

This model is the authors' baseline LSTR, whose README gives the number of model parameters as 765,787.

About this model's family

LSTR is an end-to-end lane detector: a network built with a transformer directly outputs the parameters of a lane shape model. The paper contrasts this with the popular pipeline that solves lane detection in two steps, feature extraction plus post-processing. The shape model is formulated from road structures and camera pose, which gives the output parameters a physical interpretation.

In the paper the backbone is a reduced ResNet18 whose block output channels are cut to 16, 32, 64 and 128. Its low-resolution feature is flattened into a sequence by collapsing the spatial dimensions. The encoder has two standard layers, and the decoder also has two. A linear layer with softmax labels each of a fixed number of predicted curves as background or lane. One 3-layer perceptron predicts four groups of lane-specific parameters, and another predicts four parameters shared by all lanes. Training uses a Hungarian fitting loss, which performs a bipartite matching between predicted parameters and ground truth lanes.

On the TuSimple benchmark, the paper reports that the method outperforms PolyLaneNet by 2.82% accuracy with 5 times fewer parameters and runs 3.6 times faster.

Key idea. LSTR reframes lane detection as directly predicting the parameters of a lane shape model with a transformer-based network.

  • lstr
  • lane shape transformer
  • lane shape prediction with transformers
  • lane detection
  • lane shape model
  • tusimple
  • pytorchautodrive lstr
  • autonomous driving

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{liu2020endtoendlaneshapeprediction,
      title={End-to-end Lane Shape Prediction with Transformers}, 
      author={Ruijin Liu and Zejian Yuan and Tie Liu and Zhiliang Xiong},
      year={2020},
      eprint={2011.04233},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2011.04233}, 
}