glpn (depth estimation)
Global-Local Path Network: a SegFormer encoder and light decoder for single-image depth.
Depth estimation · 419 operations Checked
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
- Task
- Depth estimation
- Parameters
- 3.7M
- Operations
- 419
- Framework
- PyTorch
- Recurrent
- No
- Source
- transformers 5.18.0
- Name in source
- glpn:depth-estimation
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m5211
- Graph hash
- 840180ab85c9c9cd62d28464263cc1276f2d42cea33a2004b6310b53d3325fc7
- Skeleton hash
- 695a78b3506003a4fd44432406afc8724b92623025b3bf27e8d27cdfce813bd7
- Architecture hash
- c3f746f2c6f87980eae8940420eac23fa9f22bb7454d740ab6a14361c85d287c
- Diagram SHA-256
- 8e41ecc0795cc38371ec8ece7141a3ca45915b6b691fe25602fc1d6782b5af2a
- 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
transformers.AutoModelForDepthEstimation.from_config()
What it is
GLPN, short for Global-Local Path Networks, is a monocular depth estimator: it predicts a depth map from a single image. It combines SegFormer's hierarchical mix-Transformer with a lightweight decoder for monocular depth estimation. The encoder captures and conveys global context, while the decoder generates the depth map with local connectivity in mind. A selective feature fusion module builds connected paths between multi-scale local features and the global decoding stream, so the network can integrate both and recover fine details.
The decoder performs better than earlier decoders with considerably less computational complexity, and the paper also improves depth-specific augmentation using an observation about depth estimation. The network reaches state-of-the-art performance on the NYU Depth V2 dataset, and the authors report better generalisation and robustness than comparative models. The Transformers docs still flag it as a recently introduced model whose API has not been tested extensively.
Key idea. A hierarchical transformer encoder for global context paired with a lightweight decoder and selective feature fusion for monocular depth estimation.
- glpn
- global-local path networks
- monocular depth estimation
- depth map
- segformer encoder
- vertical cutdepth
- nyu depth v2
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.