All models

PytorchAutoDrive-LSTR

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

Detection and tracking · 277 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 (22 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
946K
Operations
277
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
m2361
Graph hash
162578bf284e8e1d19278c997817987f434eca7edac960c2b3584ef58068b236
Skeleton hash
62093a68d51d6e09ee2d4dfde31fe188b73c4dac0df7ff2897e4ca195deb0cf4
Architecture hash
fd5055b374557477be21d7f3693ed1435c28696d224243a895205f25ffa8e83e
Diagram SHA-256
731ec591582641c573d6a9851ab70413b88f917dda2021a59963fa2df3db9107
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

How this diagram was made

menagerie.classics.lstr_lane:build_lstr: build({})

What it is

This model is the PytorchAutoDrive implementation of LSTR, which that framework offers with ResNet 18, 34, 50 and 101 backbones and a reduced ResNet18.

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}, 
}